diff --git a/eng/pipelines/mgmt-ci.yml b/eng/pipelines/mgmt-ci.yml new file mode 100644 index 000000000000..a388771ac568 --- /dev/null +++ b/eng/pipelines/mgmt-ci.yml @@ -0,0 +1,258 @@ +trigger: + branches: + include: + - feature/* + paths: + include: + - eng/pipelines/mgmt-pr.yml + - sdk/advisor/arm-advisor + - sdk/analysisservices/arm-analysisservices + - sdk/apimanagement/arm-apimanagement + - sdk/appconfiguration/arm-appconfiguration + - sdk/applicationinsights/arm-appinsights + - sdk/appplatform/arm-appplatform + - sdk/appservice/arm-appservice + - sdk/appservice/arm-appservice-profile-2019-03-01-hybrid + - sdk/appservice/arm-appservice-profile-2020-09-01-hybrid + - sdk/attestation/arm-attestation + - sdk/authorization/arm-authorization + - sdk/authorization/arm-authorization-profile-2019-03-01-hybrid + - sdk/authorization/arm-authorization-profile-2020-09-01-hybrid + - sdk/automation/arm-automation + - sdk/avs/arm-avs + - sdk/azurestack/arm-azurestack + - sdk/azurestackhci/arm-azurestackhci + - sdk/batch/arm-batch + - sdk/batchai/arm-batchai + - sdk/billing/arm-billing + - sdk/botservice/arm-botservice + - sdk/cdn/arm-cdn + - sdk/changeanalysis/arm-changeanalysis + - sdk/cognitiveservices/arm-cognitiveservices + - sdk/commerce/arm-commerce + - sdk/commerce/arm-commerce-profile-2020-09-01-hybrid + - sdk/communication/arm-communication + - sdk/compute/arm-compute + - sdk/compute/arm-compute-profile-2019-03-01-hybrid + - sdk/compute/arm-compute-profile-2020-09-01-hybrid + - sdk/confluent/arm-confluent + - sdk/consumption/arm-consumption + - sdk/containerinstance/arm-containerinstance + - sdk/containerregistry/arm-containerregistry + - sdk/containerservice/arm-containerservice + - sdk/cosmosdb/arm-cosmosdb + - sdk/customer-insights/arm-customerinsights + - sdk/databox/arm-databox + - sdk/databoxedge/arm-databoxedge + - sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid + - sdk/databricks/arm-databricks + - sdk/datacatalog/arm-datacatalog + - sdk/datafactory/arm-datafactory + - sdk/datalake-analytics/arm-datalake-analytics + - sdk/datamigration/arm-datamigration + - sdk/deploymentmanager/arm-deploymentmanager + - sdk/deviceprovisioningservices/arm-deviceprovisioningservices + - sdk/devspaces/arm-devspaces + - sdk/devtestlabs/arm-devtestlabs + - sdk/digitaltwins/arm-digitaltwins + - sdk/dns/arm-dns + - sdk/dns/arm-dns-profile-2019-03-01-hybrid + - sdk/dns/arm-dns-profile-2020-09-01-hybrid + - sdk/domainservices/arm-domainservices + - sdk/edgegateway/arm-edgegateway + - sdk/eventgrid/arm-eventgrid + - sdk/eventhub/arm-eventhub + - sdk/eventhub/arm-eventhub-profile-2020-09-01-hybrid + - sdk/features/arm-features + - sdk/frontdoor/arm-frontdoor + - sdk/hanaonazure/arm-hanaonazure + - sdk/hdinsight/arm-hdinsight + - sdk/healthbot/arm-healthbot + - sdk/healthcareapis/arm-healthcareapis + - sdk/hybridcompute/arm-hybridcompute + - sdk/hybridkubernetes/arm-hybridkubernetes + - sdk/iotcentral/arm-iotcentral + - sdk/iothub/arm-iothub + - sdk/iothub/arm-iothub-profile-2020-09-01-hybrid + - sdk/iotspaces/arm-iotspaces + - sdk/keyvault/arm-keyvault + - sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid + - sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid + - sdk/kubernetesconfiguration/arm-kubernetesconfiguration + - sdk/kusto/arm-kusto + - sdk/labservices/arm-labservices + - sdk/links/arm-links + - sdk/locks/arm-locks + - sdk/locks/arm-locks-profile-2020-09-01-hybrid + - sdk/locks/arm-locks-profile-hybrid-2019-03-01 + - sdk/logic/arm-logic + - sdk/machinelearning/arm-commitmentplans + - sdk/machinelearning/arm-webservices + - sdk/machinelearning/arm-workspaces + - sdk/machinelearningcompute/arm-machinelearningcompute + - sdk/machinelearningexperimentation/arm-machinelearningexperimentation + - sdk/machinelearningservices/arm-machinelearningservices + - sdk/managedapplications/arm-managedapplications + - sdk/managementgroups/arm-managementgroups + - sdk/managementpartner/arm-managementpartner + - sdk/maps/arm-maps + - sdk/mariadb/arm-mariadb + - sdk/marketplaceordering/arm-marketplaceordering + - sdk/mediaservices/arm-mediaservices + - sdk/migrate/arm-migrate + - sdk/mixedreality/arm-mixedreality + - sdk/monitor/arm-monitor + - sdk/monitor/arm-monitor-profile-2019-03-01-hybrid + - sdk/monitor/arm-monitor-profile-2020-09-01-hybrid + - sdk/msi/arm-msi + - sdk/mysql/arm-mysql + - sdk/netapp/arm-netapp + - sdk/network/arm-network + - sdk/network/arm-network-profile-2019-03-01-hybrid + - sdk/network/arm-network-profile-2020-09-01-hybrid + - sdk/notificationhubs/arm-notificationhubs + - sdk/operationalinsights/arm-operationalinsights + - sdk/operationsmanagement/arm-operations + - sdk/peering/arm-peering + - sdk/policy/arm-policy + - sdk/policy/arm-policy-profile-2020-09-01-hybrid + - sdk/policy/arm-policy-profile-hybrid-2019-03-01 + - sdk/policyinsights/arm-policyinsights + - sdk/postgresql/arm-postgresql + - sdk/postgresql/arm-postgresql-flexible + - sdk/powerbidedicated/arm-powerbidedicated + - sdk/powerbiembedded/arm-powerbiembedded + - sdk/privatedns/arm-privatedns + - sdk/recoveryservices/arm-recoveryservices + - sdk/recoveryservicesbackup/arm-recoveryservicesbackup + - sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery + - sdk/redis/arm-rediscache + - sdk/redisenterprise/arm-redisenterprisecache + - sdk/relay/arm-relay + - sdk/reservations/arm-reservations + - sdk/resourcegraph/arm-resourcegraph + - sdk/resourcehealth/arm-resourcehealth + - sdk/resourcemover/arm-resourcemover + - sdk/resources/arm-resources + - sdk/resources/arm-resources-profile-2020-09-01-hybrid + - sdk/resources/arm-resources-profile-hybrid-2019-03-01 + - sdk/search/arm-search + - sdk/security/arm-security + - sdk/serialconsole/arm-serialconsole + - sdk/service-map/arm-servicemap + - sdk/servicebus/arm-servicebus + - sdk/servicefabric/arm-servicefabric + - sdk/servicefabricmesh/arm-servicefabricmesh + - sdk/signalr/arm-signalr + - sdk/sql/arm-sql + - sdk/sqlvirtualmachine/arm-sqlvirtualmachine + - sdk/storage/arm-storage + - sdk/storage/arm-storage-profile-2019-03-01-hybrid + - sdk/storage/arm-storage-profile-2020-09-01-hybrid + - sdk/storagecache/arm-storagecache + - sdk/storageimportexport/arm-storageimportexport + - sdk/storagesync/arm-storagesync + - sdk/storsimple1200series/arm-storsimple1200series + - sdk/storsimple8000series/arm-storsimple8000series + - sdk/streamanalytics/arm-streamanalytics + - sdk/subscription/arm-subscriptions + - sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid + - sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01 + - sdk/support/arm-support + - sdk/synapse/arm-synapse + - sdk/timeseriesinsights/arm-timeseriesinsights + - sdk/trafficmanager/arm-trafficmanager + - sdk/visualstudio/arm-visualstudio + - sdk/vmwarecloudsimple/arm-vmwarecloudsimple + - sdk/applicationinsights/applicationinsights-query + - sdk/batch/batch + - sdk/cognitiveservices/cognitiveservices-anomalydetector + - sdk/cognitiveservices/cognitiveservices-autosuggest + - sdk/cognitiveservices/cognitiveservices-computervision + - sdk/cognitiveservices/cognitiveservices-contentmoderator + - sdk/cognitiveservices/cognitiveservices-customimagesearch + - sdk/cognitiveservices/cognitiveservices-customsearch + - sdk/cognitiveservices/cognitiveservices-customvision-prediction + - sdk/cognitiveservices/cognitiveservices-customvision-training + - sdk/cognitiveservices/cognitiveservices-entitysearch + - sdk/cognitiveservices/cognitiveservices-face + - sdk/cognitiveservices/cognitiveservices-formrecognizer + - sdk/cognitiveservices/cognitiveservices-imagesearch + - sdk/cognitiveservices/cognitiveservices-localsearch + - sdk/cognitiveservices/cognitiveservices-luis-authoring + - sdk/cognitiveservices/cognitiveservices-luis-runtime + - sdk/cognitiveservices/cognitiveservices-newssearch + - sdk/cognitiveservices/cognitiveservices-personalizer + - sdk/cognitiveservices/cognitiveservices-qnamaker + - sdk/cognitiveservices/cognitiveservices-qnamaker-runtime + - sdk/cognitiveservices/cognitiveservices-spellcheck + - sdk/cognitiveservices/cognitiveservices-textanalytics + - sdk/cognitiveservices/cognitiveservices-translatortext + - sdk/cognitiveservices/cognitiveservices-videosearch + - sdk/cognitiveservices/cognitiveservices-visualsearch + - sdk/cognitiveservices/cognitiveservices-websearch + - sdk/eventhub/event-processor-host + - sdk/graphrbac/graph + - sdk/keyvault/keyvault-common + - sdk/operationalinsights/loganalytics + - sdk/servicefabric/servicefabric + - sdk/storage/storage-datalake + - sdk/storage/storage-internal-avro + +pr: none + +variables: + NodeVersion: '10.x' + +jobs: + - job: 'Build' + + pool: + vmImage: 'Ubuntu 20.04' + + steps: + - task: NodeTool@0 + inputs: + versionSpec: '$(NodeVersion)' + displayName: 'Install Node.js $(NodeVersion)' + + - task: Npm@1 + displayName: 'npm install' + inputs: + verbose: false + + - script: 'gulp pack --base-reference=main --head-reference=main' + displayName: 'gulp pack' + + - task: CopyFiles@2 + displayName: 'Copy Files to: drop' + inputs: + Contents: '*.tgz' + TargetFolder: drop + + - task: PublishBuildArtifacts@1 + inputs: + pathtoPublish: $(Build.SourcesDirectory)/drop + + - job: 'Analyze' + + pool: + vmImage: 'Ubuntu 20.04' + + steps: + - task: NodeTool@0 + inputs: + versionSpec: '$(NodeVersion)' + displayName: 'Install Node.js $(NodeVersion)' + + - task: Npm@1 + displayName: 'npm install' + inputs: + command: install + + - task: Npm@1 + displayName: 'npm audit' + condition: and(succeeded(), eq(variables['RunNpmAudit'], 'true')) + inputs: + command: custom + customCommand: 'audit' diff --git a/eng/pipelines/mgmt-pr.yml b/eng/pipelines/mgmt-pr.yml new file mode 100644 index 000000000000..22ec82033297 --- /dev/null +++ b/eng/pipelines/mgmt-pr.yml @@ -0,0 +1,245 @@ +pr: + branches: + include: + - feature/* + - '*-preview' + paths: + include: + - eng/pipelines/mgmt-pr.yml + - sdk/advisor/arm-advisor + - sdk/analysisservices/arm-analysisservices + - sdk/apimanagement/arm-apimanagement + - sdk/appconfiguration/arm-appconfiguration + - sdk/applicationinsights/arm-appinsights + - sdk/appplatform/arm-appplatform + - sdk/appservice/arm-appservice + - sdk/appservice/arm-appservice-profile-2019-03-01-hybrid + - sdk/appservice/arm-appservice-profile-2020-09-01-hybrid + - sdk/attestation/arm-attestation + - sdk/authorization/arm-authorization + - sdk/authorization/arm-authorization-profile-2019-03-01-hybrid + - sdk/authorization/arm-authorization-profile-2020-09-01-hybrid + - sdk/automation/arm-automation + - sdk/avs/arm-avs + - sdk/azurestack/arm-azurestack + - sdk/azurestackhci/arm-azurestackhci + - sdk/batch/arm-batch + - sdk/batchai/arm-batchai + - sdk/billing/arm-billing + - sdk/botservice/arm-botservice + - sdk/cdn/arm-cdn + - sdk/changeanalysis/arm-changeanalysis + - sdk/cognitiveservices/arm-cognitiveservices + - sdk/commerce/arm-commerce + - sdk/commerce/arm-commerce-profile-2020-09-01-hybrid + - sdk/communication/arm-communication + - sdk/compute/arm-compute + - sdk/compute/arm-compute-profile-2019-03-01-hybrid + - sdk/compute/arm-compute-profile-2020-09-01-hybrid + - sdk/confluent/arm-confluent + - sdk/consumption/arm-consumption + - sdk/containerinstance/arm-containerinstance + - sdk/containerregistry/arm-containerregistry + - sdk/containerservice/arm-containerservice + - sdk/cosmosdb/arm-cosmosdb + - sdk/customer-insights/arm-customerinsights + - sdk/databox/arm-databox + - sdk/databoxedge/arm-databoxedge + - sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid + - sdk/databricks/arm-databricks + - sdk/datacatalog/arm-datacatalog + - sdk/datafactory/arm-datafactory + - sdk/datalake-analytics/arm-datalake-analytics + - sdk/datamigration/arm-datamigration + - sdk/deploymentmanager/arm-deploymentmanager + - sdk/deviceprovisioningservices/arm-deviceprovisioningservices + - sdk/devspaces/arm-devspaces + - sdk/devtestlabs/arm-devtestlabs + - sdk/digitaltwins/arm-digitaltwins + - sdk/dns/arm-dns + - sdk/dns/arm-dns-profile-2019-03-01-hybrid + - sdk/dns/arm-dns-profile-2020-09-01-hybrid + - sdk/domainservices/arm-domainservices + - sdk/edgegateway/arm-edgegateway + - sdk/eventgrid/arm-eventgrid + - sdk/eventhub/arm-eventhub + - sdk/eventhub/arm-eventhub-profile-2020-09-01-hybrid + - sdk/features/arm-features + - sdk/frontdoor/arm-frontdoor + - sdk/hanaonazure/arm-hanaonazure + - sdk/hdinsight/arm-hdinsight + - sdk/healthbot/arm-healthbot + - sdk/healthcareapis/arm-healthcareapis + - sdk/hybridcompute/arm-hybridcompute + - sdk/hybridkubernetes/arm-hybridkubernetes + - sdk/iotcentral/arm-iotcentral + - sdk/iothub/arm-iothub + - sdk/iothub/arm-iothub-profile-2020-09-01-hybrid + - sdk/iotspaces/arm-iotspaces + - sdk/keyvault/arm-keyvault + - sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid + - sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid + - sdk/kubernetesconfiguration/arm-kubernetesconfiguration + - sdk/kusto/arm-kusto + - sdk/labservices/arm-labservices + - sdk/links/arm-links + - sdk/locks/arm-locks + - sdk/locks/arm-locks-profile-2020-09-01-hybrid + - sdk/locks/arm-locks-profile-hybrid-2019-03-01 + - sdk/logic/arm-logic + - sdk/machinelearning/arm-commitmentplans + - sdk/machinelearning/arm-webservices + - sdk/machinelearning/arm-workspaces + - sdk/machinelearningcompute/arm-machinelearningcompute + - sdk/machinelearningexperimentation/arm-machinelearningexperimentation + - sdk/machinelearningservices/arm-machinelearningservices + - sdk/managedapplications/arm-managedapplications + - sdk/managementgroups/arm-managementgroups + - sdk/managementpartner/arm-managementpartner + - sdk/maps/arm-maps + - sdk/mariadb/arm-mariadb + - sdk/marketplaceordering/arm-marketplaceordering + - sdk/mediaservices/arm-mediaservices + - sdk/migrate/arm-migrate + - sdk/mixedreality/arm-mixedreality + - sdk/monitor/arm-monitor + - sdk/monitor/arm-monitor-profile-2019-03-01-hybrid + - sdk/monitor/arm-monitor-profile-2020-09-01-hybrid + - sdk/msi/arm-msi + - sdk/mysql/arm-mysql + - sdk/netapp/arm-netapp + - sdk/network/arm-network + - sdk/network/arm-network-profile-2019-03-01-hybrid + - sdk/network/arm-network-profile-2020-09-01-hybrid + - sdk/notificationhubs/arm-notificationhubs + - sdk/operationalinsights/arm-operationalinsights + - sdk/operationsmanagement/arm-operations + - sdk/peering/arm-peering + - sdk/policy/arm-policy + - sdk/policy/arm-policy-profile-2020-09-01-hybrid + - sdk/policy/arm-policy-profile-hybrid-2019-03-01 + - sdk/policyinsights/arm-policyinsights + - sdk/postgresql/arm-postgresql + - sdk/postgresql/arm-postgresql-flexible + - sdk/powerbidedicated/arm-powerbidedicated + - sdk/powerbiembedded/arm-powerbiembedded + - sdk/privatedns/arm-privatedns + - sdk/recoveryservices/arm-recoveryservices + - sdk/recoveryservicesbackup/arm-recoveryservicesbackup + - sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery + - sdk/redis/arm-rediscache + - sdk/redisenterprise/arm-redisenterprisecache + - sdk/relay/arm-relay + - sdk/reservations/arm-reservations + - sdk/resourcegraph/arm-resourcegraph + - sdk/resourcehealth/arm-resourcehealth + - sdk/resourcemover/arm-resourcemover + - sdk/resources/arm-resources + - sdk/resources/arm-resources-profile-2020-09-01-hybrid + - sdk/resources/arm-resources-profile-hybrid-2019-03-01 + - sdk/search/arm-search + - sdk/security/arm-security + - sdk/serialconsole/arm-serialconsole + - sdk/service-map/arm-servicemap + - sdk/servicebus/arm-servicebus + - sdk/servicefabric/arm-servicefabric + - sdk/servicefabricmesh/arm-servicefabricmesh + - sdk/signalr/arm-signalr + - sdk/sql/arm-sql + - sdk/sqlvirtualmachine/arm-sqlvirtualmachine + - sdk/storage/arm-storage + - sdk/storage/arm-storage-profile-2019-03-01-hybrid + - sdk/storage/arm-storage-profile-2020-09-01-hybrid + - sdk/storagecache/arm-storagecache + - sdk/storageimportexport/arm-storageimportexport + - sdk/storagesync/arm-storagesync + - sdk/storsimple1200series/arm-storsimple1200series + - sdk/storsimple8000series/arm-storsimple8000series + - sdk/streamanalytics/arm-streamanalytics + - sdk/subscription/arm-subscriptions + - sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid + - sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01 + - sdk/support/arm-support + - sdk/synapse/arm-synapse + - sdk/timeseriesinsights/arm-timeseriesinsights + - sdk/trafficmanager/arm-trafficmanager + - sdk/visualstudio/arm-visualstudio + - sdk/vmwarecloudsimple/arm-vmwarecloudsimple + - sdk/applicationinsights/applicationinsights-query + - sdk/batch/batch + - sdk/cognitiveservices/cognitiveservices-anomalydetector + - sdk/cognitiveservices/cognitiveservices-autosuggest + - sdk/cognitiveservices/cognitiveservices-computervision + - sdk/cognitiveservices/cognitiveservices-contentmoderator + - sdk/cognitiveservices/cognitiveservices-customimagesearch + - sdk/cognitiveservices/cognitiveservices-customsearch + - sdk/cognitiveservices/cognitiveservices-customvision-prediction + - sdk/cognitiveservices/cognitiveservices-customvision-training + - sdk/cognitiveservices/cognitiveservices-entitysearch + - sdk/cognitiveservices/cognitiveservices-face + - sdk/cognitiveservices/cognitiveservices-formrecognizer + - sdk/cognitiveservices/cognitiveservices-imagesearch + - sdk/cognitiveservices/cognitiveservices-localsearch + - sdk/cognitiveservices/cognitiveservices-luis-authoring + - sdk/cognitiveservices/cognitiveservices-luis-runtime + - sdk/cognitiveservices/cognitiveservices-newssearch + - sdk/cognitiveservices/cognitiveservices-personalizer + - sdk/cognitiveservices/cognitiveservices-qnamaker + - sdk/cognitiveservices/cognitiveservices-qnamaker-runtime + - sdk/cognitiveservices/cognitiveservices-spellcheck + - sdk/cognitiveservices/cognitiveservices-textanalytics + - sdk/cognitiveservices/cognitiveservices-translatortext + - sdk/cognitiveservices/cognitiveservices-videosearch + - sdk/cognitiveservices/cognitiveservices-visualsearch + - sdk/cognitiveservices/cognitiveservices-websearch + - sdk/eventhub/event-processor-host + - sdk/graphrbac/graph + - sdk/keyvault/keyvault-common + - sdk/operationalinsights/loganalytics + - sdk/servicefabric/servicefabric + - sdk/storage/storage-datalake + - sdk/storage/storage-internal-avro + +variables: + NodeVersion: 10.x +jobs: +- job: Build + displayName: Build auto-generated projects + pool: + vmImage: Ubuntu 20.04 + steps: + - task: NodeTool@0 + inputs: + versionSpec: $(NodeVersion) + displayName: Install Node.js $(NodeVersion) + - task: Npm@1 + displayName: npm install + inputs: + command: install + - task: Npm@1 + displayName: npm run build + inputs: + command: custom + customCommand: run build -- --head-reference=origin/$(System.PullRequest.SourceBranch) --base-reference=origin/$(System.PullRequest.TargetBranch) --logging-level=trace +- job: Check_everything + displayName: Check .only, .skip and version bump + steps: + - task: NodeTool@0 + inputs: + versionSpec: $(NodeVersion) + displayName: Install Node.js $(NodeVersion) + - task: Npm@1 + displayName: npm install + inputs: + command: install + - task: Npm@1 + displayName: npm audit + condition: and(succeeded(), eq(variables['RunNpmAudit'], 'true')) + inputs: + command: custom + customCommand: audit + - task: Npm@1 + displayName: npm run check:everything + inputs: + command: custom + customCommand: run check:everything -- --head-reference=origin/$(System.PullRequest.SourceBranch) --base-reference=origin/$(System.PullRequest.TargetBranch) --azure-devops --verbose diff --git a/sdk/appconfiguration/arm-appconfiguration/LICENSE.txt b/sdk/appconfiguration/arm-appconfiguration/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/appconfiguration/arm-appconfiguration/LICENSE.txt +++ b/sdk/appconfiguration/arm-appconfiguration/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 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/appconfiguration/arm-appconfiguration/README.md b/sdk/appconfiguration/arm-appconfiguration/README.md index 69b807098b23..a429aeece428 100644 --- a/sdk/appconfiguration/arm-appconfiguration/README.md +++ b/sdk/appconfiguration/arm-appconfiguration/README.md @@ -1,11 +1,11 @@ ## Azure AppConfigurationManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AppConfigurationManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for AppConfigurationManagementClient. ### 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-appconfiguration @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 configurationStores as an example written in JavaScript. ##### Sample code @@ -86,7 +84,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmAppconfiguration.AppConfigurationManagementClient(creds, subscriptionId); const skipToken = "testskipToken"; diff --git a/sdk/appconfiguration/arm-appconfiguration/package.json b/sdk/appconfiguration/arm-appconfiguration/package.json index b7c97791c578..f88d369c650f 100644 --- a/sdk/appconfiguration/arm-appconfiguration/package.json +++ b/sdk/appconfiguration/arm-appconfiguration/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-appconfiguration", "author": "Microsoft Corporation", "description": "AppConfigurationManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.4.0", + "version": "2.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.1.0", "@azure/ms-rest-js": "^2.2.0", @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/arm-appconfiguration", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/appconfiguration/arm-appconfiguration", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/appconfiguration/arm-appconfiguration/rollup.config.js b/sdk/appconfiguration/arm-appconfiguration/rollup.config.js index f2f46a79cc4c..7d64489e8bb3 100644 --- a/sdk/appconfiguration/arm-appconfiguration/rollup.config.js +++ b/sdk/appconfiguration/arm-appconfiguration/rollup.config.js @@ -21,8 +21,8 @@ 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. diff --git a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts index b58eabc6d21f..9af478c242a3 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.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 @@ -22,6 +21,7 @@ class AppConfigurationManagementClient extends AppConfigurationManagementClientC operations: operations.Operations; privateEndpointConnections: operations.PrivateEndpointConnections; privateLinkResources: operations.PrivateLinkResources; + keyValues: operations.KeyValues; /** * Initializes a new instance of the AppConfigurationManagementClient class. @@ -40,6 +40,7 @@ class AppConfigurationManagementClient extends AppConfigurationManagementClientC this.operations = new operations.Operations(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); this.privateLinkResources = new operations.PrivateLinkResources(this); + this.keyValues = new operations.KeyValues(this); } } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClientContext.ts b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClientContext.ts index 72641b89d50e..1da2220ec952 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClientContext.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClientContext.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,11 +9,11 @@ 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-appconfiguration"; -const packageVersion = "1.4.0"; +const packageVersion = "2.0.0"; export class AppConfigurationManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials | TokenCredential; @@ -50,7 +49,7 @@ export class AppConfigurationManagementClientContext extends msRestAzure.AzureSe super(credentials, options); - this.apiVersion = '2020-06-01'; + this.apiVersion = '2021-03-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts index d882c951bb98..332c2d807387 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.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. @@ -9,22 +9,27 @@ export { ApiKey, ApiKeyListResult, + AzureEntityResource, BaseResource, ConfigurationStore, ConfigurationStoreListResult, ConfigurationStoreUpdateParameters, EncryptionProperties, - ErrorModel, + ErrorAdditionalInfo, + ErrorDetails, + ErrorResponse, KeyValue, KeyVaultProperties, - ListKeyValueParameters, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionReference, PrivateLinkServiceConnectionState, + ProxyResource, RegenerateKeyParameters, Resource, ResourceIdentity, Sku, + SystemData, + TrackedResource, UserIdentity } from "../models/mappers"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts index abd3af6a199f..7868061599f2 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/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. @@ -160,39 +160,82 @@ export interface Sku { } /** - * An Azure resource. + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + +/** + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource */ export interface Resource extends BaseResource { /** - * The resource ID. + * 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 resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource + */ +export interface TrackedResource extends Resource { /** - * The location of the resource. This cannot be changed after the resource is created. + * Resource tags. */ - location: string; + tags?: { [propertyName: string]: string }; /** - * The tags of the resource. + * The geo-location where the resource lives */ - tags?: { [propertyName: string]: string }; + location: string; } /** * The configuration store along with all resource properties. The Configuration Store will have * all information to begin utilizing it. */ -export interface ConfigurationStore extends Resource { +export interface ConfigurationStore extends TrackedResource { /** * The managed identity information, if configured. */ @@ -227,10 +270,18 @@ export interface ConfigurationStore extends Resource { * is enabled. Possible values include: 'Enabled', 'Disabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** + * Disables all authentication methods other than AAD authentication. + */ + disableLocalAuth?: boolean; /** * The sku of the configuration store. */ sku: Sku; + /** + * Resource system metadata. + */ + systemData?: SystemData; } /** @@ -241,6 +292,10 @@ export interface ConfigurationStoreUpdateParameters { * The encryption settings of the configuration store. */ encryption?: EncryptionProperties; + /** + * Disables all authentication methods other than AAD authentication. + */ + disableLocalAuth?: boolean; /** * Control permission for data plane traffic coming from public networks while private endpoint * is enabled. Possible values include: 'Enabled', 'Disabled' @@ -339,23 +394,24 @@ export interface RegenerateKeyParameters { } /** - * The parameters used to list a configuration store key-value + * The key-value resource along with all resource properties. */ -export interface ListKeyValueParameters { +export interface KeyValue extends BaseResource { /** - * The key to retrieve. + * The resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - key: string; + readonly id?: string; /** - * The label of the key. + * The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - label?: string; -} - -/** - * The result of a request to retrieve a key-value from the specified configuration store. - */ -export interface KeyValue { + readonly name?: string; + /** + * The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; /** * The primary identifier of a key-value. * The key is used in unison with the label to uniquely identify a key-value. @@ -370,16 +426,14 @@ export interface KeyValue { readonly label?: string; /** * The value of the key-value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly value?: string; + value?: string; /** * The content type of the key-value's value. * Providing a proper content-type can enable transformations of values when they are retrieved * by applications. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly contentType?: string; + contentType?: string; /** * An ETag indicating the state of a key-value within a configuration store. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -398,9 +452,8 @@ export interface KeyValue { readonly locked?: boolean; /** * A dictionary of tags that can help identify what a key-value may be applicable for. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly tags?: { [propertyName: string]: string }; + tags?: { [propertyName: string]: string }; } /** @@ -426,6 +479,105 @@ export interface OperationDefinitionDisplay { description?: string; } +/** + * Specifications of the Log for Azure Monitoring + */ +export interface LogSpecification { + /** + * Name of the log + */ + name?: string; + /** + * Localized friendly display name of the log + */ + displayName?: string; + /** + * Blob duration of the log + */ + blobDuration?: string; +} + +/** + * Specifications of the Dimension of metrics + */ +export interface MetricDimension { + /** + * Name of the dimension + */ + name?: string; + /** + * Localized friendly display name of the dimension + */ + displayName?: string; + /** + * Internal name of the dimension. + */ + internalName?: string; +} + +/** + * Specifications of the Metrics for Azure Monitoring + */ +export interface MetricSpecification { + /** + * Name of the metric + */ + name?: string; + /** + * Localized friendly display name of the metric + */ + displayName?: string; + /** + * Localized friendly description of the metric + */ + displayDescription?: string; + /** + * Unit that makes sense for the metric + */ + unit?: string; + /** + * Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. + */ + aggregationType?: string; + /** + * Internal metric name. + */ + internalMetricName?: string; + /** + * Dimensions of the metric + */ + dimensions?: MetricDimension[]; + /** + * Optional. If set to true, then zero will be returned for time duration where no metric is + * emitted/published. + */ + fillGapWithZero?: boolean; +} + +/** + * Service specification payload + */ +export interface ServiceSpecification { + /** + * Specifications of the Log for Azure Monitoring + */ + logSpecifications?: LogSpecification[]; + /** + * Specifications of the Metrics for Azure Monitoring + */ + metricSpecifications?: MetricSpecification[]; +} + +/** + * Extra Operation properties + */ +export interface OperationProperties { + /** + * Service specifications of the operation + */ + serviceSpecification?: ServiceSpecification; +} + /** * The definition of a configuration store operation. */ @@ -434,24 +586,70 @@ export interface OperationDefinition { * Operation name: {provider}/{resource}/{operation}. */ name?: string; + /** + * Indicates whether the operation is a data action + */ + isDataAction?: boolean; /** * The display information for the configuration store operation. */ display?: OperationDefinitionDisplay; + /** + * Origin of the operation + */ + origin?: string; + /** + * Properties of the operation + */ + properties?: OperationProperties; +} + +/** + * The resource management error additional info. + */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; } /** - * AppConfiguration error object. + * The details of the error. */ -export interface ErrorModel { +export interface ErrorDetails { /** * Error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - code?: string; + readonly code?: string; /** - * Error message. + * Error message indicating why the operation failed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - message?: string; + readonly message?: string; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** + * Error response indicates that the service is not able to process the incoming request. The + * reason is provided in the error message. + */ +export interface ErrorResponse { + /** + * The details of the error. + */ + error?: ErrorDetails; } /** @@ -526,6 +724,26 @@ export interface PrivateLinkResource { readonly requiredZoneNames?: string[]; } +/** + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource + */ +export interface ProxyResource extends Resource { +} + +/** + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource + */ +export interface AzureEntityResource extends Resource { + /** + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; +} + /** * Optional Parameters. */ @@ -562,6 +780,42 @@ export interface ConfigurationStoresListKeysOptionalParams extends msRest.Reques skipToken?: string; } +/** + * Optional Parameters. + */ +export interface ConfigurationStoresListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * A skip token is used to continue retrieving items after an operation returns a partial result. + * If a previous response contains a nextLink element, the value of the nextLink element will + * include a skipToken parameter that specifies a starting point to use for subsequent calls. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ConfigurationStoresListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * A skip token is used to continue retrieving items after an operation returns a partial result. + * If a previous response contains a nextLink element, the value of the nextLink element will + * include a skipToken parameter that specifies a starting point to use for subsequent calls. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ConfigurationStoresListKeysNextOptionalParams extends msRest.RequestOptionsBase { + /** + * A skip token is used to continue retrieving items after an operation returns a partial result. + * If a previous response contains a nextLink element, the value of the nextLink element will + * include a skipToken parameter that specifies a starting point to use for subsequent calls. + */ + skipToken?: string; +} + /** * Optional Parameters. */ @@ -574,6 +828,52 @@ export interface OperationsListOptionalParams extends msRest.RequestOptionsBase skipToken?: string; } +/** + * Optional Parameters. + */ +export interface OperationsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * A skip token is used to continue retrieving items after an operation returns a partial result. + * If a previous response contains a nextLink element, the value of the nextLink element will + * include a skipToken parameter that specifies a starting point to use for subsequent calls. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface KeyValuesListByConfigurationStoreOptionalParams extends msRest.RequestOptionsBase { + /** + * A skip token is used to continue retrieving items after an operation returns a partial result. + * If a previous response contains a nextLink element, the value of the nextLink element will + * include a skipToken parameter that specifies a starting point to use for subsequent calls. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface KeyValuesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The parameters for creating a key-value. + */ + keyValueParameters?: KeyValue; +} + +/** + * Optional Parameters. + */ +export interface KeyValuesListByConfigurationStoreNextOptionalParams extends msRest.RequestOptionsBase { + /** + * A skip token is used to continue retrieving items after an operation returns a partial result. + * If a previous response contains a nextLink element, the value of the nextLink element will + * include a skipToken parameter that specifies a starting point to use for subsequent calls. + */ + skipToken?: string; +} + /** * An interface representing AppConfigurationManagementClientOptions. */ @@ -641,6 +941,18 @@ export interface PrivateLinkResourceListResult extends Array + */ +export interface KeyValueListResult extends Array { + /** + * The URI that can be used to request the next set of paged results. + */ + nextLink?: string; +} + /** * Defines values for IdentityType. * Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned, @@ -682,6 +994,14 @@ export type ActionsRequired = 'None' | 'Recreate'; */ export type PublicNetworkAccess = 'Enabled' | 'Disabled'; +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + /** * Contains response data for the list operation. */ @@ -822,26 +1142,6 @@ export type ConfigurationStoresRegenerateKeyResponse = ApiKey & { }; }; -/** - * Contains response data for the listKeyValue operation. - */ -export type ConfigurationStoresListKeyValueResponse = KeyValue & { - /** - * 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: KeyValue; - }; -}; - /** * Contains response data for the beginCreate operation. */ @@ -1161,3 +1461,83 @@ export type PrivateLinkResourcesListByConfigurationStoreNextResponse = PrivateLi parsedBody: PrivateLinkResourceListResult; }; }; + +/** + * Contains response data for the listByConfigurationStore operation. + */ +export type KeyValuesListByConfigurationStoreResponse = KeyValueListResult & { + /** + * 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: KeyValueListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type KeyValuesGetResponse = KeyValue & { + /** + * 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: KeyValue; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type KeyValuesCreateOrUpdateResponse = KeyValue & { + /** + * 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: KeyValue; + }; +}; + +/** + * Contains response data for the listByConfigurationStoreNext operation. + */ +export type KeyValuesListByConfigurationStoreNextResponse = KeyValueListResult & { + /** + * 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: KeyValueListResult; + }; +}; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/keyValuesMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/keyValuesMappers.ts new file mode 100644 index 000000000000..db715a439cc4 --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/keyValuesMappers.ts @@ -0,0 +1,31 @@ +/* + * 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 { + AzureEntityResource, + BaseResource, + ConfigurationStore, + EncryptionProperties, + ErrorAdditionalInfo, + ErrorDetails, + ErrorResponse, + KeyValue, + KeyValueListResult, + KeyVaultProperties, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionReference, + PrivateLinkServiceConnectionState, + ProxyResource, + Resource, + ResourceIdentity, + Sku, + SystemData, + TrackedResource, + UserIdentity +} from "../models/mappers"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts index 0cfebe6dbc46..bbbb2e1cc699 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/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. @@ -232,6 +232,52 @@ export const Sku: msRest.CompositeMapper = { } }; +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + export const Resource: msRest.CompositeMapper = { serializedName: "Resource", type: { @@ -258,14 +304,18 @@ export const Resource: msRest.CompositeMapper = { type: { name: "String" } - }, - location: { - required: true, - 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: { @@ -276,6 +326,13 @@ export const Resource: msRest.CompositeMapper = { } } } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } } } } @@ -287,7 +344,7 @@ export const ConfigurationStore: msRest.CompositeMapper = { name: "Composite", className: "ConfigurationStore", modelProperties: { - ...Resource.type.modelProperties, + ...TrackedResource.type.modelProperties, identity: { serializedName: "identity", type: { @@ -342,6 +399,12 @@ export const ConfigurationStore: msRest.CompositeMapper = { name: "String" } }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + }, sku: { required: true, serializedName: "sku", @@ -349,6 +412,13 @@ export const ConfigurationStore: msRest.CompositeMapper = { name: "Composite", className: "Sku" } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -367,6 +437,12 @@ export const ConfigurationStoreUpdateParameters: msRest.CompositeMapper = { className: "EncryptionProperties" } }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { @@ -527,87 +603,82 @@ export const RegenerateKeyParameters: msRest.CompositeMapper = { } }; -export const ListKeyValueParameters: msRest.CompositeMapper = { - serializedName: "ListKeyValueParameters", +export const KeyValue: msRest.CompositeMapper = { + serializedName: "KeyValue", type: { name: "Composite", - className: "ListKeyValueParameters", + className: "KeyValue", modelProperties: { - key: { - required: true, - serializedName: "key", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - label: { - serializedName: "label", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } - } - } - } -}; - -export const KeyValue: msRest.CompositeMapper = { - serializedName: "KeyValue", - type: { - name: "Composite", - className: "KeyValue", - modelProperties: { + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, key: { readOnly: true, - serializedName: "key", + serializedName: "properties.key", type: { name: "String" } }, label: { readOnly: true, - serializedName: "label", + serializedName: "properties.label", type: { name: "String" } }, value: { - readOnly: true, - serializedName: "value", + serializedName: "properties.value", type: { name: "String" } }, contentType: { - readOnly: true, - serializedName: "contentType", + serializedName: "properties.contentType", type: { name: "String" } }, eTag: { readOnly: true, - serializedName: "eTag", + serializedName: "properties.eTag", type: { name: "String" } }, lastModified: { readOnly: true, - serializedName: "lastModified", + serializedName: "properties.lastModified", type: { name: "DateTime" } }, locked: { readOnly: true, - serializedName: "locked", + serializedName: "properties.locked", type: { name: "Boolean" } }, tags: { - readOnly: true, - serializedName: "tags", + serializedName: "properties.tags", type: { name: "Dictionary", value: { @@ -656,6 +727,177 @@ export const OperationDefinitionDisplay: msRest.CompositeMapper = { } }; +export const LogSpecification: msRest.CompositeMapper = { + serializedName: "LogSpecification", + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const MetricDimension: msRest.CompositeMapper = { + serializedName: "MetricDimension", + type: { + name: "Composite", + className: "MetricDimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + internalName: { + serializedName: "internalName", + type: { + name: "String" + } + } + } + } +}; + +export const MetricSpecification: msRest.CompositeMapper = { + serializedName: "MetricSpecification", + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + internalMetricName: { + serializedName: "internalMetricName", + type: { + name: "String" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricDimension" + } + } + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServiceSpecification: msRest.CompositeMapper = { + serializedName: "ServiceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + }, + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + } + } + } +}; + +export const OperationProperties: msRest.CompositeMapper = { + serializedName: "OperationProperties", + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification" + } + } + } + } +}; + export const OperationDefinition: msRest.CompositeMapper = { serializedName: "OperationDefinition", type: { @@ -668,34 +910,109 @@ export const OperationDefinition: msRest.CompositeMapper = { name: "String" } }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + }, display: { serializedName: "display", type: { name: "Composite", className: "OperationDefinitionDisplay" } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties" + } } } } }; -export const ErrorModel: msRest.CompositeMapper = { - serializedName: "Error", +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", type: { name: "Composite", - className: "ErrorModel", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + +export const ErrorDetails: msRest.CompositeMapper = { + serializedName: "ErrorDetails", + type: { + name: "Composite", + className: "ErrorDetails", modelProperties: { code: { + readOnly: true, serializedName: "code", type: { name: "String" } }, message: { + readOnly: true, serializedName: "message", type: { name: "String" } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetails" + } } } } @@ -816,6 +1133,35 @@ export const PrivateLinkResource: msRest.CompositeMapper = { } }; +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...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" + } + } + } + } +}; + export const ConfigurationStoreListResult: msRest.CompositeMapper = { serializedName: "ConfigurationStoreListResult", type: { @@ -955,3 +1301,31 @@ export const PrivateLinkResourceListResult: msRest.CompositeMapper = { } } }; + +export const KeyValueListResult: msRest.CompositeMapper = { + serializedName: "KeyValueListResult", + type: { + name: "Composite", + className: "KeyValueListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KeyValue" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/operationsMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/operationsMappers.ts index 0c4c87228850..ecfb8d258472 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/operationsMappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/operationsMappers.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,9 +8,16 @@ export { CheckNameAvailabilityParameters, - ErrorModel, + ErrorAdditionalInfo, + ErrorDetails, + ErrorResponse, + LogSpecification, + MetricDimension, + MetricSpecification, NameAvailabilityStatus, OperationDefinition, OperationDefinitionDisplay, - OperationDefinitionListResult + OperationDefinitionListResult, + OperationProperties, + ServiceSpecification } from "../models/mappers"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts index d098b569c352..56be9fbd1210 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts +++ b/sdk/appconfiguration/arm-appconfiguration/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 @@ -55,6 +54,16 @@ export const groupName: msRest.OperationURLParameter = { } } }; +export const keyValueName: msRest.OperationURLParameter = { + parameterPath: "keyValueName", + mapper: { + required: true, + serializedName: "keyValueName", + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts index 1f38807af79d..64a38f22a5ff 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts @@ -1,24 +1,31 @@ /* - * 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 { + AzureEntityResource, BaseResource, ConfigurationStore, EncryptionProperties, - ErrorModel, + ErrorAdditionalInfo, + ErrorDetails, + ErrorResponse, + KeyValue, KeyVaultProperties, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionListResult, PrivateEndpointConnectionReference, PrivateLinkServiceConnectionState, + ProxyResource, Resource, ResourceIdentity, Sku, + SystemData, + TrackedResource, UserIdentity } from "../models/mappers"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/privateLinkResourcesMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/privateLinkResourcesMappers.ts index 618676a35470..e97da441aa19 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/privateLinkResourcesMappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/privateLinkResourcesMappers.ts @@ -1,13 +1,15 @@ /* - * 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 { - ErrorModel, + ErrorAdditionalInfo, + ErrorDetails, + ErrorResponse, PrivateLinkResource, PrivateLinkResourceListResult } from "../models/mappers"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts index 668188671197..0b448b6c12c8 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.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 @@ -217,42 +216,6 @@ export class ConfigurationStores { callback) as Promise; } - /** - * Lists a configuration store key-value. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param listKeyValueParameters The parameters for retrieving a key-value. - * @param [options] The optional parameters - * @returns Promise - */ - listKeyValue(resourceGroupName: string, configStoreName: string, listKeyValueParameters: Models.ListKeyValueParameters, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param listKeyValueParameters The parameters for retrieving a key-value. - * @param callback The callback - */ - listKeyValue(resourceGroupName: string, configStoreName: string, listKeyValueParameters: Models.ListKeyValueParameters, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param listKeyValueParameters The parameters for retrieving a key-value. - * @param options The optional parameters - * @param callback The callback - */ - listKeyValue(resourceGroupName: string, configStoreName: string, listKeyValueParameters: Models.ListKeyValueParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeyValue(resourceGroupName: string, configStoreName: string, listKeyValueParameters: Models.ListKeyValueParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - configStoreName, - listKeyValueParameters, - options - }, - listKeyValueOperationSpec, - callback) as Promise; - } - /** * Creates a configuration store with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -317,7 +280,7 @@ export class ConfigurationStores { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ConfigurationStoresListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -328,8 +291,8 @@ export class ConfigurationStores { * @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.ConfigurationStoresListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ConfigurationStoresListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -345,7 +308,7 @@ export class ConfigurationStores { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.ConfigurationStoresListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -356,8 +319,8 @@ export class ConfigurationStores { * @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.ConfigurationStoresListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.ConfigurationStoresListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -373,7 +336,7 @@ export class ConfigurationStores { * @param [options] The optional parameters * @returns Promise */ - listKeysNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listKeysNext(nextPageLink: string, options?: Models.ConfigurationStoresListKeysNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -384,8 +347,8 @@ export class ConfigurationStores { * @param options The optional parameters * @param callback The callback */ - listKeysNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeysNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listKeysNext(nextPageLink: string, options: Models.ConfigurationStoresListKeysNextOptionalParams, callback: msRest.ServiceCallback): void; + listKeysNext(nextPageLink: string, options?: Models.ConfigurationStoresListKeysNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -416,7 +379,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStoreListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -441,7 +404,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStoreListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -466,7 +429,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStore }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -474,7 +437,7 @@ const getOperationSpec: msRest.OperationSpec = { const listKeysOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/ListKeys", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -492,7 +455,7 @@ const listKeysOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiKeyListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -500,7 +463,7 @@ const listKeysOperationSpec: msRest.OperationSpec = { const regenerateKeyOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/RegenerateKey", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -524,39 +487,7 @@ const regenerateKeyOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiKey }, default: { - bodyMapper: Mappers.ErrorModel - } - }, - serializer -}; - -const listKeyValueOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeyValue", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.configStoreName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "listKeyValueParameters", - mapper: { - ...Mappers.ListKeyValueParameters, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.KeyValue - }, - default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -591,7 +522,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStore }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -616,7 +547,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -651,7 +582,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStore }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -664,6 +595,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], @@ -672,7 +607,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStoreListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -685,6 +620,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], @@ -693,7 +632,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStoreListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -706,6 +645,10 @@ const listKeysNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], @@ -714,7 +657,7 @@ const listKeysNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiKeyListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts index f578b9c95302..c4b4fff227d1 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/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 @@ -12,3 +11,4 @@ export * from "./configurationStores"; export * from "./operations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./keyValues"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts new file mode 100644 index 000000000000..2550d0fe5650 --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts @@ -0,0 +1,339 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * 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/keyValuesMappers"; +import * as Parameters from "../models/parameters"; +import { AppConfigurationManagementClientContext } from "../appConfigurationManagementClientContext"; + +/** Class representing a KeyValues. */ +export class KeyValues { + private readonly client: AppConfigurationManagementClientContext; + + /** + * Create a KeyValues. + * @param {AppConfigurationManagementClientContext} client Reference to the service client. + */ + constructor(client: AppConfigurationManagementClientContext) { + this.client = client; + } + + /** + * Lists the key-values for a given configuration store. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param [options] The optional parameters + * @returns Promise + */ + listByConfigurationStore(resourceGroupName: string, configStoreName: string, options?: Models.KeyValuesListByConfigurationStoreOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param callback The callback + */ + listByConfigurationStore(resourceGroupName: string, configStoreName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param options The optional parameters + * @param callback The callback + */ + listByConfigurationStore(resourceGroupName: string, configStoreName: string, options: Models.KeyValuesListByConfigurationStoreOptionalParams, callback: msRest.ServiceCallback): void; + listByConfigurationStore(resourceGroupName: string, configStoreName: string, options?: Models.KeyValuesListByConfigurationStoreOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + configStoreName, + options + }, + listByConfigurationStoreOperationSpec, + callback) as Promise; + } + + /** + * Gets the properties of the specified key-value. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param callback The callback + */ + get(resourceGroupName: string, configStoreName: string, keyValueName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, configStoreName: string, keyValueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + configStoreName, + keyValueName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a key-value. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: Models.KeyValuesCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, configStoreName: string, keyValueName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, configStoreName: string, keyValueName: string, options: Models.KeyValuesCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: Models.KeyValuesCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + configStoreName, + keyValueName, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes a key-value. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,configStoreName,keyValueName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Deletes a key-value. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + configStoreName, + keyValueName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists the key-values for a given configuration store. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByConfigurationStoreNext(nextPageLink: string, options?: Models.KeyValuesListByConfigurationStoreNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByConfigurationStoreNext(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 + */ + listByConfigurationStoreNext(nextPageLink: string, options: Models.KeyValuesListByConfigurationStoreNextOptionalParams, callback: msRest.ServiceCallback): void; + listByConfigurationStoreNext(nextPageLink: string, options?: Models.KeyValuesListByConfigurationStoreNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByConfigurationStoreNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByConfigurationStoreOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configStoreName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.KeyValueListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configStoreName, + Parameters.keyValueName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.KeyValue + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configStoreName, + Parameters.keyValueName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "keyValueParameters" + ], + mapper: Mappers.KeyValue + }, + responses: { + 200: { + bodyMapper: Mappers.KeyValue + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configStoreName, + Parameters.keyValueName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.KeyValueListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts index 725134a5871b..72dab969b316 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts +++ b/sdk/appconfiguration/arm-appconfiguration/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 @@ -87,7 +86,7 @@ export class Operations { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.OperationsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -98,8 +97,8 @@ export class Operations { * @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.OperationsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.OperationsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -136,7 +135,7 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.NameAvailabilityStatus }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -157,7 +156,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationDefinitionListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -170,6 +169,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], @@ -178,7 +181,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationDefinitionListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts index 1e14a2cb5512..3f2a7934a20f 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.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 @@ -216,7 +215,7 @@ const listByConfigurationStoreOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnectionListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -242,7 +241,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -278,7 +277,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -304,7 +303,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -317,6 +316,9 @@ const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -325,7 +327,7 @@ const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnectionListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts index 190cce104e87..752cc8b81464 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.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 @@ -144,7 +143,7 @@ const listByConfigurationStoreOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateLinkResourceListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -170,7 +169,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateLinkResource }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -183,6 +182,9 @@ const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -191,7 +193,7 @@ const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateLinkResourceListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/appplatform/arm-appplatform/README.md b/sdk/appplatform/arm-appplatform/README.md index c06e938283f7..86419554dac7 100644 --- a/sdk/appplatform/arm-appplatform/README.md +++ b/sdk/appplatform/arm-appplatform/README.md @@ -1,11 +1,11 @@ ## Azure AppPlatformManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AppPlatformManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for AppPlatformManagementClient. ### 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-appplatform @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 get services as an example written in JavaScript. ##### Sample code @@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmAppplatform.AppPlatformManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json index 048062d2f2ef..5858db62b3c0 100644 --- a/sdk/appplatform/arm-appplatform/package.json +++ b/sdk/appplatform/arm-appplatform/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-appplatform", "author": "Microsoft Corporation", "description": "AppPlatformManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.3.0", + "version": "1.4.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.1.0", "@azure/ms-rest-js": "^2.2.0", @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/appplatform/arm-appplatform", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts index 1c6af685d8ac..27e67f0731fd 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts @@ -9,11 +9,11 @@ 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-appplatform"; -const packageVersion = "1.3.0"; +const packageVersion = "1.4.0"; export class AppPlatformManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials | TokenCredential; @@ -50,7 +50,7 @@ export class AppPlatformManagementClientContext extends msRestAzure.AzureService super(credentials, options); - this.apiVersion = '2020-11-01-preview'; + this.apiVersion = '2021-06-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts index 99e4dea19713..c1543243c627 100644 --- a/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts @@ -22,6 +22,7 @@ export { ConfigServerProperties, ConfigServerResource, ConfigServerSettings, + CustomContainer, CustomDomainProperties, CustomDomainResource, CustomDomainValidatePayload, @@ -32,6 +33,7 @@ export { DeploymentSettings, ErrorModel, GitPatternRepository, + ImageRegistryCredential, ManagedIdentityProperties, MonitoringSettingProperties, MonitoringSettingResource, @@ -41,6 +43,7 @@ export { ProxyResource, RequiredTraffic, Resource, + ResourceRequests, ResourceUploadDefinition, ServiceResource, Sku, diff --git a/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts index 30588e309be2..a8fef206e095 100644 --- a/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts @@ -22,6 +22,7 @@ export { ConfigServerProperties, ConfigServerResource, ConfigServerSettings, + CustomContainer, CustomDomainProperties, CustomDomainResource, DeploymentInstance, @@ -30,6 +31,7 @@ export { DeploymentSettings, ErrorModel, GitPatternRepository, + ImageRegistryCredential, ManagedIdentityProperties, MonitoringSettingProperties, MonitoringSettingResource, @@ -39,6 +41,7 @@ export { ProxyResource, RequiredTraffic, Resource, + ResourceRequests, ServiceResource, Sku, TemporaryDisk, diff --git a/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts b/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts index 74a82eb8d30a..f0d9c604020b 100644 --- a/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts @@ -22,6 +22,7 @@ export { ConfigServerProperties, ConfigServerResource, ConfigServerSettings, + CustomContainer, CustomDomainProperties, CustomDomainResource, DeploymentInstance, @@ -30,6 +31,7 @@ export { DeploymentSettings, ErrorModel, GitPatternRepository, + ImageRegistryCredential, ManagedIdentityProperties, MonitoringSettingProperties, MonitoringSettingResource, @@ -39,6 +41,7 @@ export { ProxyResource, RequiredTraffic, Resource, + ResourceRequests, ServiceResource, Sku, TemporaryDisk, diff --git a/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts b/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts index a4f7578092d0..4fbb71a816ed 100644 --- a/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts @@ -23,6 +23,7 @@ export { ConfigServerSettings, ConfigServerSettingsErrorRecord, ConfigServerSettingsValidateResult, + CustomContainer, CustomDomainProperties, CustomDomainResource, DeploymentInstance, @@ -31,6 +32,7 @@ export { DeploymentSettings, ErrorModel, GitPatternRepository, + ImageRegistryCredential, ManagedIdentityProperties, MonitoringSettingProperties, MonitoringSettingResource, @@ -40,6 +42,7 @@ export { ProxyResource, RequiredTraffic, Resource, + ResourceRequests, ServiceResource, Sku, TemporaryDisk, diff --git a/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts index 02fcb4f36e3d..66d675938524 100644 --- a/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts @@ -21,6 +21,7 @@ export { ConfigServerProperties, ConfigServerResource, ConfigServerSettings, + CustomContainer, CustomDomainProperties, CustomDomainResource, CustomDomainResourceCollection, @@ -30,6 +31,7 @@ export { DeploymentSettings, ErrorModel, GitPatternRepository, + ImageRegistryCredential, ManagedIdentityProperties, MonitoringSettingProperties, MonitoringSettingResource, @@ -39,6 +41,7 @@ export { ProxyResource, RequiredTraffic, Resource, + ResourceRequests, ServiceResource, Sku, TemporaryDisk, diff --git a/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts index 7414c396b7b1..3da0223f88d1 100644 --- a/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts @@ -21,6 +21,7 @@ export { ConfigServerProperties, ConfigServerResource, ConfigServerSettings, + CustomContainer, CustomDomainProperties, CustomDomainResource, DeploymentInstance, @@ -30,6 +31,7 @@ export { DeploymentSettings, ErrorModel, GitPatternRepository, + ImageRegistryCredential, LogFileUrlResponse, ManagedIdentityProperties, MonitoringSettingProperties, @@ -40,6 +42,7 @@ export { ProxyResource, RequiredTraffic, Resource, + ResourceRequests, ServiceResource, Sku, TemporaryDisk, diff --git a/sdk/appplatform/arm-appplatform/src/models/index.ts b/sdk/appplatform/arm-appplatform/src/models/index.ts index 221fe440bc9f..542f5caec2d9 100644 --- a/sdk/appplatform/arm-appplatform/src/models/index.ts +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -120,11 +120,11 @@ export interface ClusterResourceProperties { */ export interface Sku { /** - * Name of the Sku + * Name of the Sku. Default value: 'S0'. */ name?: string; /** - * Tier of the Sku + * Tier of the Sku. Default value: 'Standard'. */ tier?: string; /** @@ -546,10 +546,6 @@ export interface AppResourceProperties { * Indicate if only https is allowed. */ httpsOnly?: boolean; - /** - * Indicate if end to end TLS is enabled. - */ - enableEndToEndTLS?: boolean; /** * Date time when the resource is created * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -563,6 +559,10 @@ export interface AppResourceProperties { * Persistent disk settings */ persistentDisk?: PersistentDisk; + /** + * Indicate if end to end TLS is enabled. + */ + enableEndToEndTLS?: boolean; } /** @@ -798,12 +798,55 @@ export interface CustomDomainValidateResult { message?: string; } +/** + * Credential of the image registry + */ +export interface ImageRegistryCredential { + /** + * The username of the image registry credential + */ + username?: string; + /** + * The password of the image registry credential + */ + password?: string; +} + +/** + * Custom container payload + */ +export interface CustomContainer { + /** + * The name of the registry that contains the container image + */ + server?: string; + /** + * Container image of the custom container. This should be in the form of : + * without the server name of the registry + */ + containerImage?: string; + /** + * Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this + * is not provided. + */ + command?: string[]; + /** + * Arguments to the entrypoint. The docker image's CMD is used if this is not provided. + */ + args?: string[]; + /** + * Credential of the image registry + */ + imageRegistryCredential?: ImageRegistryCredential; +} + /** * Source information for a deployment */ export interface UserSourceInfo { /** - * Type of the source uploaded. Possible values include: 'Jar', 'NetCoreZip', 'Source' + * Type of the source uploaded. Possible values include: 'Jar', 'NetCoreZip', 'Source', + * 'Container' */ type?: UserSourceType; /** @@ -820,6 +863,26 @@ export interface UserSourceInfo { * the relative path to the target module/project. */ artifactSelector?: string; + /** + * Custom container payload + */ + customContainer?: CustomContainer; +} + +/** + * Deployment resource request payload + */ +export interface ResourceRequests { + /** + * Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic + * tier, and {500m, 1, 2, 3, 4} for Standard tier. + */ + cpu?: string; + /** + * Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi} + * for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. + */ + memory?: string; } /** @@ -827,15 +890,23 @@ export interface UserSourceInfo { */ export interface DeploymentSettings { /** - * Required CPU, basic tier should be 1, standard tier should be in range (1, 4). Default value: - * 1. + * Required CPU. This should be 1 for Basic tier, and in range [1, 4] for Standard tier. This is + * deprecated starting from API version 2021-06-01-preview. Please use the resourceRequests field + * to set the CPU size. Default value: 1. */ cpu?: number; /** - * Required Memory size in GB, basic tier should be in range (1, 2), standard tier should be in - * range (1, 8). Default value: 1. + * Required Memory size in GB. This should be in range [1, 2] for Basic tier, and in range [1, 8] + * for Standard tier. This is deprecated starting from API version 2021-06-01-preview. Please use + * the resourceRequests field to set the the memory size. Default value: 1. */ memoryInGB?: number; + /** + * The requested resource quantity for required CPU and Memory. It is recommended that using this + * field to represent the required CPU and Memory, the old field cpu and memoryInGB will be + * deprecated later. + */ + resourceRequests?: ResourceRequests; /** * JVM parameter */ @@ -1007,6 +1078,10 @@ export interface MetricDimension { * Localized friendly display name of the dimension */ displayName?: string; + /** + * Whether this dimension should be included for the Shoebox export scenario + */ + toBeExportedForShoebox?: boolean; } /** @@ -1499,11 +1574,11 @@ export type AppResourceProvisioningState = 'Succeeded' | 'Failed' | 'Creating' | /** * Defines values for UserSourceType. - * Possible values include: 'Jar', 'NetCoreZip', 'Source' + * Possible values include: 'Jar', 'NetCoreZip', 'Source', 'Container' * @readonly * @enum {string} */ -export type UserSourceType = 'Jar' | 'NetCoreZip' | 'Source'; +export type UserSourceType = 'Jar' | 'NetCoreZip' | 'Source' | 'Container'; /** * Defines values for RuntimeVersion. diff --git a/sdk/appplatform/arm-appplatform/src/models/mappers.ts b/sdk/appplatform/arm-appplatform/src/models/mappers.ts index d5aea74885fa..c80ead76b135 100644 --- a/sdk/appplatform/arm-appplatform/src/models/mappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -196,12 +196,14 @@ export const Sku: msRest.CompositeMapper = { modelProperties: { name: { serializedName: "name", + defaultValue: 'S0', type: { name: "String" } }, tier: { serializedName: "tier", + defaultValue: 'Standard', type: { name: "String" } @@ -910,12 +912,6 @@ export const AppResourceProperties: msRest.CompositeMapper = { name: "Boolean" } }, - enableEndToEndTLS: { - serializedName: "enableEndToEndTLS", - type: { - name: "Boolean" - } - }, createdTime: { readOnly: true, serializedName: "createdTime", @@ -936,6 +932,12 @@ export const AppResourceProperties: msRest.CompositeMapper = { name: "Composite", className: "PersistentDisk" } + }, + enableEndToEndTLS: { + serializedName: "enableEndToEndTLS", + type: { + name: "Boolean" + } } } } @@ -1320,6 +1322,79 @@ export const CustomDomainValidateResult: msRest.CompositeMapper = { } }; +export const ImageRegistryCredential: msRest.CompositeMapper = { + serializedName: "ImageRegistryCredential", + type: { + name: "Composite", + className: "ImageRegistryCredential", + modelProperties: { + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const CustomContainer: msRest.CompositeMapper = { + serializedName: "CustomContainer", + type: { + name: "Composite", + className: "CustomContainer", + modelProperties: { + server: { + serializedName: "server", + type: { + name: "String" + } + }, + containerImage: { + serializedName: "containerImage", + type: { + name: "String" + } + }, + command: { + serializedName: "command", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + args: { + serializedName: "args", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + imageRegistryCredential: { + serializedName: "imageRegistryCredential", + type: { + name: "Composite", + className: "ImageRegistryCredential" + } + } + } + } +}; + export const UserSourceInfo: msRest.CompositeMapper = { serializedName: "UserSourceInfo", type: { @@ -1349,6 +1424,35 @@ export const UserSourceInfo: msRest.CompositeMapper = { type: { name: "String" } + }, + customContainer: { + serializedName: "customContainer", + type: { + name: "Composite", + className: "CustomContainer" + } + } + } + } +}; + +export const ResourceRequests: msRest.CompositeMapper = { + serializedName: "ResourceRequests", + type: { + name: "Composite", + className: "ResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", + type: { + name: "String" + } } } } @@ -1374,6 +1478,13 @@ export const DeploymentSettings: msRest.CompositeMapper = { name: "Number" } }, + resourceRequests: { + serializedName: "resourceRequests", + type: { + name: "Composite", + className: "ResourceRequests" + } + }, jvmOptions: { serializedName: "jvmOptions", type: { @@ -1645,6 +1756,12 @@ export const MetricDimension: msRest.CompositeMapper = { type: { name: "String" } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + type: { + name: "Boolean" + } } } } diff --git a/sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts index 0463b1feac36..b827ef84ea79 100644 --- a/sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts @@ -21,6 +21,7 @@ export { ConfigServerProperties, ConfigServerResource, ConfigServerSettings, + CustomContainer, CustomDomainProperties, CustomDomainResource, DeploymentInstance, @@ -29,6 +30,7 @@ export { DeploymentSettings, ErrorModel, GitPatternRepository, + ImageRegistryCredential, ManagedIdentityProperties, MonitoringSettingProperties, MonitoringSettingResource, @@ -38,6 +40,7 @@ export { ProxyResource, RequiredTraffic, Resource, + ResourceRequests, ServiceResource, Sku, TemporaryDisk, diff --git a/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts b/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts index de115949d99c..58194934685e 100644 --- a/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts @@ -21,6 +21,7 @@ export { ConfigServerProperties, ConfigServerResource, ConfigServerSettings, + CustomContainer, CustomDomainProperties, CustomDomainResource, DeploymentInstance, @@ -29,6 +30,7 @@ export { DeploymentSettings, ErrorModel, GitPatternRepository, + ImageRegistryCredential, ManagedIdentityProperties, MonitoringSettingProperties, MonitoringSettingResource, @@ -41,6 +43,7 @@ export { RegenerateTestKeyRequestPayload, RequiredTraffic, Resource, + ResourceRequests, ServiceResource, ServiceResourceList, Sku, diff --git a/sdk/avs/arm-avs/LICENSE.txt b/sdk/avs/arm-avs/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/avs/arm-avs/LICENSE.txt +++ b/sdk/avs/arm-avs/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 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/avs/arm-avs/README.md b/sdk/avs/arm-avs/README.md index 63a73a5aafa8..353b532b2dd2 100644 --- a/sdk/avs/arm-avs/README.md +++ b/sdk/avs/arm-avs/README.md @@ -1,11 +1,11 @@ ## Azure AvsClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AvsClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for AvsClient. ### 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-avs @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 operations 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 AvsClient(creds, subscriptionId); - client.operations.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.ArmAvs.AvsClient(creds, subscriptionId); client.operations.list().then((result) => { diff --git a/sdk/avs/arm-avs/package.json b/sdk/avs/arm-avs/package.json index 6cac221a8bca..1a2e860f94ab 100644 --- a/sdk/avs/arm-avs/package.json +++ b/sdk/avs/arm-avs/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-avs", "author": "Microsoft Corporation", "description": "AvsClient Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "2.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.1.0", "@azure/ms-rest-js": "^2.2.0", @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/avs/arm-avs", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/avs/arm-avs", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/avs/arm-avs/rollup.config.js b/sdk/avs/arm-avs/rollup.config.js index f2cc59bca8c9..9e2c6038eb1d 100644 --- a/sdk/avs/arm-avs/rollup.config.js +++ b/sdk/avs/arm-avs/rollup.config.js @@ -21,8 +21,8 @@ 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. diff --git a/sdk/avs/arm-avs/src/avsClient.ts b/sdk/avs/arm-avs/src/avsClient.ts index 3b2edc265a44..aaaa5a6236b2 100644 --- a/sdk/avs/arm-avs/src/avsClient.ts +++ b/sdk/avs/arm-avs/src/avsClient.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 @@ -22,8 +21,16 @@ class AvsClient extends AvsClientContext { locations: operations.Locations; privateClouds: operations.PrivateClouds; clusters: operations.Clusters; + datastores: operations.Datastores; hcxEnterpriseSites: operations.HcxEnterpriseSites; authorizations: operations.Authorizations; + globalReachConnections: operations.GlobalReachConnections; + workloadNetworks: operations.WorkloadNetworks; + cloudLinks: operations.CloudLinks; + addons: operations.Addons; + scriptPackages: operations.ScriptPackages; + scriptCmdlets: operations.ScriptCmdlets; + scriptExecutions: operations.ScriptExecutions; /** * Initializes a new instance of the AvsClient class. @@ -42,8 +49,16 @@ class AvsClient extends AvsClientContext { this.locations = new operations.Locations(this); this.privateClouds = new operations.PrivateClouds(this); this.clusters = new operations.Clusters(this); + this.datastores = new operations.Datastores(this); this.hcxEnterpriseSites = new operations.HcxEnterpriseSites(this); this.authorizations = new operations.Authorizations(this); + this.globalReachConnections = new operations.GlobalReachConnections(this); + this.workloadNetworks = new operations.WorkloadNetworks(this); + this.cloudLinks = new operations.CloudLinks(this); + this.addons = new operations.Addons(this); + this.scriptPackages = new operations.ScriptPackages(this); + this.scriptCmdlets = new operations.ScriptCmdlets(this); + this.scriptExecutions = new operations.ScriptExecutions(this); } } diff --git a/sdk/avs/arm-avs/src/avsClientContext.ts b/sdk/avs/arm-avs/src/avsClientContext.ts index 03dceb2252d3..ce126894cc98 100644 --- a/sdk/avs/arm-avs/src/avsClientContext.ts +++ b/sdk/avs/arm-avs/src/avsClientContext.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,11 +9,11 @@ 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-avs"; -const packageVersion = "1.1.0"; +const packageVersion = "2.0.0"; export class AvsClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials | TokenCredential; @@ -50,7 +49,7 @@ export class AvsClientContext extends msRestAzure.AzureServiceClient { super(credentials, options); - this.apiVersion = '2020-03-20'; + this.apiVersion = '2021-06-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/avs/arm-avs/src/models/addonsMappers.ts b/sdk/avs/arm-avs/src/models/addonsMappers.ts new file mode 100644 index 000000000000..cf965d12f4b9 --- /dev/null +++ b/sdk/avs/arm-avs/src/models/addonsMappers.ts @@ -0,0 +1,61 @@ +/* + * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonList, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, + BaseResource, + Circuit, + CloudError, + CloudLink, + Cluster, + CommonClusterProperties, + Datastore, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, + Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/authorizationsMappers.ts b/sdk/avs/arm-avs/src/models/authorizationsMappers.ts index e05ac88a10b2..971a067ca334 100644 --- a/sdk/avs/arm-avs/src/models/authorizationsMappers.ts +++ b/sdk/avs/arm-avs/src/models/authorizationsMappers.ts @@ -1,27 +1,61 @@ /* - * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, BaseResource, Circuit, CloudError, + CloudLink, Cluster, - ClusterUpdateProperties, + CommonClusterProperties, + Datastore, + DiskPoolVolume, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, ExpressRouteAuthorizationList, + GlobalReachConnection, HcxEnterpriseSite, IdentitySource, ManagementCluster, + NetAppVolume, PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup } from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/cloudLinksMappers.ts b/sdk/avs/arm-avs/src/models/cloudLinksMappers.ts new file mode 100644 index 000000000000..ab66f0a4c077 --- /dev/null +++ b/sdk/avs/arm-avs/src/models/cloudLinksMappers.ts @@ -0,0 +1,61 @@ +/* + * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, + BaseResource, + Circuit, + CloudError, + CloudLink, + CloudLinkList, + Cluster, + CommonClusterProperties, + Datastore, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, + Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/clustersMappers.ts b/sdk/avs/arm-avs/src/models/clustersMappers.ts index 124b77e9e04d..f63850920810 100644 --- a/sdk/avs/arm-avs/src/models/clustersMappers.ts +++ b/sdk/avs/arm-avs/src/models/clustersMappers.ts @@ -1,28 +1,62 @@ /* - * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, BaseResource, Circuit, CloudError, + CloudLink, Cluster, ClusterList, ClusterUpdate, - ClusterUpdateProperties, + CommonClusterProperties, + Datastore, + DiskPoolVolume, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, + GlobalReachConnection, HcxEnterpriseSite, IdentitySource, ManagementCluster, + NetAppVolume, PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup } from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/datastoresMappers.ts b/sdk/avs/arm-avs/src/models/datastoresMappers.ts new file mode 100644 index 000000000000..29be66bd71da --- /dev/null +++ b/sdk/avs/arm-avs/src/models/datastoresMappers.ts @@ -0,0 +1,61 @@ +/* + * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, + BaseResource, + Circuit, + CloudError, + CloudLink, + Cluster, + CommonClusterProperties, + Datastore, + DatastoreList, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, + Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/globalReachConnectionsMappers.ts b/sdk/avs/arm-avs/src/models/globalReachConnectionsMappers.ts new file mode 100644 index 000000000000..9fb905d075f7 --- /dev/null +++ b/sdk/avs/arm-avs/src/models/globalReachConnectionsMappers.ts @@ -0,0 +1,61 @@ +/* + * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, + BaseResource, + Circuit, + CloudError, + CloudLink, + Cluster, + CommonClusterProperties, + Datastore, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + GlobalReachConnectionList, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, + Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/hcxEnterpriseSitesMappers.ts b/sdk/avs/arm-avs/src/models/hcxEnterpriseSitesMappers.ts index 874d20947675..083d84e54139 100644 --- a/sdk/avs/arm-avs/src/models/hcxEnterpriseSitesMappers.ts +++ b/sdk/avs/arm-avs/src/models/hcxEnterpriseSitesMappers.ts @@ -1,27 +1,61 @@ /* - * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, BaseResource, Circuit, CloudError, + CloudLink, Cluster, - ClusterUpdateProperties, + CommonClusterProperties, + Datastore, + DiskPoolVolume, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, + GlobalReachConnection, HcxEnterpriseSite, HcxEnterpriseSiteList, IdentitySource, ManagementCluster, + NetAppVolume, PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup } from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/index.ts b/sdk/avs/arm-avs/src/models/index.ts index b2e5781ec254..e55e9bcb1955 100644 --- a/sdk/avs/arm-avs/src/models/index.ts +++ b/sdk/avs/arm-avs/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. @@ -78,6 +78,12 @@ export interface TrackedResource extends Resource { tags?: { [propertyName: string]: string }; } +/** + * The resource model definition for a ARM proxy resource + */ +export interface ProxyResource extends Resource { +} + /** * The resource management error additional info. */ @@ -95,7 +101,9 @@ export interface ErrorAdditionalInfo { } /** - * The resource management error response. + * 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 ErrorResponse { /** @@ -151,6 +159,131 @@ export interface OperationDisplay { readonly description?: string; } +/** + * Specifications of the Log for Azure Monitoring + */ +export interface LogSpecification { + /** + * Name of the log + */ + name?: string; + /** + * Localized friendly display name of the log + */ + displayName?: string; + /** + * Blob duration of the log + */ + blobDuration?: string; +} + +/** + * Specifications of the Dimension of metrics + */ +export interface MetricDimension { + /** + * Name of the dimension + */ + name?: string; + /** + * Localized friendly display name of the dimension + */ + displayName?: string; + /** + * Name of the dimension as it appears in MDM + */ + internalName?: string; + /** + * A boolean flag indicating whether this dimension should be included for the shoebox export + * scenario + */ + toBeExportedForShoebox?: boolean; +} + +/** + * Specifications of the Metrics for Azure Monitoring + */ +export interface MetricSpecification { + /** + * Name of the metric + */ + name?: string; + /** + * Localized friendly display name of the metric + */ + displayName?: string; + /** + * Localized friendly description of the metric + */ + displayDescription?: string; + /** + * Unit that makes sense for the metric + */ + unit?: string; + /** + * Name of the metric category that the metric belongs to. A metric can only belong to a single + * category. + */ + category?: string; + /** + * Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. + */ + aggregationType?: string; + /** + * Supported aggregation types + */ + supportedAggregationTypes?: string[]; + /** + * Supported time grain types + */ + supportedTimeGrainTypes?: string[]; + /** + * Optional. If set to true, then zero will be returned for time duration where no metric is + * emitted/published. + */ + fillGapWithZero?: boolean; + /** + * Dimensions of the metric + */ + dimensions?: MetricDimension[]; + /** + * Whether or not the service is using regional MDM accounts. + */ + enableRegionalMdmAccount?: string; + /** + * The name of the MDM account. + */ + sourceMdmAccount?: string; + /** + * The name of the MDM namespace. + */ + sourceMdmNamespace?: string; +} + +/** + * Service specification payload + */ +export interface ServiceSpecification { + /** + * Specifications of the Log for Azure Monitoring + */ + logSpecifications?: LogSpecification[]; + /** + * Specifications of the Metrics for Azure Monitoring + */ + metricSpecifications?: MetricSpecification[]; +} + +/** + * Extra Operation properties + */ +export interface OperationProperties { + /** + * Service specifications of the operation + */ + serviceSpecification?: ServiceSpecification; +} + /** * A REST API operation */ @@ -165,6 +298,18 @@ export interface Operation { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly display?: OperationDisplay; + /** + * Gets or sets a value indicating whether the operation is a data action or not + */ + isDataAction?: boolean; + /** + * Origin of the operation + */ + origin?: string; + /** + * Properties of the operation + */ + properties?: OperationProperties; } /** @@ -309,7 +454,7 @@ export interface PrivateCloud extends TrackedResource { managementCluster?: ManagementCluster; /** * Connectivity to internet is enabled or disabled. Possible values include: 'Enabled', - * 'Disabled' + * 'Disabled'. Default value: 'Disabled'. */ internet?: InternetEnum; /** @@ -370,22 +515,26 @@ export interface PrivateCloud extends TrackedResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nsxtCertificateThumbprint?: string; + /** + * Array of cloud link IDs from other clouds that connect to this one + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly externalCloudLinks?: string[]; } /** - * The properties of a cluster that may be updated + * The common properties of a cluster */ -export interface ClusterUpdateProperties { +export interface CommonClusterProperties { /** * The cluster size */ clusterSize?: number; -} - -/** - * The properties of a default cluster - */ -export interface ManagementCluster extends ClusterUpdateProperties { + /** + * The state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Deleting', 'Updating' + */ + provisioningState?: ClusterProvisioningState; /** * The identity * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -398,12 +547,18 @@ export interface ManagementCluster extends ClusterUpdateProperties { readonly hosts?: string[]; } +/** + * The properties of a management cluster + */ +export interface ManagementCluster extends CommonClusterProperties { +} + /** * An update to a private cloud resource */ export interface PrivateCloudUpdate { /** - * Resource tags. + * Resource tags */ tags?: { [propertyName: string]: string }; /** @@ -412,7 +567,7 @@ export interface PrivateCloudUpdate { managementCluster?: ManagementCluster; /** * Connectivity to internet is enabled or disabled. Possible values include: 'Enabled', - * 'Disabled' + * 'Disabled'. Default value: 'Disabled'. */ internet?: InternetEnum; /** @@ -433,6 +588,11 @@ export interface Cluster extends Resource { * The cluster size */ clusterSize?: number; + /** + * The state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Deleting', 'Updating' + */ + provisioningState?: ClusterProvisioningState; /** * The identity * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -443,12 +603,6 @@ export interface Cluster extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly hosts?: string[]; - /** - * The state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', - * 'Cancelled', 'Deleting', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ClusterProvisioningState; } /** @@ -461,6 +615,151 @@ export interface ClusterUpdate { clusterSize?: number; } +/** + * Contains the possible cases for AddonProperties. + */ +export type AddonPropertiesUnion = AddonProperties | AddonSrmProperties | AddonVrProperties | AddonHcxProperties; + +/** + * The properties of an addon + */ +export interface AddonProperties { + /** + * Polymorphic Discriminator + */ + addonType: "AddonProperties"; + /** + * The state of the addon provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Building', 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: AddonProvisioningState; +} + +/** + * An addon resource + */ +export interface Addon extends Resource { + /** + * The properties of an addon resource + */ + properties?: AddonPropertiesUnion; +} + +/** + * The properties of a Site Recovery Manager (SRM) addon + */ +export interface AddonSrmProperties { + /** + * Polymorphic Discriminator + */ + addonType: "SRM"; + /** + * The state of the addon provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Building', 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: AddonProvisioningState; + /** + * The Site Recovery Manager (SRM) license + */ + licenseKey: string; +} + +/** + * The properties of a vSphere Replication (VR) addon + */ +export interface AddonVrProperties { + /** + * Polymorphic Discriminator + */ + addonType: "VR"; + /** + * The state of the addon provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Building', 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: AddonProvisioningState; + /** + * The vSphere Replication Server (VRS) count + */ + vrsCount: number; +} + +/** + * The properties of an HCX addon + */ +export interface AddonHcxProperties { + /** + * Polymorphic Discriminator + */ + addonType: "HCX"; + /** + * The state of the addon provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Building', 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: AddonProvisioningState; + /** + * The HCX offer, example VMware MaaS Cloud Provider (Enterprise) + */ + offer: string; +} + +/** + * An Azure NetApp Files volume from Microsoft.NetApp provider + */ +export interface NetAppVolume { + /** + * Azure resource ID of the NetApp volume + */ + id: string; +} + +/** + * An iSCSI volume from Microsoft.StoragePool provider + */ +export interface DiskPoolVolume { + /** + * Azure resource ID of the iSCSI target + */ + targetId: string; + /** + * Name of the LUN to be used for datastore + */ + lunName: string; + /** + * Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN. + * Possible values include: 'MOUNT', 'ATTACH'. Default value: 'MOUNT'. + */ + mountOption?: MountOptionEnum; + /** + * Device path + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly path?: string; +} + +/** + * A datastore resource + */ +export interface Datastore extends Resource { + /** + * The state of the datastore provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Pending', 'Creating', 'Updating', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: DatastoreProvisioningState; + /** + * An Azure NetApp Files volume + */ + netAppVolume?: NetAppVolume; + /** + * An iSCSI volume + */ + diskPoolVolume?: DiskPoolVolume; +} + /** * Administrative credentials for accessing vCenter and NSX-T */ @@ -505,166 +804,2990 @@ export interface HcxEnterpriseSite extends Resource { } /** - * Optional Parameters. + * A global reach connection resource */ -export interface ClustersUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface GlobalReachConnection extends Resource { /** - * The cluster size + * The state of the ExpressRoute Circuit Authorization provisioning. Possible values include: + * 'Succeeded', 'Failed', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - clusterSize?: number; + readonly provisioningState?: GlobalReachConnectionProvisioningState; + /** + * The network used for global reach carved out from the original network block provided for the + * private cloud + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly addressPrefix?: string; + /** + * Authorization key from the peer express route used for the global reach connection + */ + authorizationKey?: string; + /** + * The connection status of the global reach connection. Possible values include: 'Connected', + * 'Connecting', 'Disconnected' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly circuitConnectionStatus?: GlobalReachConnectionStatus; + /** + * Identifier of the ExpressRoute Circuit to peer with in the global reach connection + */ + peerExpressRouteCircuit?: string; } /** - * Optional Parameters. + * A cloud link resource */ -export interface ClustersBeginUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface CloudLink extends Resource { /** - * The cluster size + * The state of the cloud link. Possible values include: 'Active', 'Building', 'Deleting', + * 'Failed', 'Disconnected' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - clusterSize?: number; + readonly status?: CloudLinkStatus; + /** + * Identifier of the other private cloud participating in the link. + */ + linkedCloud?: string; } /** - * An interface representing AvsClientOptions. + * Subnet configuration for segment */ -export interface AvsClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface WorkloadNetworkSegmentSubnet { + /** + * DHCP Range assigned for subnet. + */ + dhcpRanges?: string[]; + /** + * Gateway address. + */ + gatewayAddress?: string; } /** - * @interface - * Pageable list of operations - * @extends Array + * Ports and any VIF attached to segment. */ -export interface OperationList extends Array { +export interface WorkloadNetworkSegmentPortVif { /** - * URL to get the next page if any - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of port or VIF attached to segment. */ - readonly nextLink?: string; + portName?: string; } /** - * @interface - * A paged list of private clouds - * @extends Array + * NSX Segment */ -export interface PrivateCloudList extends Array { +export interface WorkloadNetworkSegment extends ProxyResource { /** - * URL to get the next page if any + * Display name of the segment. + */ + displayName?: string; + /** + * Gateway which to connect segment to. + */ + connectedGateway?: string; + /** + * Subnet which to connect segment to. + */ + subnet?: WorkloadNetworkSegmentSubnet; + /** + * Port Vif which segment is associated with. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly portVif?: WorkloadNetworkSegmentPortVif[]; + /** + * Segment status. Possible values include: 'SUCCESS, FAILURE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: SegmentStatusEnum; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkSegmentProvisioningState; + /** + * NSX revision number. + */ + revision?: number; } /** - * @interface - * A paged list of clusters - * @extends Array + * Contains the possible cases for WorkloadNetworkDhcpEntity. */ -export interface ClusterList extends Array { +export type WorkloadNetworkDhcpEntityUnion = WorkloadNetworkDhcpEntity | WorkloadNetworkDhcpServer | WorkloadNetworkDhcpRelay; + +/** + * Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from + */ +export interface WorkloadNetworkDhcpEntity { /** - * URL to get the next page if any - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly nextLink?: string; -} + dhcpType: "WorkloadNetworkDhcpEntity"; + /** + * Display name of the DHCP entity. + */ + displayName?: string; + /** + * NSX Segments consuming DHCP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly segments?: string[]; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDhcpProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * NSX DHCP Server + */ +export interface WorkloadNetworkDhcpServer { + /** + * Polymorphic Discriminator + */ + dhcpType: "SERVER"; + /** + * Display name of the DHCP entity. + */ + displayName?: string; + /** + * NSX Segments consuming DHCP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly segments?: string[]; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDhcpProvisioningState; + /** + * NSX revision number. + */ + revision?: number; + /** + * DHCP Server Address. + */ + serverAddress?: string; + /** + * DHCP Server Lease Time. + */ + leaseTime?: number; +} + +/** + * NSX DHCP Relay + */ +export interface WorkloadNetworkDhcpRelay { + /** + * Polymorphic Discriminator + */ + dhcpType: "RELAY"; + /** + * Display name of the DHCP entity. + */ + displayName?: string; + /** + * NSX Segments consuming DHCP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly segments?: string[]; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDhcpProvisioningState; + /** + * NSX revision number. + */ + revision?: number; + /** + * DHCP Relay Addresses. Max 3. + */ + serverAddresses?: string[]; +} + +/** + * NSX DHCP + */ +export interface WorkloadNetworkDhcp extends ProxyResource { + /** + * DHCP properties. + */ + properties?: WorkloadNetworkDhcpEntityUnion; +} + +/** + * NSX Port Mirroring + */ +export interface WorkloadNetworkPortMirroring extends ProxyResource { + /** + * Display name of the port mirroring profile. + */ + displayName?: string; + /** + * Direction of port mirroring profile. Possible values include: 'INGRESS, EGRESS, BIDIRECTIONAL' + */ + direction?: PortMirroringDirectionEnum; + /** + * Source VM Group. + */ + source?: string; + /** + * Destination VM Group. + */ + destination?: string; + /** + * Port Mirroring Status. Possible values include: 'SUCCESS, FAILURE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: PortMirroringStatusEnum; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkPortMirroringProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * NSX VM Group + */ +export interface WorkloadNetworkVMGroup extends ProxyResource { + /** + * Display name of the VM group. + */ + displayName?: string; + /** + * Virtual machine members of this group. + */ + members?: string[]; + /** + * VM Group status. Possible values include: 'SUCCESS, FAILURE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: VMGroupStatusEnum; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkVMGroupProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * NSX Virtual Machine + */ +export interface WorkloadNetworkVirtualMachine extends ProxyResource { + /** + * Display name of the VM. + */ + displayName?: string; + /** + * Virtual machine type. Possible values include: 'REGULAR, EDGE, SERVICE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vmType?: VMTypeEnum; +} + +/** + * NSX Gateway. + */ +export interface WorkloadNetworkGateway extends ProxyResource { + /** + * Display name of the DHCP entity. + */ + displayName?: string; + /** + * NSX Gateway Path. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly path?: string; +} + +/** + * NSX DNS Service + */ +export interface WorkloadNetworkDnsService extends ProxyResource { + /** + * Display name of the DNS Service. + */ + displayName?: string; + /** + * DNS service IP of the DNS Service. + */ + dnsServiceIp?: string; + /** + * Default DNS zone of the DNS Service. + */ + defaultDnsZone?: string; + /** + * FQDN zones of the DNS Service. + */ + fqdnZones?: string[]; + /** + * DNS Service log level. Possible values include: 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'FATAL' + */ + logLevel?: DnsServiceLogLevelEnum; + /** + * DNS Service status. Possible values include: 'SUCCESS', 'FAILURE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: DnsServiceStatusEnum; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDnsServiceProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * NSX DNS Zone + */ +export interface WorkloadNetworkDnsZone extends ProxyResource { + /** + * Display name of the DNS Zone. + */ + displayName?: string; + /** + * Domain names of the DNS Zone. + */ + domain?: string[]; + /** + * DNS Server IP array of the DNS Zone. + */ + dnsServerIps?: string[]; + /** + * Source IP of the DNS Zone. + */ + sourceIp?: string; + /** + * Number of DNS Services using the DNS zone. + */ + dnsServices?: number; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDnsZoneProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * NSX Public IP Block + */ +export interface WorkloadNetworkPublicIP extends ProxyResource { + /** + * Display name of the Public IP Block. + */ + displayName?: string; + /** + * Number of Public IPs requested. + */ + numberOfPublicIPs?: number; + /** + * CIDR Block of the Public IP Block. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly publicIPBlock?: string; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkPublicIPProvisioningState; +} + +/** + * Script Package resources available for execution + */ +export interface ScriptPackage extends ProxyResource { + /** + * User friendly description of the package + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Module version + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: string; +} + +/** + * An parameter that the script will accept + */ +export interface ScriptParameter { + /** + * The type of parameter the script is expecting. psCredential is a PSCredentialObject. Possible + * values include: 'String', 'SecureString', 'Credential', 'Int', 'Bool', 'Float' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: ScriptParameterTypes; + /** + * The parameter name that the script will expect a parameter value for + */ + name?: string; + /** + * User friendly description of the parameter + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Should this parameter be visible to arm and passed in the parameters argument when executing. + * Possible values include: 'Visible', 'Hidden' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly visibility?: VisibilityParameterEnum; + /** + * Is this parameter required or optional. Possible values include: 'Optional', 'Required' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly optional?: OptionalParamEnum; +} + +/** + * A cmdlet available for script execution + */ +export interface ScriptCmdlet extends ProxyResource { + /** + * Description of the scripts functionality + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Recommended time limit for execution + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timeout?: string; + /** + * Parameters the script will accept + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly parameters?: ScriptParameter[]; +} + +/** + * Contains the possible cases for ScriptExecutionParameter. + */ +export type ScriptExecutionParameterUnion = ScriptExecutionParameter | ScriptSecureStringExecutionParameter | ScriptStringExecutionParameter | PSCredentialExecutionParameter; + +/** + * The arguments passed in to the execution + */ +export interface ScriptExecutionParameter { + /** + * Polymorphic Discriminator + */ + type: "ScriptExecutionParameter"; + /** + * The parameter name + */ + name: string; +} + +/** + * An instance of a script executed by a user - custom or AVS + */ +export interface ScriptExecution extends ProxyResource { + /** + * A reference to the script cmdlet resource if user is running a AVS script + */ + scriptCmdletId?: string; + /** + * Parameters the script will accept + */ + parameters?: ScriptExecutionParameterUnion[]; + /** + * Parameters that will be hidden/not visible to ARM, such as passwords and credentials + */ + hiddenParameters?: ScriptExecutionParameterUnion[]; + /** + * Error message if the script was able to run, but if the script itself had errors or powershell + * threw an exception + */ + failureReason?: string; + /** + * Time limit for execution + */ + timeout: string; + /** + * Time to live for the resource. If not provided, will be available for 60 days + */ + retention?: string; + /** + * Time the script execution was submitted + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly submittedAt?: Date; + /** + * Time the script execution was started + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startedAt?: Date; + /** + * Time the script execution was finished + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly finishedAt?: Date; + /** + * The state of the script execution resource. Possible values include: 'Pending', 'Running', + * 'Succeeded', 'Failed', 'Cancelling', 'Cancelled', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ScriptExecutionProvisioningState; + /** + * Standard output stream from the powershell execution + */ + output?: string[]; + /** + * User-defined dictionary. + */ + namedOutputs?: { [propertyName: string]: any }; + /** + * Standard information out stream from the powershell execution + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly information?: string[]; + /** + * Standard warning out stream from the powershell execution + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly warnings?: string[]; + /** + * Standard error output stream from the powershell execution + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly errors?: string[]; +} + +/** + * a plain text value execution parameter + */ +export interface ScriptSecureStringExecutionParameter { + /** + * Polymorphic Discriminator + */ + type: "SecureValue"; + /** + * The parameter name + */ + name: string; + /** + * A secure value for the passed parameter, not to be stored in logs + */ + secureValue?: string; +} + +/** + * a plain text value execution parameter + */ +export interface ScriptStringExecutionParameter { + /** + * Polymorphic Discriminator + */ + type: "Value"; + /** + * The parameter name + */ + name: string; + /** + * The value for the passed parameter + */ + value?: string; +} + +/** + * a powershell credential object + */ +export interface PSCredentialExecutionParameter { + /** + * Polymorphic Discriminator + */ + type: "Credential"; + /** + * The parameter name + */ + name: string; + /** + * username for login + */ + username?: string; + /** + * password for login + */ + password?: string; +} + +/** + * Optional Parameters. + */ +export interface ClustersUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cluster size + */ + clusterSize?: number; +} + +/** + * Optional Parameters. + */ +export interface ClustersBeginUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cluster size + */ + clusterSize?: number; +} + +/** + * Optional Parameters. + */ +export interface WorkloadNetworksCreateDhcpOptionalParams extends msRest.RequestOptionsBase { + /** + * DHCP properties. + */ + properties?: WorkloadNetworkDhcpEntityUnion; +} + +/** + * Optional Parameters. + */ +export interface WorkloadNetworksUpdateDhcpOptionalParams extends msRest.RequestOptionsBase { + /** + * DHCP properties. + */ + properties?: WorkloadNetworkDhcpEntityUnion; +} + +/** + * Optional Parameters. + */ +export interface WorkloadNetworksBeginCreateDhcpOptionalParams extends msRest.RequestOptionsBase { + /** + * DHCP properties. + */ + properties?: WorkloadNetworkDhcpEntityUnion; +} + +/** + * Optional Parameters. + */ +export interface WorkloadNetworksBeginUpdateDhcpOptionalParams extends msRest.RequestOptionsBase { + /** + * DHCP properties. + */ + properties?: WorkloadNetworkDhcpEntityUnion; +} + +/** + * Optional Parameters. + */ +export interface CloudLinksCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Identifier of the other private cloud participating in the link. + */ + linkedCloud?: string; +} + +/** + * Optional Parameters. + */ +export interface CloudLinksBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Identifier of the other private cloud participating in the link. + */ + linkedCloud?: string; +} + +/** + * Optional Parameters. + */ +export interface AddonsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The properties of an addon resource + */ + properties?: AddonPropertiesUnion; +} + +/** + * Optional Parameters. + */ +export interface AddonsBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The properties of an addon resource + */ + properties?: AddonPropertiesUnion; +} + +/** + * Optional Parameters. + */ +export interface ScriptExecutionsGetExecutionLogsOptionalParams extends msRest.RequestOptionsBase { + /** + * Name of the desired output stream to return. If not provided, will return all. An empty array + * will return nothing + */ + scriptOutputStreamType?: ScriptOutputStreamType[]; +} + +/** + * An interface representing AvsClientOptions. + */ +export interface AvsClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Pageable list of operations + * @extends Array + */ +export interface OperationList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of private clouds + * @extends Array + */ +export interface PrivateCloudList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of clusters + * @extends Array + */ +export interface ClusterList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of datastores + * @extends Array + */ +export interface DatastoreList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of HCX Enterprise Sites + * @extends Array + */ +export interface HcxEnterpriseSiteList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of ExpressRoute Circuit Authorizations + * @extends Array + */ +export interface ExpressRouteAuthorizationList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of global reach connections + * @extends Array + */ +export interface GlobalReachConnectionList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX Segments + * @extends Array + */ +export interface WorkloadNetworkSegmentsList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX dhcp entities + * @extends Array + */ +export interface WorkloadNetworkDhcpList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX Gateways + * @extends Array + */ +export interface WorkloadNetworkGatewayList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX Port Mirroring + * @extends Array + */ +export interface WorkloadNetworkPortMirroringList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX VM Groups + * @extends Array + */ +export interface WorkloadNetworkVMGroupsList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX Virtual Machines + * @extends Array + */ +export interface WorkloadNetworkVirtualMachinesList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX DNS Services + * @extends Array + */ +export interface WorkloadNetworkDnsServicesList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX DNS Zones + * @extends Array + */ +export interface WorkloadNetworkDnsZonesList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX Public IP Blocks + * @extends Array + */ +export interface WorkloadNetworkPublicIPsList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of cloud links + * @extends Array + */ +export interface CloudLinkList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of addons + * @extends Array + */ +export interface AddonList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the available script packages + * @extends Array + */ +export interface ScriptPackagesList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Pageable list of scripts/cmdlets + * @extends Array + */ +export interface ScriptCmdletsList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Pageable list of script executions + * @extends Array + */ +export interface ScriptExecutionsList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for TrialStatus. + * Possible values include: 'TrialAvailable', 'TrialUsed', 'TrialDisabled' + * @readonly + * @enum {string} + */ +export type TrialStatus = 'TrialAvailable' | 'TrialUsed' | 'TrialDisabled'; + +/** + * Defines values for QuotaEnabled. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type QuotaEnabled = 'Enabled' | 'Disabled'; + +/** + * Defines values for ExpressRouteAuthorizationProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Updating' + * @readonly + * @enum {string} + */ +export type ExpressRouteAuthorizationProvisioningState = 'Succeeded' | 'Failed' | 'Updating'; + +/** + * Defines values for SslEnum. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SslEnum = 'Enabled' | 'Disabled'; + +/** + * Defines values for PrivateCloudProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Pending', 'Building', 'Deleting', + * 'Updating' + * @readonly + * @enum {string} + */ +export type PrivateCloudProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Pending' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for InternetEnum. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type InternetEnum = 'Enabled' | 'Disabled'; + +/** + * Defines values for ClusterProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type ClusterProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Deleting' | 'Updating'; + +/** + * Defines values for AddonProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type AddonProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for DatastoreProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Pending', 'Creating', 'Updating', + * 'Deleting' + * @readonly + * @enum {string} + */ +export type DatastoreProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Pending' | 'Creating' | 'Updating' | 'Deleting'; + +/** + * Defines values for MountOptionEnum. + * Possible values include: 'MOUNT', 'ATTACH' + * @readonly + * @enum {string} + */ +export type MountOptionEnum = 'MOUNT' | 'ATTACH'; + +/** + * Defines values for HcxEnterpriseSiteStatus. + * Possible values include: 'Available', 'Consumed', 'Deactivated', 'Deleted' + * @readonly + * @enum {string} + */ +export type HcxEnterpriseSiteStatus = 'Available' | 'Consumed' | 'Deactivated' | 'Deleted'; + +/** + * Defines values for GlobalReachConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Updating' + * @readonly + * @enum {string} + */ +export type GlobalReachConnectionProvisioningState = 'Succeeded' | 'Failed' | 'Updating'; + +/** + * Defines values for GlobalReachConnectionStatus. + * Possible values include: 'Connected', 'Connecting', 'Disconnected' + * @readonly + * @enum {string} + */ +export type GlobalReachConnectionStatus = 'Connected' | 'Connecting' | 'Disconnected'; + +/** + * Defines values for CloudLinkStatus. + * Possible values include: 'Active', 'Building', 'Deleting', 'Failed', 'Disconnected' + * @readonly + * @enum {string} + */ +export type CloudLinkStatus = 'Active' | 'Building' | 'Deleting' | 'Failed' | 'Disconnected'; + +/** + * Defines values for SegmentStatusEnum. + * Possible values include: 'SUCCESS, FAILURE' + * @readonly + * @enum {string} + */ +export type SegmentStatusEnum = 'SUCCESS, FAILURE'; + +/** + * Defines values for WorkloadNetworkSegmentProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkSegmentProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for WorkloadNetworkDhcpProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkDhcpProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for PortMirroringDirectionEnum. + * Possible values include: 'INGRESS, EGRESS, BIDIRECTIONAL' + * @readonly + * @enum {string} + */ +export type PortMirroringDirectionEnum = 'INGRESS, EGRESS, BIDIRECTIONAL'; + +/** + * Defines values for PortMirroringStatusEnum. + * Possible values include: 'SUCCESS, FAILURE' + * @readonly + * @enum {string} + */ +export type PortMirroringStatusEnum = 'SUCCESS, FAILURE'; + +/** + * Defines values for WorkloadNetworkPortMirroringProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkPortMirroringProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for VMGroupStatusEnum. + * Possible values include: 'SUCCESS, FAILURE' + * @readonly + * @enum {string} + */ +export type VMGroupStatusEnum = 'SUCCESS, FAILURE'; + +/** + * Defines values for WorkloadNetworkVMGroupProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkVMGroupProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for VMTypeEnum. + * Possible values include: 'REGULAR, EDGE, SERVICE' + * @readonly + * @enum {string} + */ +export type VMTypeEnum = 'REGULAR, EDGE, SERVICE'; + +/** + * Defines values for DnsServiceLogLevelEnum. + * Possible values include: 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'FATAL' + * @readonly + * @enum {string} + */ +export type DnsServiceLogLevelEnum = 'DEBUG' | 'INFO' | 'WARNING' | 'ERROR' | 'FATAL'; + +/** + * Defines values for DnsServiceStatusEnum. + * Possible values include: 'SUCCESS', 'FAILURE' + * @readonly + * @enum {string} + */ +export type DnsServiceStatusEnum = 'SUCCESS' | 'FAILURE'; + +/** + * Defines values for WorkloadNetworkDnsServiceProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkDnsServiceProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for WorkloadNetworkDnsZoneProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkDnsZoneProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for WorkloadNetworkPublicIPProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkPublicIPProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for ScriptParameterTypes. + * Possible values include: 'String', 'SecureString', 'Credential', 'Int', 'Bool', 'Float' + * @readonly + * @enum {string} + */ +export type ScriptParameterTypes = 'String' | 'SecureString' | 'Credential' | 'Int' | 'Bool' | 'Float'; + +/** + * Defines values for VisibilityParameterEnum. + * Possible values include: 'Visible', 'Hidden' + * @readonly + * @enum {string} + */ +export type VisibilityParameterEnum = 'Visible' | 'Hidden'; + +/** + * Defines values for OptionalParamEnum. + * Possible values include: 'Optional', 'Required' + * @readonly + * @enum {string} + */ +export type OptionalParamEnum = 'Optional' | 'Required'; + +/** + * Defines values for ScriptExecutionProvisioningState. + * Possible values include: 'Pending', 'Running', 'Succeeded', 'Failed', 'Cancelling', 'Cancelled', + * 'Deleting' + * @readonly + * @enum {string} + */ +export type ScriptExecutionProvisioningState = 'Pending' | 'Running' | 'Succeeded' | 'Failed' | 'Cancelling' | 'Cancelled' | 'Deleting'; + +/** + * Defines values for ScriptOutputStreamType. + * Possible values include: 'Information', 'Warning', 'Output', 'Error' + * @readonly + * @enum {string} + */ +export type ScriptOutputStreamType = 'Information' | 'Warning' | 'Output' | 'Error'; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationList & { + /** + * 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: OperationList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationList & { + /** + * 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: OperationList; + }; +}; + +/** + * Contains response data for the checkTrialAvailability operation. + */ +export type LocationsCheckTrialAvailabilityResponse = Trial & { + /** + * 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: Trial; + }; +}; + +/** + * Contains response data for the checkQuotaAvailability operation. + */ +export type LocationsCheckQuotaAvailabilityResponse = Quota & { + /** + * 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: Quota; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type PrivateCloudsListResponse = PrivateCloudList & { + /** + * 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: PrivateCloudList; + }; +}; + +/** + * Contains response data for the listInSubscription operation. + */ +export type PrivateCloudsListInSubscriptionResponse = PrivateCloudList & { + /** + * 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: PrivateCloudList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateCloudsGetResponse = PrivateCloud & { + /** + * 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: PrivateCloud; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PrivateCloudsCreateOrUpdateResponse = PrivateCloud & { + /** + * 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: PrivateCloud; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type PrivateCloudsUpdateResponse = PrivateCloud & { + /** + * 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: PrivateCloud; + }; +}; + +/** + * Contains response data for the listAdminCredentials operation. + */ +export type PrivateCloudsListAdminCredentialsResponse = AdminCredentials & { + /** + * 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: AdminCredentials; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type PrivateCloudsBeginCreateOrUpdateResponse = PrivateCloud & { + /** + * 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: PrivateCloud; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type PrivateCloudsBeginUpdateResponse = PrivateCloud & { + /** + * 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: PrivateCloud; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type PrivateCloudsListNextResponse = PrivateCloudList & { + /** + * 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: PrivateCloudList; + }; +}; + +/** + * Contains response data for the listInSubscriptionNext operation. + */ +export type PrivateCloudsListInSubscriptionNextResponse = PrivateCloudList & { + /** + * 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: PrivateCloudList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ClustersListResponse = ClusterList & { + /** + * 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: ClusterList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ClustersGetResponse = Cluster & { + /** + * 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: Cluster; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ClustersCreateOrUpdateResponse = Cluster & { + /** + * 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: Cluster; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ClustersUpdateResponse = Cluster & { + /** + * 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: Cluster; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ClustersBeginCreateOrUpdateResponse = Cluster & { + /** + * 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: Cluster; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type ClustersBeginUpdateResponse = Cluster & { + /** + * 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: Cluster; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ClustersListNextResponse = ClusterList & { + /** + * 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: ClusterList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DatastoresListResponse = DatastoreList & { + /** + * 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: DatastoreList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DatastoresGetResponse = Datastore & { + /** + * 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: Datastore; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DatastoresCreateOrUpdateResponse = Datastore & { + /** + * 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: Datastore; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DatastoresBeginCreateOrUpdateResponse = Datastore & { + /** + * 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: Datastore; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DatastoresListNextResponse = DatastoreList & { + /** + * 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: DatastoreList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type HcxEnterpriseSitesListResponse = HcxEnterpriseSiteList & { + /** + * 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: HcxEnterpriseSiteList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type HcxEnterpriseSitesGetResponse = HcxEnterpriseSite & { + /** + * 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: HcxEnterpriseSite; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type HcxEnterpriseSitesCreateOrUpdateResponse = HcxEnterpriseSite & { + /** + * 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: HcxEnterpriseSite; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type HcxEnterpriseSitesListNextResponse = HcxEnterpriseSiteList & { + /** + * 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: HcxEnterpriseSiteList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AuthorizationsListResponse = ExpressRouteAuthorizationList & { + /** + * 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: ExpressRouteAuthorizationList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AuthorizationsGetResponse = ExpressRouteAuthorization & { + /** + * 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: ExpressRouteAuthorization; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AuthorizationsCreateOrUpdateResponse = ExpressRouteAuthorization & { + /** + * 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: ExpressRouteAuthorization; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type AuthorizationsBeginCreateOrUpdateResponse = ExpressRouteAuthorization & { + /** + * 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: ExpressRouteAuthorization; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AuthorizationsListNextResponse = ExpressRouteAuthorizationList & { + /** + * 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: ExpressRouteAuthorizationList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type GlobalReachConnectionsListResponse = GlobalReachConnectionList & { + /** + * 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: GlobalReachConnectionList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type GlobalReachConnectionsGetResponse = GlobalReachConnection & { + /** + * 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: GlobalReachConnection; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type GlobalReachConnectionsCreateOrUpdateResponse = GlobalReachConnection & { + /** + * 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: GlobalReachConnection; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type GlobalReachConnectionsBeginCreateOrUpdateResponse = GlobalReachConnection & { + /** + * 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: GlobalReachConnection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type GlobalReachConnectionsListNextResponse = GlobalReachConnectionList & { + /** + * 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: GlobalReachConnectionList; + }; +}; + +/** + * Contains response data for the listSegments operation. + */ +export type WorkloadNetworksListSegmentsResponse = WorkloadNetworkSegmentsList & { + /** + * 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: WorkloadNetworkSegmentsList; + }; +}; + +/** + * Contains response data for the getSegment operation. + */ +export type WorkloadNetworksGetSegmentResponse = WorkloadNetworkSegment & { + /** + * 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: WorkloadNetworkSegment; + }; +}; + +/** + * Contains response data for the createSegments operation. + */ +export type WorkloadNetworksCreateSegmentsResponse = WorkloadNetworkSegment & { + /** + * 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: WorkloadNetworkSegment; + }; +}; + +/** + * Contains response data for the updateSegments operation. + */ +export type WorkloadNetworksUpdateSegmentsResponse = WorkloadNetworkSegment & { + /** + * 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: WorkloadNetworkSegment; + }; +}; + +/** + * Contains response data for the listDhcp operation. + */ +export type WorkloadNetworksListDhcpResponse = WorkloadNetworkDhcpList & { + /** + * 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: WorkloadNetworkDhcpList; + }; +}; + +/** + * Contains response data for the getDhcp operation. + */ +export type WorkloadNetworksGetDhcpResponse = WorkloadNetworkDhcp & { + /** + * 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: WorkloadNetworkDhcp; + }; +}; + +/** + * Contains response data for the createDhcp operation. + */ +export type WorkloadNetworksCreateDhcpResponse = WorkloadNetworkDhcp & { + /** + * 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: WorkloadNetworkDhcp; + }; +}; + +/** + * Contains response data for the updateDhcp operation. + */ +export type WorkloadNetworksUpdateDhcpResponse = WorkloadNetworkDhcp & { + /** + * 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: WorkloadNetworkDhcp; + }; +}; + +/** + * Contains response data for the listGateways operation. + */ +export type WorkloadNetworksListGatewaysResponse = WorkloadNetworkGatewayList & { + /** + * 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: WorkloadNetworkGatewayList; + }; +}; + +/** + * Contains response data for the getGateway operation. + */ +export type WorkloadNetworksGetGatewayResponse = WorkloadNetworkGateway & { + /** + * 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: WorkloadNetworkGateway; + }; +}; + +/** + * Contains response data for the listPortMirroring operation. + */ +export type WorkloadNetworksListPortMirroringResponse = WorkloadNetworkPortMirroringList & { + /** + * 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: WorkloadNetworkPortMirroringList; + }; +}; + +/** + * Contains response data for the getPortMirroring operation. + */ +export type WorkloadNetworksGetPortMirroringResponse = WorkloadNetworkPortMirroring & { + /** + * 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: WorkloadNetworkPortMirroring; + }; +}; + +/** + * Contains response data for the createPortMirroring operation. + */ +export type WorkloadNetworksCreatePortMirroringResponse = WorkloadNetworkPortMirroring & { + /** + * 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: WorkloadNetworkPortMirroring; + }; +}; + +/** + * Contains response data for the updatePortMirroring operation. + */ +export type WorkloadNetworksUpdatePortMirroringResponse = WorkloadNetworkPortMirroring & { + /** + * 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: WorkloadNetworkPortMirroring; + }; +}; + +/** + * Contains response data for the listVMGroups operation. + */ +export type WorkloadNetworksListVMGroupsResponse = WorkloadNetworkVMGroupsList & { + /** + * 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: WorkloadNetworkVMGroupsList; + }; +}; + +/** + * Contains response data for the getVMGroup operation. + */ +export type WorkloadNetworksGetVMGroupResponse = WorkloadNetworkVMGroup & { + /** + * 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: WorkloadNetworkVMGroup; + }; +}; + +/** + * Contains response data for the createVMGroup operation. + */ +export type WorkloadNetworksCreateVMGroupResponse = WorkloadNetworkVMGroup & { + /** + * 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: WorkloadNetworkVMGroup; + }; +}; + +/** + * Contains response data for the updateVMGroup operation. + */ +export type WorkloadNetworksUpdateVMGroupResponse = WorkloadNetworkVMGroup & { + /** + * 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: WorkloadNetworkVMGroup; + }; +}; + +/** + * Contains response data for the listVirtualMachines operation. + */ +export type WorkloadNetworksListVirtualMachinesResponse = WorkloadNetworkVirtualMachinesList & { + /** + * 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: WorkloadNetworkVirtualMachinesList; + }; +}; + +/** + * Contains response data for the getVirtualMachine operation. + */ +export type WorkloadNetworksGetVirtualMachineResponse = WorkloadNetworkVirtualMachine & { + /** + * 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: WorkloadNetworkVirtualMachine; + }; +}; + +/** + * Contains response data for the listDnsServices operation. + */ +export type WorkloadNetworksListDnsServicesResponse = WorkloadNetworkDnsServicesList & { + /** + * 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: WorkloadNetworkDnsServicesList; + }; +}; + +/** + * Contains response data for the getDnsService operation. + */ +export type WorkloadNetworksGetDnsServiceResponse = WorkloadNetworkDnsService & { + /** + * 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: WorkloadNetworkDnsService; + }; +}; + +/** + * Contains response data for the createDnsService operation. + */ +export type WorkloadNetworksCreateDnsServiceResponse = WorkloadNetworkDnsService & { + /** + * 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: WorkloadNetworkDnsService; + }; +}; + +/** + * Contains response data for the updateDnsService operation. + */ +export type WorkloadNetworksUpdateDnsServiceResponse = WorkloadNetworkDnsService & { + /** + * 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: WorkloadNetworkDnsService; + }; +}; + +/** + * Contains response data for the listDnsZones operation. + */ +export type WorkloadNetworksListDnsZonesResponse = WorkloadNetworkDnsZonesList & { + /** + * 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: WorkloadNetworkDnsZonesList; + }; +}; + +/** + * Contains response data for the getDnsZone operation. + */ +export type WorkloadNetworksGetDnsZoneResponse = WorkloadNetworkDnsZone & { + /** + * 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: WorkloadNetworkDnsZone; + }; +}; + +/** + * Contains response data for the createDnsZone operation. + */ +export type WorkloadNetworksCreateDnsZoneResponse = WorkloadNetworkDnsZone & { + /** + * 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: WorkloadNetworkDnsZone; + }; +}; + +/** + * Contains response data for the updateDnsZone operation. + */ +export type WorkloadNetworksUpdateDnsZoneResponse = WorkloadNetworkDnsZone & { + /** + * 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: WorkloadNetworkDnsZone; + }; +}; + +/** + * Contains response data for the listPublicIPs operation. + */ +export type WorkloadNetworksListPublicIPsResponse = WorkloadNetworkPublicIPsList & { + /** + * 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: WorkloadNetworkPublicIPsList; + }; +}; + +/** + * Contains response data for the getPublicIP operation. + */ +export type WorkloadNetworksGetPublicIPResponse = WorkloadNetworkPublicIP & { + /** + * 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: WorkloadNetworkPublicIP; + }; +}; + +/** + * Contains response data for the createPublicIP operation. + */ +export type WorkloadNetworksCreatePublicIPResponse = WorkloadNetworkPublicIP & { + /** + * 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: WorkloadNetworkPublicIP; + }; +}; + +/** + * Contains response data for the beginCreateSegments operation. + */ +export type WorkloadNetworksBeginCreateSegmentsResponse = WorkloadNetworkSegment & { + /** + * 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: WorkloadNetworkSegment; + }; +}; + +/** + * Contains response data for the beginUpdateSegments operation. + */ +export type WorkloadNetworksBeginUpdateSegmentsResponse = WorkloadNetworkSegment & { + /** + * 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: WorkloadNetworkSegment; + }; +}; + +/** + * Contains response data for the beginCreateDhcp operation. + */ +export type WorkloadNetworksBeginCreateDhcpResponse = WorkloadNetworkDhcp & { + /** + * 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: WorkloadNetworkDhcp; + }; +}; + +/** + * Contains response data for the beginUpdateDhcp operation. + */ +export type WorkloadNetworksBeginUpdateDhcpResponse = WorkloadNetworkDhcp & { + /** + * 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: WorkloadNetworkDhcp; + }; +}; + +/** + * Contains response data for the beginCreatePortMirroring operation. + */ +export type WorkloadNetworksBeginCreatePortMirroringResponse = WorkloadNetworkPortMirroring & { + /** + * 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: WorkloadNetworkPortMirroring; + }; +}; + +/** + * Contains response data for the beginUpdatePortMirroring operation. + */ +export type WorkloadNetworksBeginUpdatePortMirroringResponse = WorkloadNetworkPortMirroring & { + /** + * 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: WorkloadNetworkPortMirroring; + }; +}; + +/** + * Contains response data for the beginCreateVMGroup operation. + */ +export type WorkloadNetworksBeginCreateVMGroupResponse = WorkloadNetworkVMGroup & { + /** + * 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: WorkloadNetworkVMGroup; + }; +}; /** - * @interface - * A paged list of HCX Enterprise Sites - * @extends Array + * Contains response data for the beginUpdateVMGroup operation. */ -export interface HcxEnterpriseSiteList extends Array { +export type WorkloadNetworksBeginUpdateVMGroupResponse = WorkloadNetworkVMGroup & { /** - * URL to get the next page if any - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkVMGroup; + }; +}; /** - * @interface - * A paged list of ExpressRoute Circuit Authorizations - * @extends Array + * Contains response data for the beginCreateDnsService operation. */ -export interface ExpressRouteAuthorizationList extends Array { +export type WorkloadNetworksBeginCreateDnsServiceResponse = WorkloadNetworkDnsService & { /** - * URL to get the next page if any - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for TrialStatus. - * Possible values include: 'TrialAvailable', 'TrialUsed', 'TrialDisabled' - * @readonly - * @enum {string} - */ -export type TrialStatus = 'TrialAvailable' | 'TrialUsed' | 'TrialDisabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkDnsService; + }; +}; /** - * Defines values for QuotaEnabled. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the beginUpdateDnsService operation. */ -export type QuotaEnabled = 'Enabled' | 'Disabled'; +export type WorkloadNetworksBeginUpdateDnsServiceResponse = WorkloadNetworkDnsService & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ExpressRouteAuthorizationProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Updating' - * @readonly - * @enum {string} - */ -export type ExpressRouteAuthorizationProvisioningState = 'Succeeded' | 'Failed' | 'Updating'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkDnsService; + }; +}; /** - * Defines values for SslEnum. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the beginCreateDnsZone operation. */ -export type SslEnum = 'Enabled' | 'Disabled'; +export type WorkloadNetworksBeginCreateDnsZoneResponse = WorkloadNetworkDnsZone & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for PrivateCloudProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Pending', 'Building', 'Deleting', - * 'Updating' - * @readonly - * @enum {string} - */ -export type PrivateCloudProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Pending' | 'Building' | 'Deleting' | 'Updating'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkDnsZone; + }; +}; /** - * Defines values for InternetEnum. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the beginUpdateDnsZone operation. */ -export type InternetEnum = 'Enabled' | 'Disabled'; +export type WorkloadNetworksBeginUpdateDnsZoneResponse = WorkloadNetworkDnsZone & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ClusterProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating' - * @readonly - * @enum {string} - */ -export type ClusterProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Deleting' | 'Updating'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkDnsZone; + }; +}; /** - * Defines values for HcxEnterpriseSiteStatus. - * Possible values include: 'Available', 'Consumed', 'Deactivated', 'Deleted' - * @readonly - * @enum {string} + * Contains response data for the beginCreatePublicIP operation. */ -export type HcxEnterpriseSiteStatus = 'Available' | 'Consumed' | 'Deactivated' | 'Deleted'; +export type WorkloadNetworksBeginCreatePublicIPResponse = WorkloadNetworkPublicIP & { + /** + * 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: WorkloadNetworkPublicIP; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the listSegmentsNext operation. */ -export type OperationsListResponse = OperationList & { +export type WorkloadNetworksListSegmentsNextResponse = WorkloadNetworkSegmentsList & { /** * The underlying HTTP response. */ @@ -677,14 +3800,14 @@ export type OperationsListResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: WorkloadNetworkSegmentsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listDhcpNext operation. */ -export type OperationsListNextResponse = OperationList & { +export type WorkloadNetworksListDhcpNextResponse = WorkloadNetworkDhcpList & { /** * The underlying HTTP response. */ @@ -697,14 +3820,14 @@ export type OperationsListNextResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: WorkloadNetworkDhcpList; }; }; /** - * Contains response data for the checkTrialAvailability operation. + * Contains response data for the listGatewaysNext operation. */ -export type LocationsCheckTrialAvailabilityResponse = Trial & { +export type WorkloadNetworksListGatewaysNextResponse = WorkloadNetworkGatewayList & { /** * The underlying HTTP response. */ @@ -717,14 +3840,14 @@ export type LocationsCheckTrialAvailabilityResponse = Trial & { /** * The response body as parsed JSON or XML */ - parsedBody: Trial; + parsedBody: WorkloadNetworkGatewayList; }; }; /** - * Contains response data for the checkQuotaAvailability operation. + * Contains response data for the listPortMirroringNext operation. */ -export type LocationsCheckQuotaAvailabilityResponse = Quota & { +export type WorkloadNetworksListPortMirroringNextResponse = WorkloadNetworkPortMirroringList & { /** * The underlying HTTP response. */ @@ -737,14 +3860,14 @@ export type LocationsCheckQuotaAvailabilityResponse = Quota & { /** * The response body as parsed JSON or XML */ - parsedBody: Quota; + parsedBody: WorkloadNetworkPortMirroringList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listVMGroupsNext operation. */ -export type PrivateCloudsListResponse = PrivateCloudList & { +export type WorkloadNetworksListVMGroupsNextResponse = WorkloadNetworkVMGroupsList & { /** * The underlying HTTP response. */ @@ -757,14 +3880,14 @@ export type PrivateCloudsListResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: WorkloadNetworkVMGroupsList; }; }; /** - * Contains response data for the listInSubscription operation. + * Contains response data for the listVirtualMachinesNext operation. */ -export type PrivateCloudsListInSubscriptionResponse = PrivateCloudList & { +export type WorkloadNetworksListVirtualMachinesNextResponse = WorkloadNetworkVirtualMachinesList & { /** * The underlying HTTP response. */ @@ -777,14 +3900,14 @@ export type PrivateCloudsListInSubscriptionResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: WorkloadNetworkVirtualMachinesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listDnsServicesNext operation. */ -export type PrivateCloudsGetResponse = PrivateCloud & { +export type WorkloadNetworksListDnsServicesNextResponse = WorkloadNetworkDnsServicesList & { /** * The underlying HTTP response. */ @@ -797,14 +3920,14 @@ export type PrivateCloudsGetResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkDnsServicesList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listDnsZonesNext operation. */ -export type PrivateCloudsCreateOrUpdateResponse = PrivateCloud & { +export type WorkloadNetworksListDnsZonesNextResponse = WorkloadNetworkDnsZonesList & { /** * The underlying HTTP response. */ @@ -817,14 +3940,14 @@ export type PrivateCloudsCreateOrUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkDnsZonesList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listPublicIPsNext operation. */ -export type PrivateCloudsUpdateResponse = PrivateCloud & { +export type WorkloadNetworksListPublicIPsNextResponse = WorkloadNetworkPublicIPsList & { /** * The underlying HTTP response. */ @@ -837,14 +3960,14 @@ export type PrivateCloudsUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkPublicIPsList; }; }; /** - * Contains response data for the listAdminCredentials operation. + * Contains response data for the list operation. */ -export type PrivateCloudsListAdminCredentialsResponse = AdminCredentials & { +export type CloudLinksListResponse = CloudLinkList & { /** * The underlying HTTP response. */ @@ -857,14 +3980,14 @@ export type PrivateCloudsListAdminCredentialsResponse = AdminCredentials & { /** * The response body as parsed JSON or XML */ - parsedBody: AdminCredentials; + parsedBody: CloudLinkList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type PrivateCloudsBeginCreateOrUpdateResponse = PrivateCloud & { +export type CloudLinksGetResponse = CloudLink & { /** * The underlying HTTP response. */ @@ -877,14 +4000,14 @@ export type PrivateCloudsBeginCreateOrUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: CloudLink; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type PrivateCloudsBeginUpdateResponse = PrivateCloud & { +export type CloudLinksCreateOrUpdateResponse = CloudLink & { /** * The underlying HTTP response. */ @@ -897,14 +4020,14 @@ export type PrivateCloudsBeginUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: CloudLink; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type PrivateCloudsListNextResponse = PrivateCloudList & { +export type CloudLinksBeginCreateOrUpdateResponse = CloudLink & { /** * The underlying HTTP response. */ @@ -917,14 +4040,14 @@ export type PrivateCloudsListNextResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: CloudLink; }; }; /** - * Contains response data for the listInSubscriptionNext operation. + * Contains response data for the listNext operation. */ -export type PrivateCloudsListInSubscriptionNextResponse = PrivateCloudList & { +export type CloudLinksListNextResponse = CloudLinkList & { /** * The underlying HTTP response. */ @@ -937,14 +4060,14 @@ export type PrivateCloudsListInSubscriptionNextResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: CloudLinkList; }; }; /** * Contains response data for the list operation. */ -export type ClustersListResponse = ClusterList & { +export type AddonsListResponse = AddonList & { /** * The underlying HTTP response. */ @@ -957,14 +4080,14 @@ export type ClustersListResponse = ClusterList & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterList; + parsedBody: AddonList; }; }; /** * Contains response data for the get operation. */ -export type ClustersGetResponse = Cluster & { +export type AddonsGetResponse = Addon & { /** * The underlying HTTP response. */ @@ -977,14 +4100,14 @@ export type ClustersGetResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: Addon; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ClustersCreateOrUpdateResponse = Cluster & { +export type AddonsCreateOrUpdateResponse = Addon & { /** * The underlying HTTP response. */ @@ -997,14 +4120,14 @@ export type ClustersCreateOrUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: Addon; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ClustersUpdateResponse = Cluster & { +export type AddonsBeginCreateOrUpdateResponse = Addon & { /** * The underlying HTTP response. */ @@ -1017,14 +4140,14 @@ export type ClustersUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: Addon; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listNext operation. */ -export type ClustersBeginCreateOrUpdateResponse = Cluster & { +export type AddonsListNextResponse = AddonList & { /** * The underlying HTTP response. */ @@ -1037,14 +4160,14 @@ export type ClustersBeginCreateOrUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: AddonList; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the list operation. */ -export type ClustersBeginUpdateResponse = Cluster & { +export type ScriptPackagesListResponse = ScriptPackagesList & { /** * The underlying HTTP response. */ @@ -1057,14 +4180,14 @@ export type ClustersBeginUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: ScriptPackagesList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type ClustersListNextResponse = ClusterList & { +export type ScriptPackagesGetResponse = ScriptPackage & { /** * The underlying HTTP response. */ @@ -1077,14 +4200,14 @@ export type ClustersListNextResponse = ClusterList & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterList; + parsedBody: ScriptPackage; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type HcxEnterpriseSitesListResponse = HcxEnterpriseSiteList & { +export type ScriptPackagesListNextResponse = ScriptPackagesList & { /** * The underlying HTTP response. */ @@ -1097,14 +4220,14 @@ export type HcxEnterpriseSitesListResponse = HcxEnterpriseSiteList & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSiteList; + parsedBody: ScriptPackagesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type HcxEnterpriseSitesGetResponse = HcxEnterpriseSite & { +export type ScriptCmdletsListResponse = ScriptCmdletsList & { /** * The underlying HTTP response. */ @@ -1117,14 +4240,14 @@ export type HcxEnterpriseSitesGetResponse = HcxEnterpriseSite & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSite; + parsedBody: ScriptCmdletsList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type HcxEnterpriseSitesCreateOrUpdateResponse = HcxEnterpriseSite & { +export type ScriptCmdletsGetResponse = ScriptCmdlet & { /** * The underlying HTTP response. */ @@ -1137,14 +4260,14 @@ export type HcxEnterpriseSitesCreateOrUpdateResponse = HcxEnterpriseSite & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSite; + parsedBody: ScriptCmdlet; }; }; /** * Contains response data for the listNext operation. */ -export type HcxEnterpriseSitesListNextResponse = HcxEnterpriseSiteList & { +export type ScriptCmdletsListNextResponse = ScriptCmdletsList & { /** * The underlying HTTP response. */ @@ -1157,14 +4280,14 @@ export type HcxEnterpriseSitesListNextResponse = HcxEnterpriseSiteList & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSiteList; + parsedBody: ScriptCmdletsList; }; }; /** * Contains response data for the list operation. */ -export type AuthorizationsListResponse = ExpressRouteAuthorizationList & { +export type ScriptExecutionsListResponse = ScriptExecutionsList & { /** * The underlying HTTP response. */ @@ -1177,14 +4300,14 @@ export type AuthorizationsListResponse = ExpressRouteAuthorizationList & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorizationList; + parsedBody: ScriptExecutionsList; }; }; /** * Contains response data for the get operation. */ -export type AuthorizationsGetResponse = ExpressRouteAuthorization & { +export type ScriptExecutionsGetResponse = ScriptExecution & { /** * The underlying HTTP response. */ @@ -1197,14 +4320,14 @@ export type AuthorizationsGetResponse = ExpressRouteAuthorization & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorization; + parsedBody: ScriptExecution; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type AuthorizationsCreateOrUpdateResponse = ExpressRouteAuthorization & { +export type ScriptExecutionsCreateOrUpdateResponse = ScriptExecution & { /** * The underlying HTTP response. */ @@ -1217,14 +4340,34 @@ export type AuthorizationsCreateOrUpdateResponse = ExpressRouteAuthorization & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorization; + parsedBody: ScriptExecution; + }; +}; + +/** + * Contains response data for the getExecutionLogs operation. + */ +export type ScriptExecutionsGetExecutionLogsResponse = ScriptExecution & { + /** + * 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: ScriptExecution; }; }; /** * Contains response data for the beginCreateOrUpdate operation. */ -export type AuthorizationsBeginCreateOrUpdateResponse = ExpressRouteAuthorization & { +export type ScriptExecutionsBeginCreateOrUpdateResponse = ScriptExecution & { /** * The underlying HTTP response. */ @@ -1237,14 +4380,14 @@ export type AuthorizationsBeginCreateOrUpdateResponse = ExpressRouteAuthorizatio /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorization; + parsedBody: ScriptExecution; }; }; /** * Contains response data for the listNext operation. */ -export type AuthorizationsListNextResponse = ExpressRouteAuthorizationList & { +export type ScriptExecutionsListNextResponse = ScriptExecutionsList & { /** * The underlying HTTP response. */ @@ -1257,6 +4400,6 @@ export type AuthorizationsListNextResponse = ExpressRouteAuthorizationList & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorizationList; + parsedBody: ScriptExecutionsList; }; }; diff --git a/sdk/avs/arm-avs/src/models/locationsMappers.ts b/sdk/avs/arm-avs/src/models/locationsMappers.ts index 42d375510a29..b3717d115978 100644 --- a/sdk/avs/arm-avs/src/models/locationsMappers.ts +++ b/sdk/avs/arm-avs/src/models/locationsMappers.ts @@ -1,12 +1,13 @@ /* - * 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 { + discriminators, CloudError, ErrorAdditionalInfo, ErrorResponse, diff --git a/sdk/avs/arm-avs/src/models/mappers.ts b/sdk/avs/arm-avs/src/models/mappers.ts index a3e223e991ab..fb43aa751017 100644 --- a/sdk/avs/arm-avs/src/models/mappers.ts +++ b/sdk/avs/arm-avs/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. @@ -124,6 +124,17 @@ export const TrackedResource: msRest.CompositeMapper = { } }; +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const ErrorAdditionalInfo: msRest.CompositeMapper = { serializedName: "ErrorAdditionalInfo", type: { @@ -243,6 +254,223 @@ export const OperationDisplay: msRest.CompositeMapper = { } }; +export const LogSpecification: msRest.CompositeMapper = { + serializedName: "LogSpecification", + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const MetricDimension: msRest.CompositeMapper = { + serializedName: "MetricDimension", + type: { + name: "Composite", + className: "MetricDimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + internalName: { + serializedName: "internalName", + type: { + name: "String" + } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MetricSpecification: msRest.CompositeMapper = { + serializedName: "MetricSpecification", + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricDimension" + } + } + } + }, + enableRegionalMdmAccount: { + serializedName: "enableRegionalMdmAccount", + type: { + name: "String" + } + }, + sourceMdmAccount: { + serializedName: "sourceMdmAccount", + type: { + name: "String" + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceSpecification: msRest.CompositeMapper = { + serializedName: "ServiceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + }, + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + } + } + } +}; + +export const OperationProperties: msRest.CompositeMapper = { + serializedName: "OperationProperties", + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification" + } + } + } + } +}; + export const Operation: msRest.CompositeMapper = { serializedName: "Operation", type: { @@ -263,6 +491,25 @@ export const Operation: msRest.CompositeMapper = { name: "Composite", className: "OperationDisplay" } + }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties" + } } } } @@ -480,6 +727,7 @@ export const PrivateCloud: msRest.CompositeMapper = { }, internet: { serializedName: "properties.internet", + defaultValue: 'Disabled', type: { name: "String" } @@ -571,34 +819,41 @@ export const PrivateCloud: msRest.CompositeMapper = { type: { name: "String" } + }, + externalCloudLinks: { + readOnly: true, + serializedName: "properties.externalCloudLinks", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const ClusterUpdateProperties: msRest.CompositeMapper = { - serializedName: "ClusterUpdateProperties", +export const CommonClusterProperties: msRest.CompositeMapper = { + serializedName: "CommonClusterProperties", type: { name: "Composite", - className: "ClusterUpdateProperties", + className: "CommonClusterProperties", modelProperties: { clusterSize: { serializedName: "clusterSize", type: { name: "Number" } - } - } - } -}; - -export const ManagementCluster: msRest.CompositeMapper = { - serializedName: "ManagementCluster", - type: { - name: "Composite", - className: "ManagementCluster", - modelProperties: { - ...ClusterUpdateProperties.type.modelProperties, + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String" + } + }, clusterId: { readOnly: true, serializedName: "clusterId", @@ -622,6 +877,17 @@ export const ManagementCluster: msRest.CompositeMapper = { } }; +export const ManagementCluster: msRest.CompositeMapper = { + serializedName: "ManagementCluster", + type: { + name: "Composite", + className: "ManagementCluster", + modelProperties: { + ...CommonClusterProperties.type.modelProperties + } + } +}; + export const PrivateCloudUpdate: msRest.CompositeMapper = { serializedName: "PrivateCloudUpdate", type: { @@ -648,6 +914,7 @@ export const PrivateCloudUpdate: msRest.CompositeMapper = { }, internet: { serializedName: "properties.internet", + defaultValue: 'Disabled', type: { name: "String" } @@ -689,6 +956,12 @@ export const Cluster: msRest.CompositeMapper = { name: "Number" } }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, clusterId: { readOnly: true, serializedName: "properties.clusterId", @@ -707,13 +980,6 @@ export const Cluster: msRest.CompositeMapper = { } } } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } } } } @@ -735,36 +1001,27 @@ export const ClusterUpdate: msRest.CompositeMapper = { } }; -export const AdminCredentials: msRest.CompositeMapper = { - serializedName: "AdminCredentials", +export const AddonProperties: msRest.CompositeMapper = { + serializedName: "AddonProperties", type: { name: "Composite", - className: "AdminCredentials", + polymorphicDiscriminator: { + serializedName: "addonType", + clientName: "addonType" + }, + uberParent: "AddonProperties", + className: "AddonProperties", modelProperties: { - nsxtUsername: { - readOnly: true, - serializedName: "nsxtUsername", - type: { - name: "String" - } - }, - nsxtPassword: { - readOnly: true, - serializedName: "nsxtPassword", - type: { - name: "String" - } - }, - vcenterUsername: { + provisioningState: { readOnly: true, - serializedName: "vcenterUsername", + serializedName: "provisioningState", type: { name: "String" } }, - vcenterPassword: { - readOnly: true, - serializedName: "vcenterPassword", + addonType: { + required: true, + serializedName: "addonType", type: { name: "String" } @@ -773,23 +1030,1427 @@ export const AdminCredentials: msRest.CompositeMapper = { } }; -export const HcxEnterpriseSite: msRest.CompositeMapper = { - serializedName: "HcxEnterpriseSite", +export const Addon: msRest.CompositeMapper = { + serializedName: "Addon", type: { name: "Composite", - className: "HcxEnterpriseSite", + className: "Addon", modelProperties: { ...Resource.type.modelProperties, - activationKey: { - readOnly: true, - serializedName: "properties.activationKey", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "AddonProperties" + } + } + } + } +}; + +export const AddonSrmProperties: msRest.CompositeMapper = { + serializedName: "SRM", + type: { + name: "Composite", + polymorphicDiscriminator: AddonProperties.type.polymorphicDiscriminator, + uberParent: "AddonProperties", + className: "AddonSrmProperties", + modelProperties: { + ...AddonProperties.type.modelProperties, + licenseKey: { + required: true, + serializedName: "licenseKey", + type: { + name: "String" + } + } + } + } +}; + +export const AddonVrProperties: msRest.CompositeMapper = { + serializedName: "VR", + type: { + name: "Composite", + polymorphicDiscriminator: AddonProperties.type.polymorphicDiscriminator, + uberParent: "AddonProperties", + className: "AddonVrProperties", + modelProperties: { + ...AddonProperties.type.modelProperties, + vrsCount: { + required: true, + serializedName: "vrsCount", + type: { + name: "Number" + } + } + } + } +}; + +export const AddonHcxProperties: msRest.CompositeMapper = { + serializedName: "HCX", + type: { + name: "Composite", + polymorphicDiscriminator: AddonProperties.type.polymorphicDiscriminator, + uberParent: "AddonProperties", + className: "AddonHcxProperties", + modelProperties: { + ...AddonProperties.type.modelProperties, + offer: { + required: true, + serializedName: "offer", + type: { + name: "String" + } + } + } + } +}; + +export const NetAppVolume: msRest.CompositeMapper = { + serializedName: "NetAppVolume", + type: { + name: "Composite", + className: "NetAppVolume", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const DiskPoolVolume: msRest.CompositeMapper = { + serializedName: "DiskPoolVolume", + type: { + name: "Composite", + className: "DiskPoolVolume", + modelProperties: { + targetId: { + required: true, + serializedName: "targetId", + type: { + name: "String" + } + }, + lunName: { + required: true, + serializedName: "lunName", + type: { + name: "String" + } + }, + mountOption: { + serializedName: "mountOption", + defaultValue: 'MOUNT', + type: { + name: "String" + } + }, + path: { + readOnly: true, + serializedName: "path", + type: { + name: "String" + } + } + } + } +}; + +export const Datastore: msRest.CompositeMapper = { + serializedName: "Datastore", + type: { + name: "Composite", + className: "Datastore", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + netAppVolume: { + serializedName: "properties.netAppVolume", + type: { + name: "Composite", + className: "NetAppVolume" + } + }, + diskPoolVolume: { + serializedName: "properties.diskPoolVolume", + type: { + name: "Composite", + className: "DiskPoolVolume" + } + } + } + } +}; + +export const AdminCredentials: msRest.CompositeMapper = { + serializedName: "AdminCredentials", + type: { + name: "Composite", + className: "AdminCredentials", + modelProperties: { + nsxtUsername: { + readOnly: true, + serializedName: "nsxtUsername", + type: { + name: "String" + } + }, + nsxtPassword: { + readOnly: true, + serializedName: "nsxtPassword", + type: { + name: "String" + } + }, + vcenterUsername: { + readOnly: true, + serializedName: "vcenterUsername", + type: { + name: "String" + } + }, + vcenterPassword: { + readOnly: true, + serializedName: "vcenterPassword", + type: { + name: "String" + } + } + } + } +}; + +export const HcxEnterpriseSite: msRest.CompositeMapper = { + serializedName: "HcxEnterpriseSite", + type: { + name: "Composite", + className: "HcxEnterpriseSite", + modelProperties: { + ...Resource.type.modelProperties, + activationKey: { + readOnly: true, + serializedName: "properties.activationKey", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + } + } + } +}; + +export const GlobalReachConnection: msRest.CompositeMapper = { + serializedName: "GlobalReachConnection", + type: { + name: "Composite", + className: "GlobalReachConnection", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + addressPrefix: { + readOnly: true, + serializedName: "properties.addressPrefix", + type: { + name: "String" + } + }, + authorizationKey: { + serializedName: "properties.authorizationKey", + type: { + name: "String" + } + }, + circuitConnectionStatus: { + readOnly: true, + serializedName: "properties.circuitConnectionStatus", + type: { + name: "String" + } + }, + peerExpressRouteCircuit: { + serializedName: "properties.peerExpressRouteCircuit", + type: { + name: "String" + } + } + } + } +}; + +export const CloudLink: msRest.CompositeMapper = { + serializedName: "CloudLink", + type: { + name: "Composite", + className: "CloudLink", + modelProperties: { + ...Resource.type.modelProperties, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + linkedCloud: { + serializedName: "properties.linkedCloud", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkSegmentSubnet: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkSegmentSubnet", + type: { + name: "Composite", + className: "WorkloadNetworkSegmentSubnet", + modelProperties: { + dhcpRanges: { + serializedName: "dhcpRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + gatewayAddress: { + serializedName: "gatewayAddress", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkSegmentPortVif: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkSegmentPortVif", + type: { + name: "Composite", + className: "WorkloadNetworkSegmentPortVif", + modelProperties: { + portName: { + serializedName: "portName", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkSegment: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkSegment", + type: { + name: "Composite", + className: "WorkloadNetworkSegment", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + connectedGateway: { + serializedName: "properties.connectedGateway", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "WorkloadNetworkSegmentSubnet" + } + }, + portVif: { + readOnly: true, + serializedName: "properties.portVif", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkSegmentPortVif" + } + } + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkDhcpEntity: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDhcpEntity", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "dhcpType", + clientName: "dhcpType" + }, + uberParent: "WorkloadNetworkDhcpEntity", + className: "WorkloadNetworkDhcpEntity", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + segments: { + readOnly: true, + serializedName: "segments", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "revision", + type: { + name: "Number" + } + }, + dhcpType: { + required: true, + serializedName: "dhcpType", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkDhcpServer: msRest.CompositeMapper = { + serializedName: "SERVER", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadNetworkDhcpEntity.type.polymorphicDiscriminator, + uberParent: "WorkloadNetworkDhcpEntity", + className: "WorkloadNetworkDhcpServer", + modelProperties: { + ...WorkloadNetworkDhcpEntity.type.modelProperties, + serverAddress: { + serializedName: "serverAddress", + type: { + name: "String" + } + }, + leaseTime: { + serializedName: "leaseTime", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkDhcpRelay: msRest.CompositeMapper = { + serializedName: "RELAY", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadNetworkDhcpEntity.type.polymorphicDiscriminator, + uberParent: "WorkloadNetworkDhcpEntity", + className: "WorkloadNetworkDhcpRelay", + modelProperties: { + ...WorkloadNetworkDhcpEntity.type.modelProperties, + serverAddresses: { + serializedName: "serverAddresses", + constraints: { + MaxItems: 3, + MinItems: 1 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const WorkloadNetworkDhcp: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDhcp", + type: { + name: "Composite", + className: "WorkloadNetworkDhcp", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "WorkloadNetworkDhcpEntity" + } + } + } + } +}; + +export const WorkloadNetworkPortMirroring: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkPortMirroring", + type: { + name: "Composite", + className: "WorkloadNetworkPortMirroring", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + direction: { + serializedName: "properties.direction", + type: { + name: "String" + } + }, + source: { + serializedName: "properties.source", + type: { + name: "String" + } + }, + destination: { + serializedName: "properties.destination", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkVMGroup: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkVMGroup", + type: { + name: "Composite", + className: "WorkloadNetworkVMGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + members: { + serializedName: "properties.members", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkVirtualMachine: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkVirtualMachine", + type: { + name: "Composite", + className: "WorkloadNetworkVirtualMachine", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + vmType: { + readOnly: true, + serializedName: "properties.vmType", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkGateway: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkGateway", + type: { + name: "Composite", + className: "WorkloadNetworkGateway", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + path: { + readOnly: true, + serializedName: "properties.path", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkDnsService: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDnsService", + type: { + name: "Composite", + className: "WorkloadNetworkDnsService", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + dnsServiceIp: { + serializedName: "properties.dnsServiceIp", + type: { + name: "String" + } + }, + defaultDnsZone: { + serializedName: "properties.defaultDnsZone", + type: { + name: "String" + } + }, + fqdnZones: { + serializedName: "properties.fqdnZones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + logLevel: { + serializedName: "properties.logLevel", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkDnsZone: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDnsZone", + type: { + name: "Composite", + className: "WorkloadNetworkDnsZone", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + domain: { + serializedName: "properties.domain", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + dnsServerIps: { + serializedName: "properties.dnsServerIps", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sourceIp: { + serializedName: "properties.sourceIp", + type: { + name: "String" + } + }, + dnsServices: { + serializedName: "properties.dnsServices", + type: { + name: "Number" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkPublicIP: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkPublicIP", + type: { + name: "Composite", + className: "WorkloadNetworkPublicIP", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + numberOfPublicIPs: { + serializedName: "properties.numberOfPublicIPs", + type: { + name: "Number" + } + }, + publicIPBlock: { + readOnly: true, + serializedName: "properties.publicIPBlock", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptPackage: msRest.CompositeMapper = { + serializedName: "ScriptPackage", + type: { + name: "Composite", + className: "ScriptPackage", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "properties.version", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptParameter: msRest.CompositeMapper = { + serializedName: "ScriptParameter", + type: { + name: "Composite", + className: "ScriptParameter", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + }, + visibility: { + readOnly: true, + serializedName: "visibility", + type: { + name: "String" + } + }, + optional: { + readOnly: true, + serializedName: "optional", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptCmdlet: msRest.CompositeMapper = { + serializedName: "ScriptCmdlet", + type: { + name: "Composite", + className: "ScriptCmdlet", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + timeout: { + readOnly: true, + serializedName: "properties.timeout", + type: { + name: "String" + } + }, + parameters: { + readOnly: true, + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScriptParameter" + } + } + } + } + } + } +}; + +export const ScriptExecutionParameter: msRest.CompositeMapper = { + serializedName: "ScriptExecutionParameter", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "ScriptExecutionParameter", + className: "ScriptExecutionParameter", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptExecution: msRest.CompositeMapper = { + serializedName: "ScriptExecution", + type: { + name: "Composite", + className: "ScriptExecution", + modelProperties: { + ...ProxyResource.type.modelProperties, + scriptCmdletId: { + serializedName: "properties.scriptCmdletId", + type: { + name: "String" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScriptExecutionParameter" + } + } + } + }, + hiddenParameters: { + serializedName: "properties.hiddenParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScriptExecutionParameter" + } + } + } + }, + failureReason: { + serializedName: "properties.failureReason", + type: { + name: "String" + } + }, + timeout: { + required: true, + serializedName: "properties.timeout", + type: { + name: "String" + } + }, + retention: { + serializedName: "properties.retention", + type: { + name: "String" + } + }, + submittedAt: { + readOnly: true, + serializedName: "properties.submittedAt", + type: { + name: "DateTime" + } + }, + startedAt: { + readOnly: true, + serializedName: "properties.startedAt", + type: { + name: "DateTime" + } + }, + finishedAt: { + readOnly: true, + serializedName: "properties.finishedAt", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + output: { + serializedName: "properties.output", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + namedOutputs: { + serializedName: "properties.namedOutputs", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + information: { + readOnly: true, + serializedName: "properties.information", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + warnings: { + readOnly: true, + serializedName: "properties.warnings", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + errors: { + readOnly: true, + serializedName: "properties.errors", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ScriptSecureStringExecutionParameter: msRest.CompositeMapper = { + serializedName: "SecureValue", + type: { + name: "Composite", + polymorphicDiscriminator: ScriptExecutionParameter.type.polymorphicDiscriminator, + uberParent: "ScriptExecutionParameter", + className: "ScriptSecureStringExecutionParameter", + modelProperties: { + ...ScriptExecutionParameter.type.modelProperties, + secureValue: { + serializedName: "secureValue", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptStringExecutionParameter: msRest.CompositeMapper = { + serializedName: "Value", + type: { + name: "Composite", + polymorphicDiscriminator: ScriptExecutionParameter.type.polymorphicDiscriminator, + uberParent: "ScriptExecutionParameter", + className: "ScriptStringExecutionParameter", + modelProperties: { + ...ScriptExecutionParameter.type.modelProperties, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const PSCredentialExecutionParameter: msRest.CompositeMapper = { + serializedName: "Credential", + type: { + name: "Composite", + polymorphicDiscriminator: ScriptExecutionParameter.type.polymorphicDiscriminator, + uberParent: "ScriptExecutionParameter", + className: "PSCredentialExecutionParameter", + modelProperties: { + ...ScriptExecutionParameter.type.modelProperties, + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const OperationList: msRest.CompositeMapper = { + serializedName: "OperationList", + type: { + name: "Composite", + className: "OperationList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateCloudList: msRest.CompositeMapper = { + serializedName: "PrivateCloudList", + type: { + name: "Composite", + className: "PrivateCloudList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateCloud" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ClusterList: msRest.CompositeMapper = { + serializedName: "ClusterList", + type: { + name: "Composite", + className: "ClusterList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Cluster" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DatastoreList: msRest.CompositeMapper = { + serializedName: "DatastoreList", + type: { + name: "Composite", + className: "DatastoreList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Datastore" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const HcxEnterpriseSiteList: msRest.CompositeMapper = { + serializedName: "HcxEnterpriseSiteList", + type: { + name: "Composite", + className: "HcxEnterpriseSiteList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HcxEnterpriseSite" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExpressRouteAuthorizationList: msRest.CompositeMapper = { + serializedName: "ExpressRouteAuthorizationList", + type: { + name: "Composite", + className: "ExpressRouteAuthorizationList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteAuthorization" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const GlobalReachConnectionList: msRest.CompositeMapper = { + serializedName: "GlobalReachConnectionList", + type: { + name: "Composite", + className: "GlobalReachConnectionList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GlobalReachConnection" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkSegmentsList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkSegmentsList", + type: { + name: "Composite", + className: "WorkloadNetworkSegmentsList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkSegment" + } + } } }, - status: { + nextLink: { readOnly: true, - serializedName: "properties.status", + serializedName: "nextLink", type: { name: "String" } @@ -798,11 +2459,11 @@ export const HcxEnterpriseSite: msRest.CompositeMapper = { } }; -export const OperationList: msRest.CompositeMapper = { - serializedName: "OperationList", +export const WorkloadNetworkDhcpList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDhcpList", type: { name: "Composite", - className: "OperationList", + className: "WorkloadNetworkDhcpList", modelProperties: { value: { readOnly: true, @@ -812,7 +2473,7 @@ export const OperationList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "WorkloadNetworkDhcp" } } } @@ -828,11 +2489,11 @@ export const OperationList: msRest.CompositeMapper = { } }; -export const PrivateCloudList: msRest.CompositeMapper = { - serializedName: "PrivateCloudList", +export const WorkloadNetworkGatewayList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkGatewayList", type: { name: "Composite", - className: "PrivateCloudList", + className: "WorkloadNetworkGatewayList", modelProperties: { value: { readOnly: true, @@ -842,7 +2503,7 @@ export const PrivateCloudList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateCloud" + className: "WorkloadNetworkGateway" } } } @@ -858,11 +2519,11 @@ export const PrivateCloudList: msRest.CompositeMapper = { } }; -export const ClusterList: msRest.CompositeMapper = { - serializedName: "ClusterList", +export const WorkloadNetworkPortMirroringList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkPortMirroringList", type: { name: "Composite", - className: "ClusterList", + className: "WorkloadNetworkPortMirroringList", modelProperties: { value: { readOnly: true, @@ -872,7 +2533,7 @@ export const ClusterList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Cluster" + className: "WorkloadNetworkPortMirroring" } } } @@ -888,11 +2549,11 @@ export const ClusterList: msRest.CompositeMapper = { } }; -export const HcxEnterpriseSiteList: msRest.CompositeMapper = { - serializedName: "HcxEnterpriseSiteList", +export const WorkloadNetworkVMGroupsList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkVMGroupsList", type: { name: "Composite", - className: "HcxEnterpriseSiteList", + className: "WorkloadNetworkVMGroupsList", modelProperties: { value: { readOnly: true, @@ -902,7 +2563,7 @@ export const HcxEnterpriseSiteList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "HcxEnterpriseSite" + className: "WorkloadNetworkVMGroup" } } } @@ -918,11 +2579,11 @@ export const HcxEnterpriseSiteList: msRest.CompositeMapper = { } }; -export const ExpressRouteAuthorizationList: msRest.CompositeMapper = { - serializedName: "ExpressRouteAuthorizationList", +export const WorkloadNetworkVirtualMachinesList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkVirtualMachinesList", type: { name: "Composite", - className: "ExpressRouteAuthorizationList", + className: "WorkloadNetworkVirtualMachinesList", modelProperties: { value: { readOnly: true, @@ -932,7 +2593,247 @@ export const ExpressRouteAuthorizationList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ExpressRouteAuthorization" + className: "WorkloadNetworkVirtualMachine" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkDnsServicesList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDnsServicesList", + type: { + name: "Composite", + className: "WorkloadNetworkDnsServicesList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkDnsService" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkDnsZonesList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDnsZonesList", + type: { + name: "Composite", + className: "WorkloadNetworkDnsZonesList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkDnsZone" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkPublicIPsList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkPublicIPsList", + type: { + name: "Composite", + className: "WorkloadNetworkPublicIPsList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkPublicIP" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CloudLinkList: msRest.CompositeMapper = { + serializedName: "CloudLinkList", + type: { + name: "Composite", + className: "CloudLinkList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudLink" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AddonList: msRest.CompositeMapper = { + serializedName: "AddonList", + type: { + name: "Composite", + className: "AddonList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Addon" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptPackagesList: msRest.CompositeMapper = { + serializedName: "ScriptPackagesList", + type: { + name: "Composite", + className: "ScriptPackagesList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScriptPackage" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptCmdletsList: msRest.CompositeMapper = { + serializedName: "ScriptCmdletsList", + type: { + name: "Composite", + className: "ScriptCmdletsList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScriptCmdlet" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptExecutionsList: msRest.CompositeMapper = { + serializedName: "ScriptExecutionsList", + type: { + name: "Composite", + className: "ScriptExecutionsList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScriptExecution" } } } @@ -947,3 +2848,18 @@ export const ExpressRouteAuthorizationList: msRest.CompositeMapper = { } } }; + +export const discriminators = { + 'AddonProperties' : AddonProperties, + 'AddonProperties.SRM' : AddonSrmProperties, + 'AddonProperties.VR' : AddonVrProperties, + 'AddonProperties.HCX' : AddonHcxProperties, + 'WorkloadNetworkDhcpEntity' : WorkloadNetworkDhcpEntity, + 'WorkloadNetworkDhcpEntity.SERVER' : WorkloadNetworkDhcpServer, + 'WorkloadNetworkDhcpEntity.RELAY' : WorkloadNetworkDhcpRelay, + 'ScriptExecutionParameter' : ScriptExecutionParameter, + 'ScriptExecutionParameter.SecureValue' : ScriptSecureStringExecutionParameter, + 'ScriptExecutionParameter.Value' : ScriptStringExecutionParameter, + 'ScriptExecutionParameter.Credential' : PSCredentialExecutionParameter + +}; diff --git a/sdk/avs/arm-avs/src/models/operationsMappers.ts b/sdk/avs/arm-avs/src/models/operationsMappers.ts index 0a19c814cee4..47dcbdb04409 100644 --- a/sdk/avs/arm-avs/src/models/operationsMappers.ts +++ b/sdk/avs/arm-avs/src/models/operationsMappers.ts @@ -1,16 +1,22 @@ /* - * 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 { + discriminators, CloudError, ErrorAdditionalInfo, ErrorResponse, + LogSpecification, + MetricDimension, + MetricSpecification, Operation, OperationDisplay, - OperationList + OperationList, + OperationProperties, + ServiceSpecification } from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/parameters.ts b/sdk/avs/arm-avs/src/models/parameters.ts index a6e0588f1cac..2ebe6b72c6a3 100644 --- a/sdk/avs/arm-avs/src/models/parameters.ts +++ b/sdk/avs/arm-avs/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 @@ -20,6 +19,16 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; +export const addonName: msRest.OperationURLParameter = { + parameterPath: "addonName", + mapper: { + required: true, + serializedName: "addonName", + type: { + name: "String" + } + } +}; export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -43,6 +52,16 @@ export const authorizationName: msRest.OperationURLParameter = { } } }; +export const cloudLinkName: msRest.OperationURLParameter = { + parameterPath: "cloudLinkName", + mapper: { + required: true, + serializedName: "cloudLinkName", + type: { + name: "String" + } + } +}; export const clusterName: msRest.OperationURLParameter = { parameterPath: "clusterName", mapper: { @@ -53,6 +72,66 @@ export const clusterName: msRest.OperationURLParameter = { } } }; +export const datastoreName: msRest.OperationURLParameter = { + parameterPath: "datastoreName", + mapper: { + required: true, + serializedName: "datastoreName", + type: { + name: "String" + } + } +}; +export const dhcpId: msRest.OperationURLParameter = { + parameterPath: "dhcpId", + mapper: { + required: true, + serializedName: "dhcpId", + type: { + name: "String" + } + } +}; +export const dnsServiceId: msRest.OperationURLParameter = { + parameterPath: "dnsServiceId", + mapper: { + required: true, + serializedName: "dnsServiceId", + type: { + name: "String" + } + } +}; +export const dnsZoneId: msRest.OperationURLParameter = { + parameterPath: "dnsZoneId", + mapper: { + required: true, + serializedName: "dnsZoneId", + type: { + name: "String" + } + } +}; +export const gatewayId: msRest.OperationURLParameter = { + parameterPath: "gatewayId", + mapper: { + required: true, + serializedName: "gatewayId", + type: { + name: "String" + } + } +}; +export const globalReachConnectionName: msRest.OperationURLParameter = { + parameterPath: "globalReachConnectionName", + mapper: { + required: true, + serializedName: "globalReachConnectionName", + type: { + name: "String" + } + } +}; export const hcxEnterpriseSiteName: msRest.OperationURLParameter = { parameterPath: "hcxEnterpriseSiteName", mapper: { @@ -84,6 +163,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const portMirroringId: msRest.OperationURLParameter = { + parameterPath: "portMirroringId", + mapper: { + required: true, + serializedName: "portMirroringId", + type: { + name: "String" + } + } +}; export const privateCloudName: msRest.OperationURLParameter = { parameterPath: "privateCloudName", mapper: { @@ -94,6 +183,16 @@ export const privateCloudName: msRest.OperationURLParameter = { } } }; +export const publicIPId: msRest.OperationURLParameter = { + parameterPath: "publicIPId", + mapper: { + required: true, + serializedName: "publicIPId", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -101,14 +200,53 @@ export const resourceGroupName: msRest.OperationURLParameter = { serializedName: "resourceGroupName", constraints: { MaxLength: 90, - MinLength: 1, - Pattern: /^[-\w\._\(\)]+$/ + MinLength: 1 }, type: { name: "String" } } }; +export const scriptCmdletName: msRest.OperationURLParameter = { + parameterPath: "scriptCmdletName", + mapper: { + required: true, + serializedName: "scriptCmdletName", + type: { + name: "String" + } + } +}; +export const scriptExecutionName: msRest.OperationURLParameter = { + parameterPath: "scriptExecutionName", + mapper: { + required: true, + serializedName: "scriptExecutionName", + type: { + name: "String" + } + } +}; +export const scriptPackageName: msRest.OperationURLParameter = { + parameterPath: "scriptPackageName", + mapper: { + required: true, + serializedName: "scriptPackageName", + type: { + name: "String" + } + } +}; +export const segmentId: msRest.OperationURLParameter = { + parameterPath: "segmentId", + mapper: { + required: true, + serializedName: "segmentId", + type: { + name: "String" + } + } +}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { @@ -122,3 +260,23 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; +export const virtualMachineId: msRest.OperationURLParameter = { + parameterPath: "virtualMachineId", + mapper: { + required: true, + serializedName: "virtualMachineId", + type: { + name: "String" + } + } +}; +export const vmGroupId: msRest.OperationURLParameter = { + parameterPath: "vmGroupId", + mapper: { + required: true, + serializedName: "vmGroupId", + type: { + name: "String" + } + } +}; diff --git a/sdk/avs/arm-avs/src/models/privateCloudsMappers.ts b/sdk/avs/arm-avs/src/models/privateCloudsMappers.ts index edfebca08ab4..4d28dbae9f81 100644 --- a/sdk/avs/arm-avs/src/models/privateCloudsMappers.ts +++ b/sdk/avs/arm-avs/src/models/privateCloudsMappers.ts @@ -1,29 +1,63 @@ /* - * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, AdminCredentials, BaseResource, Circuit, CloudError, + CloudLink, Cluster, - ClusterUpdateProperties, + CommonClusterProperties, + Datastore, + DiskPoolVolume, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, + GlobalReachConnection, HcxEnterpriseSite, IdentitySource, ManagementCluster, + NetAppVolume, PrivateCloud, PrivateCloudList, PrivateCloudUpdate, + ProxyResource, + PSCredentialExecutionParameter, Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup } from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/scriptCmdletsMappers.ts b/sdk/avs/arm-avs/src/models/scriptCmdletsMappers.ts new file mode 100644 index 000000000000..2943c74d4ddc --- /dev/null +++ b/sdk/avs/arm-avs/src/models/scriptCmdletsMappers.ts @@ -0,0 +1,61 @@ +/* + * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, + BaseResource, + Circuit, + CloudError, + CloudLink, + Cluster, + CommonClusterProperties, + Datastore, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, + Resource, + ScriptCmdlet, + ScriptCmdletsList, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/scriptExecutionsMappers.ts b/sdk/avs/arm-avs/src/models/scriptExecutionsMappers.ts new file mode 100644 index 000000000000..7aff1c90f446 --- /dev/null +++ b/sdk/avs/arm-avs/src/models/scriptExecutionsMappers.ts @@ -0,0 +1,61 @@ +/* + * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, + BaseResource, + Circuit, + CloudError, + CloudLink, + Cluster, + CommonClusterProperties, + Datastore, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, + Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptExecutionsList, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/scriptPackagesMappers.ts b/sdk/avs/arm-avs/src/models/scriptPackagesMappers.ts new file mode 100644 index 000000000000..89ed471cebd5 --- /dev/null +++ b/sdk/avs/arm-avs/src/models/scriptPackagesMappers.ts @@ -0,0 +1,61 @@ +/* + * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, + BaseResource, + Circuit, + CloudError, + CloudLink, + Cluster, + CommonClusterProperties, + Datastore, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, + Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptPackagesList, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkPublicIP, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/workloadNetworksMappers.ts b/sdk/avs/arm-avs/src/models/workloadNetworksMappers.ts new file mode 100644 index 000000000000..5a85a4df625a --- /dev/null +++ b/sdk/avs/arm-avs/src/models/workloadNetworksMappers.ts @@ -0,0 +1,69 @@ +/* + * 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 { + discriminators, + Addon, + AddonHcxProperties, + AddonProperties, + AddonSrmProperties, + AddonVrProperties, + BaseResource, + Circuit, + CloudError, + CloudLink, + Cluster, + CommonClusterProperties, + Datastore, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + PSCredentialExecutionParameter, + Resource, + ScriptCmdlet, + ScriptExecution, + ScriptExecutionParameter, + ScriptPackage, + ScriptParameter, + ScriptSecureStringExecutionParameter, + ScriptStringExecutionParameter, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpEntity, + WorkloadNetworkDhcpList, + WorkloadNetworkDhcpRelay, + WorkloadNetworkDhcpServer, + WorkloadNetworkDnsService, + WorkloadNetworkDnsServicesList, + WorkloadNetworkDnsZone, + WorkloadNetworkDnsZonesList, + WorkloadNetworkGateway, + WorkloadNetworkGatewayList, + WorkloadNetworkPortMirroring, + WorkloadNetworkPortMirroringList, + WorkloadNetworkPublicIP, + WorkloadNetworkPublicIPsList, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentsList, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVirtualMachinesList, + WorkloadNetworkVMGroup, + WorkloadNetworkVMGroupsList +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/operations/addons.ts b/sdk/avs/arm-avs/src/operations/addons.ts new file mode 100644 index 000000000000..f1e204b403b1 --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/addons.ts @@ -0,0 +1,334 @@ +/* + * 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/addonsMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a Addons. */ +export class Addons { + private readonly client: AvsClientContext; + + /** + * Create a Addons. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * @summary List addons in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Get an addon by name in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param addonName Name of the addon for the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateCloudName: string, addonName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param addonName Name of the addon for the private cloud + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, addonName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param addonName Name of the addon for the private cloud + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, addonName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateCloudName: string, addonName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + addonName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update a addon in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param addonName Name of the addon for the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, privateCloudName: string, addonName: string, options?: Models.AddonsCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,addonName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a addon in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param addonName Name of the addon for the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, privateCloudName: string, addonName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,privateCloudName,addonName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Create or update a addon in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param addonName Name of the addon for the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, addonName: string, options?: Models.AddonsBeginCreateOrUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + addonName, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary Delete a addon in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param addonName Name of the addon for the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, privateCloudName: string, addonName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + addonName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary List addons in a private cloud + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AddonList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.addonName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Addon + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.addonName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + properties: [ + "options", + "properties" + ] + }, + mapper: { + ...Mappers.Addon, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Addon + }, + 201: { + bodyMapper: Mappers.Addon + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.addonName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AddonList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/avs/arm-avs/src/operations/authorizations.ts b/sdk/avs/arm-avs/src/operations/authorizations.ts index 6111185333ad..a1b4337f2904 100644 --- a/sdk/avs/arm-avs/src/operations/authorizations.ts +++ b/sdk/avs/arm-avs/src/operations/authorizations.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 @@ -100,12 +99,11 @@ export class Authorizations { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName The name of the private cloud. * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud - * @param authorization An ExpressRoute Circuit Authorization * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, privateCloudName: string, authorizationName: string, authorization: any, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,authorizationName,authorization,options) + createOrUpdate(resourceGroupName: string, privateCloudName: string, authorizationName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,authorizationName,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -127,17 +125,15 @@ export class Authorizations { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName The name of the private cloud. * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud - * @param authorization An ExpressRoute Circuit Authorization * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, authorizationName: string, authorization: any, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, authorizationName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, privateCloudName, authorizationName, - authorization, options }, beginCreateOrUpdateOperationSpec, @@ -264,11 +260,8 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "authorization", mapper: { - required: true, - serializedName: "authorization", - type: { - name: "Object" - } + ...Mappers.ExpressRouteAuthorization, + required: true } }, responses: { @@ -318,6 +311,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/avs/arm-avs/src/operations/cloudLinks.ts b/sdk/avs/arm-avs/src/operations/cloudLinks.ts new file mode 100644 index 000000000000..5460d5f876b9 --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/cloudLinks.ts @@ -0,0 +1,334 @@ +/* + * 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/cloudLinksMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a CloudLinks. */ +export class CloudLinks { + private readonly client: AvsClientContext; + + /** + * Create a CloudLinks. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * @summary List cloud link in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Get an cloud link by name in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param cloudLinkName Name of the cloud link resource + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateCloudName: string, cloudLinkName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param cloudLinkName Name of the cloud link resource + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, cloudLinkName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param cloudLinkName Name of the cloud link resource + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, cloudLinkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateCloudName: string, cloudLinkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + cloudLinkName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update a cloud link in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param cloudLinkName Name of the cloud link resource + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, privateCloudName: string, cloudLinkName: string, options?: Models.CloudLinksCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,cloudLinkName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a cloud link in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param cloudLinkName Name of the cloud link resource + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, privateCloudName: string, cloudLinkName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,privateCloudName,cloudLinkName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Create or update a cloud link in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param cloudLinkName Name of the cloud link resource + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, cloudLinkName: string, options?: Models.CloudLinksBeginCreateOrUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + cloudLinkName, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary Delete a cloud link in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param cloudLinkName Name of the cloud link resource + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, privateCloudName: string, cloudLinkName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + cloudLinkName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary List cloud link in a private cloud + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudLinkList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.cloudLinkName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudLink + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.cloudLinkName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + linkedCloud: [ + "options", + "linkedCloud" + ] + }, + mapper: { + ...Mappers.CloudLink, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CloudLink + }, + 201: { + bodyMapper: Mappers.CloudLink + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.cloudLinkName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CloudLinkList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/avs/arm-avs/src/operations/clusters.ts b/sdk/avs/arm-avs/src/operations/clusters.ts index 2c005ebadd1c..300a524a845c 100644 --- a/sdk/avs/arm-avs/src/operations/clusters.ts +++ b/sdk/avs/arm-avs/src/operations/clusters.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 @@ -389,6 +388,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/avs/arm-avs/src/operations/datastores.ts b/sdk/avs/arm-avs/src/operations/datastores.ts new file mode 100644 index 000000000000..b9fb66bb0b93 --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/datastores.ts @@ -0,0 +1,350 @@ +/* + * 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/datastoresMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a Datastores. */ +export class Datastores { + private readonly client: AvsClientContext; + + /** + * Create a Datastores. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * @summary List datastores in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, privateCloudName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, privateCloudName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + clusterName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a datastore in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + clusterName, + datastoreName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update a datastore in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param datastore A datastore in a private cloud cluster + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, datastore: Models.Datastore, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,clusterName,datastoreName,datastore,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a datastore in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,privateCloudName,clusterName,datastoreName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Create or update a datastore in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param datastore A datastore in a private cloud cluster + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, datastore: Models.Datastore, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + clusterName, + datastoreName, + datastore, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary Delete a datastore in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + clusterName, + datastoreName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary List datastores in a private cloud cluster + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastoreList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName, + Parameters.datastoreName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Datastore + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName, + Parameters.datastoreName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "datastore", + mapper: { + ...Mappers.Datastore, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Datastore + }, + 201: { + bodyMapper: Mappers.Datastore + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName, + Parameters.datastoreName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastoreList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/avs/arm-avs/src/operations/globalReachConnections.ts b/sdk/avs/arm-avs/src/operations/globalReachConnections.ts new file mode 100644 index 000000000000..19aab04b254a --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/globalReachConnections.ts @@ -0,0 +1,332 @@ +/* + * 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/globalReachConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a GlobalReachConnections. */ +export class GlobalReachConnections { + private readonly client: AvsClientContext; + + /** + * Create a GlobalReachConnections. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * @summary List global reach connections in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a global reach connection by name in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + globalReachConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update a global reach connection in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param globalReachConnection A global reach connection in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, globalReachConnection: Models.GlobalReachConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,globalReachConnectionName,globalReachConnection,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a global reach connection in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,privateCloudName,globalReachConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Create or update a global reach connection in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param globalReachConnection A global reach connection in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, globalReachConnection: Models.GlobalReachConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + globalReachConnectionName, + globalReachConnection, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary Delete a global reach connection in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + globalReachConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary List global reach connections in a private cloud + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GlobalReachConnectionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.globalReachConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GlobalReachConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.globalReachConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "globalReachConnection", + mapper: { + ...Mappers.GlobalReachConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.GlobalReachConnection + }, + 201: { + bodyMapper: Mappers.GlobalReachConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.globalReachConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GlobalReachConnectionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts b/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts index ed9205e69420..6872ad97df76 100644 --- a/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts +++ b/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.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 @@ -99,35 +98,31 @@ export class HcxEnterpriseSites { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName The name of the private cloud. * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud - * @param hcxEnterpriseSite The HCX Enterprise Site * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName The name of the private cloud. * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud - * @param hcxEnterpriseSite The HCX Enterprise Site * @param callback The callback */ - createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName The name of the private cloud. * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud - * @param hcxEnterpriseSite The HCX Enterprise Site * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateCloudName, hcxEnterpriseSiteName, - hcxEnterpriseSite, options }, createOrUpdateOperationSpec, @@ -270,11 +265,8 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "hcxEnterpriseSite", mapper: { - required: true, - serializedName: "hcxEnterpriseSite", - type: { - name: "Object" - } + ...Mappers.HcxEnterpriseSite, + required: true } }, responses: { @@ -323,6 +315,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/avs/arm-avs/src/operations/index.ts b/sdk/avs/arm-avs/src/operations/index.ts index 41167f64dfff..0e75ff3ae113 100644 --- a/sdk/avs/arm-avs/src/operations/index.ts +++ b/sdk/avs/arm-avs/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 @@ -12,5 +11,13 @@ export * from "./operations"; export * from "./locations"; export * from "./privateClouds"; export * from "./clusters"; +export * from "./datastores"; export * from "./hcxEnterpriseSites"; export * from "./authorizations"; +export * from "./globalReachConnections"; +export * from "./workloadNetworks"; +export * from "./cloudLinks"; +export * from "./addons"; +export * from "./scriptPackages"; +export * from "./scriptCmdlets"; +export * from "./scriptExecutions"; diff --git a/sdk/avs/arm-avs/src/operations/locations.ts b/sdk/avs/arm-avs/src/operations/locations.ts index 7ff1fa9c7351..0ad6b1f865c4 100644 --- a/sdk/avs/arm-avs/src/operations/locations.ts +++ b/sdk/avs/arm-avs/src/operations/locations.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 diff --git a/sdk/avs/arm-avs/src/operations/operations.ts b/sdk/avs/arm-avs/src/operations/operations.ts index af15d66d1a93..b06ec348fd51 100644 --- a/sdk/avs/arm-avs/src/operations/operations.ts +++ b/sdk/avs/arm-avs/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 @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/avs/arm-avs/src/operations/privateClouds.ts b/sdk/avs/arm-avs/src/operations/privateClouds.ts index eebc9d8ac564..80341dad85db 100644 --- a/sdk/avs/arm-avs/src/operations/privateClouds.ts +++ b/sdk/avs/arm-avs/src/operations/privateClouds.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 @@ -149,6 +148,30 @@ export class PrivateClouds { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * @summary Rotate the vCenter password + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + rotateVcenterPassword(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRotateVcenterPassword(resourceGroupName,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Rotate the NSX-T Manager password + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + rotateNsxtPassword(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRotateNsxtPassword(resourceGroupName,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * @summary List the admin credentials for the private cloud * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -239,6 +262,42 @@ export class PrivateClouds { options); } + /** + * @summary Rotate the vCenter password + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginRotateVcenterPassword(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + options + }, + beginRotateVcenterPasswordOperationSpec, + options); + } + + /** + * @summary Rotate the NSX-T Manager password + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginRotateNsxtPassword(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + options + }, + beginRotateNsxtPasswordOperationSpec, + options); + } + /** * @summary List private clouds in a resource group * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -490,6 +549,54 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const beginRotateVcenterPasswordOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRotateNsxtPasswordOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -497,6 +604,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -518,6 +628,9 @@ const listInSubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/avs/arm-avs/src/operations/scriptCmdlets.ts b/sdk/avs/arm-avs/src/operations/scriptCmdlets.ts new file mode 100644 index 000000000000..00250ba63797 --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/scriptCmdlets.ts @@ -0,0 +1,215 @@ +/* + * 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/scriptCmdletsMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a ScriptCmdlets. */ +export class ScriptCmdlets { + private readonly client: AvsClientContext; + + /** + * Create a ScriptCmdlets. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * Return script cmdlet resources available for a private cloud to create a script execution + * resource on their Private Cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptPackageName Name of the script package in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptPackageName Name of the script package in the private cloud + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptPackageName Name of the script package in the private cloud + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + scriptPackageName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Return information about a script cmdlet resource in a specific package on a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptPackageName Name of the script package in the private cloud + * @param scriptCmdletName Name of the script cmdlet resource in the script package in the private + * cloud + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, scriptCmdletName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptPackageName Name of the script package in the private cloud + * @param scriptCmdletName Name of the script cmdlet resource in the script package in the private + * cloud + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, scriptCmdletName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptPackageName Name of the script package in the private cloud + * @param scriptCmdletName Name of the script cmdlet resource in the script package in the private + * cloud + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, scriptCmdletName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, scriptCmdletName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + scriptPackageName, + scriptCmdletName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Return script cmdlet resources available for a private cloud to create a script execution + * resource on their Private Cloud + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.scriptPackageName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScriptCmdletsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.scriptPackageName, + Parameters.scriptCmdletName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScriptCmdlet + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScriptCmdletsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/avs/arm-avs/src/operations/scriptExecutions.ts b/sdk/avs/arm-avs/src/operations/scriptExecutions.ts new file mode 100644 index 000000000000..5ceca22b6fed --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/scriptExecutions.ts @@ -0,0 +1,411 @@ +/* + * 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/scriptExecutionsMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a ScriptExecutions. */ +export class ScriptExecutions { + private readonly client: AvsClientContext; + + /** + * Create a ScriptExecutions. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * @summary Get an script execution resource by name in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Get an script execution resource by name in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptExecutionName Name of the user-invoked script execution resource + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptExecutionName Name of the user-invoked script execution resource + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptExecutionName Name of the user-invoked script execution resource + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + scriptExecutionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update a script execution resource in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param scriptExecutionName Name of the user-invoked script execution resource + * @param scriptExecution A script running in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, scriptExecution: Models.ScriptExecution, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,scriptExecutionName,scriptExecution,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Cancel a ScriptExecution in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptExecutionName Name of the user-invoked script execution resource + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,privateCloudName,scriptExecutionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Return the logs for a script execution resource + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptExecutionName Name of the user-invoked script execution resource + * @param [options] The optional parameters + * @returns Promise + */ + getExecutionLogs(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, options?: Models.ScriptExecutionsGetExecutionLogsOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptExecutionName Name of the user-invoked script execution resource + * @param callback The callback + */ + getExecutionLogs(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptExecutionName Name of the user-invoked script execution resource + * @param options The optional parameters + * @param callback The callback + */ + getExecutionLogs(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, options: Models.ScriptExecutionsGetExecutionLogsOptionalParams, callback: msRest.ServiceCallback): void; + getExecutionLogs(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, options?: Models.ScriptExecutionsGetExecutionLogsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + scriptExecutionName, + options + }, + getExecutionLogsOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update a script execution resource in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param scriptExecutionName Name of the user-invoked script execution resource + * @param scriptExecution A script running in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, scriptExecution: Models.ScriptExecution, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + scriptExecutionName, + scriptExecution, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary Cancel a ScriptExecution in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptExecutionName Name of the user-invoked script execution resource + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, privateCloudName: string, scriptExecutionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + scriptExecutionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary Get an script execution resource by name in a private cloud + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScriptExecutionsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.scriptExecutionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScriptExecution + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getExecutionLogsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.scriptExecutionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "scriptOutputStreamType" + ], + mapper: { + serializedName: "scriptOutputStreamType", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + }, + responses: { + 200: { + bodyMapper: Mappers.ScriptExecution + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.scriptExecutionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "scriptExecution", + mapper: { + ...Mappers.ScriptExecution, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ScriptExecution + }, + 201: { + bodyMapper: Mappers.ScriptExecution + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.scriptExecutionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScriptExecutionsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/avs/arm-avs/src/operations/scriptPackages.ts b/sdk/avs/arm-avs/src/operations/scriptPackages.ts new file mode 100644 index 000000000000..9dec8dd568ee --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/scriptPackages.ts @@ -0,0 +1,200 @@ +/* + * 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/scriptPackagesMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a ScriptPackages. */ +export class ScriptPackages { + private readonly client: AvsClientContext; + + /** + * Create a ScriptPackages. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * Return script packages available for a private cloud to run on their Private Cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Return script package available to run on an Private Cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptPackageName Name of the script package in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptPackageName Name of the script package in the private cloud + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param scriptPackageName Name of the script package in the private cloud + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateCloudName: string, scriptPackageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + scriptPackageName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Return script packages available for a private cloud to run on their Private Cloud + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScriptPackagesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.scriptPackageName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScriptPackage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScriptPackagesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/avs/arm-avs/src/operations/workloadNetworks.ts b/sdk/avs/arm-avs/src/operations/workloadNetworks.ts new file mode 100644 index 000000000000..42bea81cd6cc --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/workloadNetworks.ts @@ -0,0 +1,2935 @@ +/* + * 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/workloadNetworksMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a WorkloadNetworks. */ +export class WorkloadNetworks { + private readonly client: AvsClientContext; + + /** + * Create a WorkloadNetworks. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * @summary List of segments in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listSegments(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listSegments(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listSegments(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSegments(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listSegmentsOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param [options] The optional parameters + * @returns Promise + */ + getSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param callback The callback + */ + getSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param options The optional parameters + * @param callback The callback + */ + getSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + segmentId, + options + }, + getSegmentOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param workloadNetworkSegment NSX Segment + * @param [options] The optional parameters + * @returns Promise + */ + createSegments(resourceGroupName: string, privateCloudName: string, segmentId: string, workloadNetworkSegment: Models.WorkloadNetworkSegment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateSegments(resourceGroupName,privateCloudName,segmentId,workloadNetworkSegment,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param workloadNetworkSegment NSX Segment + * @param [options] The optional parameters + * @returns Promise + */ + updateSegments(resourceGroupName: string, privateCloudName: string, segmentId: string, workloadNetworkSegment: Models.WorkloadNetworkSegment, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateSegments(resourceGroupName,privateCloudName,segmentId,workloadNetworkSegment,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param [options] The optional parameters + * @returns Promise + */ + deleteSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSegment(resourceGroupName,privateCloudName,segmentId,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List dhcp in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listDhcp(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listDhcp(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listDhcp(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDhcp(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listDhcpOperationSpec, + callback) as Promise; + } + + /** + * @summary Get dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + getDhcp(resourceGroupName: string, dhcpId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + getDhcp(resourceGroupName: string, dhcpId: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + getDhcp(resourceGroupName: string, dhcpId: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDhcp(resourceGroupName: string, dhcpId: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dhcpId, + privateCloudName, + options + }, + getDhcpOperationSpec, + callback) as Promise; + } + + /** + * @summary Create dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param [options] The optional parameters + * @returns Promise + */ + createDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, options?: Models.WorkloadNetworksCreateDhcpOptionalParams): Promise { + return this.beginCreateDhcp(resourceGroupName,privateCloudName,dhcpId,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param [options] The optional parameters + * @returns Promise + */ + updateDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, options?: Models.WorkloadNetworksUpdateDhcpOptionalParams): Promise { + return this.beginUpdateDhcp(resourceGroupName,privateCloudName,dhcpId,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param [options] The optional parameters + * @returns Promise + */ + deleteDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteDhcp(resourceGroupName,privateCloudName,dhcpId,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List of gateways in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listGateways(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listGateways(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listGateways(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listGateways(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listGatewaysOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a gateway by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param gatewayId NSX Gateway identifier. Generally the same as the Gateway's display name + * @param [options] The optional parameters + * @returns Promise + */ + getGateway(resourceGroupName: string, privateCloudName: string, gatewayId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param gatewayId NSX Gateway identifier. Generally the same as the Gateway's display name + * @param callback The callback + */ + getGateway(resourceGroupName: string, privateCloudName: string, gatewayId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param gatewayId NSX Gateway identifier. Generally the same as the Gateway's display name + * @param options The optional parameters + * @param callback The callback + */ + getGateway(resourceGroupName: string, privateCloudName: string, gatewayId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGateway(resourceGroupName: string, privateCloudName: string, gatewayId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + gatewayId, + options + }, + getGatewayOperationSpec, + callback) as Promise; + } + + /** + * @summary List of port mirroring profiles in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listPortMirroring(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listPortMirroring(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listPortMirroring(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPortMirroring(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listPortMirroringOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param [options] The optional parameters + * @returns Promise + */ + getPortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param callback The callback + */ + getPortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param options The optional parameters + * @param callback The callback + */ + getPortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + portMirroringId, + options + }, + getPortMirroringOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param workloadNetworkPortMirroring NSX port mirroring + * @param [options] The optional parameters + * @returns Promise + */ + createPortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, workloadNetworkPortMirroring: Models.WorkloadNetworkPortMirroring, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreatePortMirroring(resourceGroupName,privateCloudName,portMirroringId,workloadNetworkPortMirroring,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param workloadNetworkPortMirroring NSX port mirroring + * @param [options] The optional parameters + * @returns Promise + */ + updatePortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, workloadNetworkPortMirroring: Models.WorkloadNetworkPortMirroring, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdatePortMirroring(resourceGroupName,privateCloudName,portMirroringId,workloadNetworkPortMirroring,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deletePortMirroring(resourceGroupName: string, portMirroringId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeletePortMirroring(resourceGroupName,portMirroringId,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List of vm groups in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listVMGroups(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listVMGroups(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listVMGroups(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVMGroups(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listVMGroupsOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param [options] The optional parameters + * @returns Promise + */ + getVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param callback The callback + */ + getVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param options The optional parameters + * @param callback The callback + */ + getVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + vmGroupId, + options + }, + getVMGroupOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param workloadNetworkVMGroup NSX VM Group + * @param [options] The optional parameters + * @returns Promise + */ + createVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, workloadNetworkVMGroup: Models.WorkloadNetworkVMGroup, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateVMGroup(resourceGroupName,privateCloudName,vmGroupId,workloadNetworkVMGroup,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param workloadNetworkVMGroup NSX VM Group + * @param [options] The optional parameters + * @returns Promise + */ + updateVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, workloadNetworkVMGroup: Models.WorkloadNetworkVMGroup, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateVMGroup(resourceGroupName,privateCloudName,vmGroupId,workloadNetworkVMGroup,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deleteVMGroup(resourceGroupName: string, vmGroupId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteVMGroup(resourceGroupName,vmGroupId,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List of virtual machines in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listVirtualMachines(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listVirtualMachines(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listVirtualMachines(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVirtualMachines(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listVirtualMachinesOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a virtual machine by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param virtualMachineId Virtual Machine identifier + * @param [options] The optional parameters + * @returns Promise + */ + getVirtualMachine(resourceGroupName: string, privateCloudName: string, virtualMachineId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param virtualMachineId Virtual Machine identifier + * @param callback The callback + */ + getVirtualMachine(resourceGroupName: string, privateCloudName: string, virtualMachineId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param virtualMachineId Virtual Machine identifier + * @param options The optional parameters + * @param callback The callback + */ + getVirtualMachine(resourceGroupName: string, privateCloudName: string, virtualMachineId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVirtualMachine(resourceGroupName: string, privateCloudName: string, virtualMachineId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + virtualMachineId, + options + }, + getVirtualMachineOperationSpec, + callback) as Promise; + } + + /** + * @summary List of DNS services in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listDnsServices(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listDnsServices(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listDnsServices(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDnsServices(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listDnsServicesOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param [options] The optional parameters + * @returns Promise + */ + getDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param callback The callback + */ + getDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param options The optional parameters + * @param callback The callback + */ + getDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + dnsServiceId, + options + }, + getDnsServiceOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param workloadNetworkDnsService NSX DNS Service + * @param [options] The optional parameters + * @returns Promise + */ + createDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, workloadNetworkDnsService: Models.WorkloadNetworkDnsService, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateDnsService(resourceGroupName,privateCloudName,dnsServiceId,workloadNetworkDnsService,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param workloadNetworkDnsService NSX DNS Service + * @param [options] The optional parameters + * @returns Promise + */ + updateDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, workloadNetworkDnsService: Models.WorkloadNetworkDnsService, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateDnsService(resourceGroupName,privateCloudName,dnsServiceId,workloadNetworkDnsService,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deleteDnsService(resourceGroupName: string, dnsServiceId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteDnsService(resourceGroupName,dnsServiceId,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List of DNS zones in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listDnsZones(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listDnsZones(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listDnsZones(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDnsZones(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listDnsZonesOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param [options] The optional parameters + * @returns Promise + */ + getDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param callback The callback + */ + getDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param options The optional parameters + * @param callback The callback + */ + getDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + dnsZoneId, + options + }, + getDnsZoneOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param workloadNetworkDnsZone NSX DNS Zone + * @param [options] The optional parameters + * @returns Promise + */ + createDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, workloadNetworkDnsZone: Models.WorkloadNetworkDnsZone, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateDnsZone(resourceGroupName,privateCloudName,dnsZoneId,workloadNetworkDnsZone,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param workloadNetworkDnsZone NSX DNS Zone + * @param [options] The optional parameters + * @returns Promise + */ + updateDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, workloadNetworkDnsZone: Models.WorkloadNetworkDnsZone, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateDnsZone(resourceGroupName,privateCloudName,dnsZoneId,workloadNetworkDnsZone,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deleteDnsZone(resourceGroupName: string, dnsZoneId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteDnsZone(resourceGroupName,dnsZoneId,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List of Public IP Blocks in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listPublicIPs(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listPublicIPs(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listPublicIPs(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublicIPs(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listPublicIPsOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a Public IP Block by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's + * display name + * @param [options] The optional parameters + * @returns Promise + */ + getPublicIP(resourceGroupName: string, privateCloudName: string, publicIPId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's + * display name + * @param callback The callback + */ + getPublicIP(resourceGroupName: string, privateCloudName: string, publicIPId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's + * display name + * @param options The optional parameters + * @param callback The callback + */ + getPublicIP(resourceGroupName: string, privateCloudName: string, publicIPId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPublicIP(resourceGroupName: string, privateCloudName: string, publicIPId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + publicIPId, + options + }, + getPublicIPOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a Public IP Block by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's + * display name + * @param workloadNetworkPublicIP NSX Public IP Block + * @param [options] The optional parameters + * @returns Promise + */ + createPublicIP(resourceGroupName: string, privateCloudName: string, publicIPId: string, workloadNetworkPublicIP: Models.WorkloadNetworkPublicIP, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreatePublicIP(resourceGroupName,privateCloudName,publicIPId,workloadNetworkPublicIP,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a Public IP Block by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's + * display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deletePublicIP(resourceGroupName: string, publicIPId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeletePublicIP(resourceGroupName,publicIPId,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Create a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param workloadNetworkSegment NSX Segment + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateSegments(resourceGroupName: string, privateCloudName: string, segmentId: string, workloadNetworkSegment: Models.WorkloadNetworkSegment, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + segmentId, + workloadNetworkSegment, + options + }, + beginCreateSegmentsOperationSpec, + options); + } + + /** + * @summary Create or update a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param workloadNetworkSegment NSX Segment + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateSegments(resourceGroupName: string, privateCloudName: string, segmentId: string, workloadNetworkSegment: Models.WorkloadNetworkSegment, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + segmentId, + workloadNetworkSegment, + options + }, + beginUpdateSegmentsOperationSpec, + options); + } + + /** + * @summary Delete a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + segmentId, + options + }, + beginDeleteSegmentOperationSpec, + options); + } + + /** + * @summary Create dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, options?: Models.WorkloadNetworksBeginCreateDhcpOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dhcpId, + options + }, + beginCreateDhcpOperationSpec, + options); + } + + /** + * @summary Create or update dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, options?: Models.WorkloadNetworksBeginUpdateDhcpOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dhcpId, + options + }, + beginUpdateDhcpOperationSpec, + options); + } + + /** + * @summary Delete dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dhcpId, + options + }, + beginDeleteDhcpOperationSpec, + options); + } + + /** + * @summary Create a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param workloadNetworkPortMirroring NSX port mirroring + * @param [options] The optional parameters + * @returns Promise + */ + beginCreatePortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, workloadNetworkPortMirroring: Models.WorkloadNetworkPortMirroring, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + portMirroringId, + workloadNetworkPortMirroring, + options + }, + beginCreatePortMirroringOperationSpec, + options); + } + + /** + * @summary Create or update a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param workloadNetworkPortMirroring NSX port mirroring + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdatePortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, workloadNetworkPortMirroring: Models.WorkloadNetworkPortMirroring, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + portMirroringId, + workloadNetworkPortMirroring, + options + }, + beginUpdatePortMirroringOperationSpec, + options); + } + + /** + * @summary Delete a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeletePortMirroring(resourceGroupName: string, portMirroringId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + portMirroringId, + privateCloudName, + options + }, + beginDeletePortMirroringOperationSpec, + options); + } + + /** + * @summary Create a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param workloadNetworkVMGroup NSX VM Group + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, workloadNetworkVMGroup: Models.WorkloadNetworkVMGroup, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + vmGroupId, + workloadNetworkVMGroup, + options + }, + beginCreateVMGroupOperationSpec, + options); + } + + /** + * @summary Create or update a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param workloadNetworkVMGroup NSX VM Group + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, workloadNetworkVMGroup: Models.WorkloadNetworkVMGroup, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + vmGroupId, + workloadNetworkVMGroup, + options + }, + beginUpdateVMGroupOperationSpec, + options); + } + + /** + * @summary Delete a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteVMGroup(resourceGroupName: string, vmGroupId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmGroupId, + privateCloudName, + options + }, + beginDeleteVMGroupOperationSpec, + options); + } + + /** + * @summary Create a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param workloadNetworkDnsService NSX DNS Service + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, workloadNetworkDnsService: Models.WorkloadNetworkDnsService, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dnsServiceId, + workloadNetworkDnsService, + options + }, + beginCreateDnsServiceOperationSpec, + options); + } + + /** + * @summary Create or update a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param workloadNetworkDnsService NSX DNS Service + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, workloadNetworkDnsService: Models.WorkloadNetworkDnsService, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dnsServiceId, + workloadNetworkDnsService, + options + }, + beginUpdateDnsServiceOperationSpec, + options); + } + + /** + * @summary Delete a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteDnsService(resourceGroupName: string, dnsServiceId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + dnsServiceId, + privateCloudName, + options + }, + beginDeleteDnsServiceOperationSpec, + options); + } + + /** + * @summary Create a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param workloadNetworkDnsZone NSX DNS Zone + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, workloadNetworkDnsZone: Models.WorkloadNetworkDnsZone, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dnsZoneId, + workloadNetworkDnsZone, + options + }, + beginCreateDnsZoneOperationSpec, + options); + } + + /** + * @summary Create or update a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param workloadNetworkDnsZone NSX DNS Zone + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, workloadNetworkDnsZone: Models.WorkloadNetworkDnsZone, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dnsZoneId, + workloadNetworkDnsZone, + options + }, + beginUpdateDnsZoneOperationSpec, + options); + } + + /** + * @summary Delete a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteDnsZone(resourceGroupName: string, dnsZoneId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + dnsZoneId, + privateCloudName, + options + }, + beginDeleteDnsZoneOperationSpec, + options); + } + + /** + * @summary Create a Public IP Block by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's + * display name + * @param workloadNetworkPublicIP NSX Public IP Block + * @param [options] The optional parameters + * @returns Promise + */ + beginCreatePublicIP(resourceGroupName: string, privateCloudName: string, publicIPId: string, workloadNetworkPublicIP: Models.WorkloadNetworkPublicIP, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + publicIPId, + workloadNetworkPublicIP, + options + }, + beginCreatePublicIPOperationSpec, + options); + } + + /** + * @summary Delete a Public IP Block by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's + * display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeletePublicIP(resourceGroupName: string, publicIPId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + publicIPId, + privateCloudName, + options + }, + beginDeletePublicIPOperationSpec, + options); + } + + /** + * @summary List of segments in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSegmentsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSegmentsNext(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 + */ + listSegmentsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSegmentsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSegmentsNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List dhcp in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listDhcpNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listDhcpNext(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 + */ + listDhcpNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDhcpNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listDhcpNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of gateways in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listGatewaysNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listGatewaysNext(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 + */ + listGatewaysNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listGatewaysNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listGatewaysNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of port mirroring profiles in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listPortMirroringNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listPortMirroringNext(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 + */ + listPortMirroringNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPortMirroringNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listPortMirroringNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of vm groups in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listVMGroupsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listVMGroupsNext(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 + */ + listVMGroupsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVMGroupsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listVMGroupsNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of virtual machines in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listVirtualMachinesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listVirtualMachinesNext(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 + */ + listVirtualMachinesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVirtualMachinesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listVirtualMachinesNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of DNS services in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listDnsServicesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listDnsServicesNext(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 + */ + listDnsServicesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDnsServicesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listDnsServicesNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of DNS zones in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listDnsZonesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listDnsZonesNext(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 + */ + listDnsZonesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDnsZonesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listDnsZonesNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of Public IP Blocks in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listPublicIPsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listPublicIPsNext(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 + */ + listPublicIPsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublicIPsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listPublicIPsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listSegmentsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkSegmentsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getSegmentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.segmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkSegment + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDhcpOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDhcpList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getDhcpOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dhcpId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDhcp + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listGatewaysOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkGatewayList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getGatewayOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.gatewayId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkGateway + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPortMirroringOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPortMirroringList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getPortMirroringOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.portMirroringId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPortMirroring + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listVMGroupsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVMGroupsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getVMGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.vmGroupId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVMGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listVirtualMachinesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVirtualMachinesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getVirtualMachineOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.virtualMachineId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVirtualMachine + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDnsServicesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsServicesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getDnsServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsServiceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsService + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDnsZonesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsZonesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getDnsZoneOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsZoneId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsZone + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublicIPsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPublicIPsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getPublicIPOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.publicIPId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPublicIP + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateSegmentsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.segmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkSegment", + mapper: { + ...Mappers.WorkloadNetworkSegment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkSegment + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkSegment + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateSegmentsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.segmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkSegment", + mapper: { + ...Mappers.WorkloadNetworkSegment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkSegment + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteSegmentOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.segmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateDhcpOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dhcpId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + properties: [ + "options", + "properties" + ] + }, + mapper: { + ...Mappers.WorkloadNetworkDhcp, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDhcp + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkDhcp + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateDhcpOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dhcpId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + properties: [ + "options", + "properties" + ] + }, + mapper: { + ...Mappers.WorkloadNetworkDhcp, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDhcp + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteDhcpOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dhcpId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreatePortMirroringOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.portMirroringId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkPortMirroring", + mapper: { + ...Mappers.WorkloadNetworkPortMirroring, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPortMirroring + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkPortMirroring + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdatePortMirroringOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.portMirroringId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkPortMirroring", + mapper: { + ...Mappers.WorkloadNetworkPortMirroring, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPortMirroring + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeletePortMirroringOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.portMirroringId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateVMGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.vmGroupId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkVMGroup", + mapper: { + ...Mappers.WorkloadNetworkVMGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVMGroup + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkVMGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateVMGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.vmGroupId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkVMGroup", + mapper: { + ...Mappers.WorkloadNetworkVMGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVMGroup + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteVMGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmGroupId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateDnsServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsServiceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkDnsService", + mapper: { + ...Mappers.WorkloadNetworkDnsService, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsService + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkDnsService + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateDnsServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsServiceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkDnsService", + mapper: { + ...Mappers.WorkloadNetworkDnsService, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsService + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteDnsServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dnsServiceId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateDnsZoneOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsZoneId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkDnsZone", + mapper: { + ...Mappers.WorkloadNetworkDnsZone, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsZone + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkDnsZone + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateDnsZoneOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsZoneId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkDnsZone", + mapper: { + ...Mappers.WorkloadNetworkDnsZone, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsZone + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteDnsZoneOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dnsZoneId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreatePublicIPOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.publicIPId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkPublicIP", + mapper: { + ...Mappers.WorkloadNetworkPublicIP, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPublicIP + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkPublicIP + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeletePublicIPOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.publicIPId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSegmentsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkSegmentsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDhcpNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDhcpList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listGatewaysNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkGatewayList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPortMirroringNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPortMirroringList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listVMGroupsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVMGroupsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listVirtualMachinesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVirtualMachinesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDnsServicesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsServicesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDnsZonesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsZonesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublicIPsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPublicIPsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/databricks/arm-databricks/LICENSE.txt b/sdk/databricks/arm-databricks/LICENSE.txt index a70e8cf66038..2d3163745319 100644 --- a/sdk/databricks/arm-databricks/LICENSE.txt +++ b/sdk/databricks/arm-databricks/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 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/databricks/arm-databricks/README.md b/sdk/databricks/arm-databricks/README.md index a98459c8bb4d..b95c4cee0248 100644 --- a/sdk/databricks/arm-databricks/README.md +++ b/sdk/databricks/arm-databricks/README.md @@ -1,93 +1,101 @@ -## Azure DatabricksClient SDK for JavaScript +## Azure AzureDatabricksManagementClient SDK for JavaScript -This package contains an isomorphic SDK for DatabricksClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureDatabricksManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-databricks` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-databricks @azure/identity ``` -npm install @azure/arm-databricks -``` +> **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. ### How to use -#### nodejs - Authentication, client creation and get workspaces as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -``` -npm install @azure/ms-rest-nodeauth -``` +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 get workspaces as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { DatabricksClient, DatabricksModels, DatabricksMappers } from "@azure/arm-databricks"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { AzureDatabricksManagementClient } = require("@azure/arm-databricks"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new DatabricksClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const workspaceName = "testworkspaceName"; - client.workspaces.get(resourceGroupName, workspaceName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new AzureDatabricksManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const workspaceName = "testworkspaceName"; +client.workspaces.get(resourceGroupName, workspaceName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get workspaces as an example written in JavaScript. +#### browser - Authentication, client creation, and get workspaces as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-databricks sample - - + @@ -99,5 +107,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fdatabricks%2Farm-databricks%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/databricks/arm-databricks/README.png) diff --git a/sdk/databricks/arm-databricks/package.json b/sdk/databricks/arm-databricks/package.json index bf9a5c43a413..050a2526cc69 100644 --- a/sdk/databricks/arm-databricks/package.json +++ b/sdk/databricks/arm-databricks/package.json @@ -1,12 +1,13 @@ { "name": "@azure/arm-databricks", "author": "Microsoft Corporation", - "description": "DatabricksClient Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "description": "AzureDatabricksManagementClient Library with typescript type definitions for node.js and browser.", + "version": "2.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -17,21 +18,22 @@ ], "license": "MIT", "main": "./dist/arm-databricks.js", - "module": "./esm/databricksClient.js", - "types": "./esm/databricksClient.d.ts", + "module": "./esm/azureDatabricksManagementClient.js", + "types": "./esm/azureDatabricksManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.6.0", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/main/sdk/databricks/arm-databricks", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/databricks/arm-databricks", "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", @@ -43,6 +45,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], diff --git a/sdk/databricks/arm-databricks/rollup.config.js b/sdk/databricks/arm-databricks/rollup.config.js index 10910c284024..c802420682fb 100644 --- a/sdk/databricks/arm-databricks/rollup.config.js +++ b/sdk/databricks/arm-databricks/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/databricksClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/azureDatabricksManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-databricks.js", format: "umd", @@ -15,17 +21,17 @@ 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts b/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts new file mode 100644 index 000000000000..5d55e69868a9 --- /dev/null +++ b/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts @@ -0,0 +1,55 @@ +/* + * 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 { TokenCredential } from "@azure/core-auth"; +import * as Models from "./models"; +import * as Mappers from "./models/mappers"; +import * as operations from "./operations"; +import { AzureDatabricksManagementClientContext } from "./azureDatabricksManagementClientContext"; + + +class AzureDatabricksManagementClient extends AzureDatabricksManagementClientContext { + // Operation groups + workspaces: operations.Workspaces; + operations: operations.Operations; + privateLinkResources: operations.PrivateLinkResources; + privateEndpointConnections: operations.PrivateEndpointConnections; + vNetPeering: operations.VNetPeering; + + /** + * Initializes a new instance of the AzureDatabricksManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureDatabricksManagementClientOptions) { + super(credentials, subscriptionId, options); + this.workspaces = new operations.Workspaces(this); + this.operations = new operations.Operations(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + this.vNetPeering = new operations.VNetPeering(this); + } +} + +// Operation Specifications + +export { + AzureDatabricksManagementClient, + AzureDatabricksManagementClientContext, + Models as AzureDatabricksManagementModels, + Mappers as AzureDatabricksManagementMappers +}; +export * from "./operations"; diff --git a/sdk/databricks/arm-databricks/src/databricksClientContext.ts b/sdk/databricks/arm-databricks/src/azureDatabricksManagementClientContext.ts similarity index 55% rename from sdk/databricks/arm-databricks/src/databricksClientContext.ts rename to sdk/databricks/arm-databricks/src/azureDatabricksManagementClientContext.ts index be3305b83c0f..56998e973ae1 100644 --- a/sdk/databricks/arm-databricks/src/databricksClientContext.ts +++ b/sdk/databricks/arm-databricks/src/azureDatabricksManagementClientContext.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 @@ -11,22 +10,27 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-databricks"; -const packageVersion = "0.1.0"; +const packageVersion = "2.0.0"; -export class DatabricksClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; +export class AzureDatabricksManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; - apiVersion?: string; /** - * Initializes a new instance of the DatabricksClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * Initializes a new instance of the AzureDatabricksManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.DatabricksClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureDatabricksManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -37,14 +41,13 @@ export class DatabricksClientContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2018-04-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -52,10 +55,10 @@ export class DatabricksClientContext extends msRestAzure.AzureServiceClient { this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/databricks/arm-databricks/src/databricksClient.ts b/sdk/databricks/arm-databricks/src/databricksClient.ts deleted file mode 100644 index ef1cc667e629..000000000000 --- a/sdk/databricks/arm-databricks/src/databricksClient.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "./models"; -import * as Mappers from "./models/mappers"; -import * as operations from "./operations"; -import { DatabricksClientContext } from "./databricksClientContext"; - - -class DatabricksClient extends DatabricksClientContext { - // Operation groups - workspaces: operations.Workspaces; - operations: operations.Operations; - - /** - * Initializes a new instance of the DatabricksClient class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId The ID of the target subscription. - * @param [options] The parameter options - */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.DatabricksClientOptions) { - super(credentials, subscriptionId, options); - this.workspaces = new operations.Workspaces(this); - this.operations = new operations.Operations(this); - } -} - -// Operation Specifications - -export { - DatabricksClient, - DatabricksClientContext, - Models as DatabricksModels, - Mappers as DatabricksMappers -}; -export * from "./operations"; diff --git a/sdk/databricks/arm-databricks/src/models/index.ts b/sdk/databricks/arm-databricks/src/models/index.ts index 5b622f068da9..356dc9ebbf76 100644 --- a/sdk/databricks/arm-databricks/src/models/index.ts +++ b/sdk/databricks/arm-databricks/src/models/index.ts @@ -1,11 +1,9 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,307 +11,1153 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; +/** + * The Value. + */ +export interface WorkspaceCustomStringParameter { + /** + * The type of variable that this is. Possible values include: 'Bool', 'Object', 'String' + */ + type?: CustomParameterType; + /** + * The value which should be used for this field. + */ + value: string; +} + +/** + * The value which should be used for this field. + */ +export interface WorkspaceCustomBooleanParameter { + /** + * The type of variable that this is. Possible values include: 'Bool', 'Object', 'String' + */ + type?: CustomParameterType; + /** + * The value which should be used for this field. + */ + value: boolean; +} + +/** + * The object that contains details of encryption used on the workspace. + */ +export interface Encryption { + /** + * The encryption keySource (provider). Possible values (case-insensitive): Default, + * Microsoft.Keyvault. Possible values include: 'Default', 'Microsoft.Keyvault'. Default value: + * 'Default'. + */ + keySource?: KeySource; + /** + * The name of KeyVault key. + */ + keyName?: string; + /** + * The version of KeyVault key. + */ + keyVersion?: string; + /** + * The Uri of KeyVault. + */ + keyVaultUri?: string; +} + +/** + * The object that contains details of encryption used on the workspace. + */ +export interface WorkspaceEncryptionParameter { + /** + * The type of variable that this is. Possible values include: 'Bool', 'Object', 'String' + */ + type?: CustomParameterType; + /** + * The value which should be used for this field. + */ + value?: Encryption; +} + +/** + * The value which should be used for this field. + */ +export interface WorkspaceCustomObjectParameter { + /** + * The type of variable that this is. Possible values include: 'Bool', 'Object', 'String' + */ + type?: CustomParameterType; + /** + * The value which should be used for this field. + */ + value: any; +} + +/** + * Custom Parameters used for Cluster Creation. + */ +export interface WorkspaceCustomParameters { + /** + * The ID of a Azure Machine Learning workspace to link with Databricks workspace + */ + amlWorkspaceId?: WorkspaceCustomStringParameter; + /** + * The ID of a Virtual Network where this Databricks Cluster should be created + */ + customVirtualNetworkId?: WorkspaceCustomStringParameter; + /** + * The name of a Public Subnet within the Virtual Network + */ + customPublicSubnetName?: WorkspaceCustomStringParameter; + /** + * The name of the Private Subnet within the Virtual Network + */ + customPrivateSubnetName?: WorkspaceCustomStringParameter; + /** + * Should the Public IP be Disabled? + */ + enableNoPublicIp?: WorkspaceCustomBooleanParameter; + /** + * Name of the outbound Load Balancer Backend Pool for Secure Cluster Connectivity (No Public + * IP). + */ + loadBalancerBackendPoolName?: WorkspaceCustomStringParameter; + /** + * Resource URI of Outbound Load balancer for Secure Cluster Connectivity (No Public IP) + * workspace. + */ + loadBalancerId?: WorkspaceCustomStringParameter; + /** + * Name of the NAT gateway for Secure Cluster Connectivity (No Public IP) workspace subnets. + */ + natGatewayName?: WorkspaceCustomStringParameter; + /** + * Name of the Public IP for No Public IP workspace with managed vNet. + */ + publicIpName?: WorkspaceCustomStringParameter; + /** + * Prepare the workspace for encryption. Enables the Managed Identity for managed storage + * account. + */ + prepareEncryption?: WorkspaceCustomBooleanParameter; + /** + * Contains the encryption details for Customer-Managed Key (CMK) enabled workspace. + */ + encryption?: WorkspaceEncryptionParameter; + /** + * A boolean indicating whether or not the DBFS root file system will be enabled with secondary + * layer of encryption with platform managed keys for data at rest. + */ + requireInfrastructureEncryption?: WorkspaceCustomBooleanParameter; + /** + * Default DBFS storage account name. + */ + storageAccountName?: WorkspaceCustomStringParameter; + /** + * Storage account SKU name, ex: Standard_GRS, Standard_LRS. Refer https://aka.ms/storageskus for + * valid inputs. + */ + storageAccountSkuName?: WorkspaceCustomStringParameter; + /** + * Address prefix for Managed virtual network. Default value for this input is 10.139. + */ + vnetAddressPrefix?: WorkspaceCustomStringParameter; + /** + * Tags applied to resources under Managed resource group. These can be updated by updating tags + * at workspace level. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceTags?: WorkspaceCustomObjectParameter; +} /** - * @interface - * An interface representing WorkspaceProviderAuthorization. * The workspace provider authorization. - * */ export interface WorkspaceProviderAuthorization { /** - * @member {string} principalId The provider's principal identifier. This is - * the identity that the provider will use to call ARM to manage the - * workspace resources. + * The provider's principal identifier. This is the identity that the provider will use to call + * ARM to manage the workspace resources. */ principalId: string; /** - * @member {string} roleDefinitionId The provider's role definition - * identifier. This role will define all the permissions that the provider - * must have on the workspace's container resource group. This role - * definition cannot have permission to delete the resource group. + * The provider's role definition identifier. This role will define all the permissions that the + * provider must have on the workspace's container resource group. This role definition cannot + * have permission to delete the resource group. */ roleDefinitionId: string; } /** - * @interface - * An interface representing Sku. + * Provides details of the entity that created/updated the workspace. + */ +export interface CreatedBy { + /** + * The Object ID that created the workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly oid?: string; + /** + * The Personal Object ID corresponding to the object ID above + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly puid?: string; + /** + * The application ID of the application that initiated the creation of the workspace. For + * example, Azure Portal. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly applicationId?: string; +} + +/** + * The Managed Identity details for storage account. + */ +export interface ManagedIdentityConfiguration { + /** + * The objectId of the Managed Identity that is linked to the Managed Storage account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The tenant Id where the Managed Identity is created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The type of Identity created. It can be either SystemAssigned or UserAssigned. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * Key Vault input properties for encryption. + */ +export interface EncryptionV2KeyVaultProperties { + /** + * The Uri of KeyVault. + */ + keyVaultUri: string; + /** + * The name of KeyVault key. + */ + keyName: string; + /** + * The version of KeyVault key. + */ + keyVersion: string; +} + +/** + * The object that contains details of encryption used on the workspace. + */ +export interface EncryptionV2 { + /** + * Key Vault input properties for encryption. + */ + keyVaultProperties?: EncryptionV2KeyVaultProperties; +} + +/** + * Encryption entities for databricks workspace resource. + */ +export interface EncryptionEntitiesDefinition { + /** + * Encryption properties for the databricks managed services. + */ + managedServices?: EncryptionV2; +} + +/** + * Encryption properties for databricks workspace + */ +export interface WorkspacePropertiesEncryption { + /** + * Encryption entities definition for the workspace. + */ + entities: EncryptionEntitiesDefinition; +} + +/** + * The private endpoint property of a private endpoint connection + */ +export interface PrivateEndpoint { + /** + * The resource identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; +} + +/** + * The current state of a private endpoint connection + */ +export interface PrivateLinkServiceConnectionState { + /** + * The status of a private endpoint connection. Possible values include: 'Pending', 'Approved', + * 'Rejected', 'Disconnected' + */ + status: PrivateLinkServiceConnectionStatus; + /** + * The description for the current state of a private endpoint connection + */ + description?: string; + /** + * Actions required for a private endpoint connection + */ + actionRequired?: string; +} + +/** + * The properties of a private endpoint connection + */ +export interface PrivateEndpointConnectionProperties { + /** + * Private endpoint. Private endpoint + */ + privateEndpoint?: PrivateEndpoint; + /** + * Private link service service connection state. Private endpoint connection state + */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + /** + * Provisioning state of the private endpoint connection. Possible values include: 'Succeeded', + * 'Creating', 'Updating', 'Deleting', 'Failed' + */ + provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +/** + * The private endpoint connection of a workspace + */ +export interface PrivateEndpointConnection extends BaseResource { + /** + * The resource identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The private endpoint connection properties. + */ + properties: PrivateEndpointConnectionProperties; +} + +/** * SKU for the resource. - * */ export interface Sku { /** - * @member {string} name The SKU name. + * The SKU name. */ name: string; /** - * @member {string} [tier] The SKU tier. + * The SKU tier. */ tier?: string; } /** - * @interface - * An interface representing Resource. + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + +/** * The core properties of ARM resources - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Fully qualified resource Id for the resource. Ex - + * 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.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The name of the resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The type of the resource. Ex- - * Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the resource. Ex- 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; } /** - * @interface - * An interface representing TrackedResource. * The resource model definition for a ARM tracked top level resource - * - * @extends Resource */ export interface TrackedResource extends Resource { /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * Resource tags. */ tags?: { [propertyName: string]: string }; /** - * @member {string} location The geo-location where the resource lives + * The geo-location where the resource lives */ location: string; } /** - * @interface - * An interface representing Workspace. * Information about workspace. - * - * @extends TrackedResource */ export interface Workspace extends TrackedResource { /** - * @member {string} managedResourceGroupId The managed resource group Id. + * The managed resource group Id. */ managedResourceGroupId: string; /** - * @member {any} [parameters] Name and value pairs that define the workspace - * parameters. + * The workspace's custom parameters. */ - parameters?: any; + parameters?: WorkspaceCustomParameters; /** - * @member {ProvisioningState} [provisioningState] The workspace provisioning - * state. Possible values include: 'Accepted', 'Running', 'Ready', - * 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', - * 'Succeeded', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The workspace provisioning state. Possible values include: 'Accepted', 'Running', 'Ready', + * 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [uiDefinitionUri] The blob URI where the UI definition - * file is located. + * The blob URI where the UI definition file is located. */ uiDefinitionUri?: string; /** - * @member {WorkspaceProviderAuthorization[]} [authorizations] The workspace - * provider authorizations. + * The workspace provider authorizations. */ authorizations?: WorkspaceProviderAuthorization[]; /** - * @member {Sku} [sku] The SKU of the resource. + * Indicates the Object ID, PUID and Application ID of entity that created the workspace. + */ + createdBy?: CreatedBy; + /** + * Indicates the Object ID, PUID and Application ID of entity that last updated the workspace. + */ + updatedBy?: CreatedBy; + /** + * Specifies the date and time when the workspace is created. + */ + createdDateTime?: Date; + /** + * The unique identifier of the databricks workspace in databricks control plane. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly workspaceId?: string; + /** + * The workspace URL which is of the format 'adb-{workspaceId}.{random}.azuredatabricks.net' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly workspaceUrl?: string; + /** + * The details of Managed Identity of Storage Account + */ + storageAccountIdentity?: ManagedIdentityConfiguration; + /** + * Encryption properties for databricks workspace + */ + encryption?: WorkspacePropertiesEncryption; + /** + * Private endpoint connections created on the workspace + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * The network access type for accessing workspace. Set value to disabled to access workspace + * only via private link. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * Gets or sets a value indicating whether data plane (clusters) to control plane communication + * happen over private endpoint. Supported values are 'AllRules' and 'NoAzureDatabricksRules'. + * 'NoAzureServiceRules' value is for internal use only. Possible values include: 'AllRules', + * 'NoAzureDatabricksRules', 'NoAzureServiceRules' + */ + requiredNsgRules?: RequiredNsgRules; + /** + * The SKU of the resource. */ sku?: Sku; + /** + * 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; +} + +/** + * An update to a workspace. + */ +export interface WorkspaceUpdate { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * An interface representing ErrorDetail. + * @summary Error details. + */ +export interface ErrorDetail { + /** + * The error's code. + */ + code: string; + /** + * A human readable error message. + */ + message: string; + /** + * Indicates which property in the request is responsible for the error. + */ + target?: string; } /** - * @interface - * An interface representing WorkspaceUpdate. - * An update to a workspace. - * + * An interface representing ErrorInfo. + * @summary The code and message for an error. + */ +export interface ErrorInfo { + /** + * A machine readable error code. + */ + code: string; + /** + * A human readable error message. + */ + message: string; + /** + * error details. + */ + details?: ErrorDetail[]; + /** + * Inner error details if they exist. + */ + innererror?: string; +} + +/** + * Contains details when the response code indicates an error. + * @summary Error response. + */ +export interface ErrorResponse { + /** + * The error details. + */ + error: ErrorInfo; +} + +/** + * The object that represents the operation. + */ +export interface OperationDisplay { + /** + * Service provider: Microsoft.ResourceProvider + */ + provider?: string; + /** + * Resource on which the operation is performed. + */ + resource?: string; + /** + * Operation type: Read, write, delete, etc. + */ + operation?: string; +} + +/** + * REST API operation + */ +export interface Operation { + /** + * Operation name: {provider}/{resource}/{operation} + */ + name?: string; + /** + * The object that represents the operation. + */ + display?: OperationDisplay; +} + +/** + * The properties for a group information object + */ +export interface GroupIdInformationProperties { + /** + * The group id + */ + groupId?: string; + /** + * The required members for a specific group id + */ + requiredMembers?: string[]; + /** + * The required DNS zones for a specific group id + */ + requiredZoneNames?: string[]; +} + +/** + * The group information for creating a private endpoint on a workspace + */ +export interface GroupIdInformation extends Resource { + /** + * The group id properties. + */ + properties: GroupIdInformationProperties; +} + +/** + * The remote virtual network should be in the same region. See here to learn more + * (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering). + */ +export interface VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork { + /** + * The Id of the databricks virtual network. + */ + id?: string; +} + +/** + * AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual + * network. + */ +export interface AddressSpace { + /** + * A list of address blocks reserved for this virtual network in CIDR notation. + */ + addressPrefixes?: string[]; +} + +/** + * The remote virtual network should be in the same region. See here to learn more + * (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering). + */ +export interface VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork { + /** + * The Id of the remote virtual network. + */ + id?: string; +} + +/** + * Peerings in a VirtualNetwork resource + */ +export interface VirtualNetworkPeering extends BaseResource { + /** + * Whether the VMs in the local virtual network space would be able to access the VMs in remote + * virtual network space. + */ + allowVirtualNetworkAccess?: boolean; + /** + * Whether the forwarded traffic from the VMs in the local virtual network will be + * allowed/disallowed in remote virtual network. + */ + allowForwardedTraffic?: boolean; + /** + * If gateway links can be used in remote virtual networking to link to this virtual network. + */ + allowGatewayTransit?: boolean; + /** + * If remote gateways can be used on this virtual network. If the flag is set to true, and + * allowGatewayTransit on remote peering is also true, virtual network will use gateways of + * remote virtual network for transit. Only one peering can have this flag set to true. This flag + * cannot be set if virtual network already has a gateway. + */ + useRemoteGateways?: boolean; + /** + * The remote virtual network should be in the same region. See here to learn more + * (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering). + */ + databricksVirtualNetwork?: VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork; + /** + * The reference to the databricks virtual network address space. + */ + databricksAddressSpace?: AddressSpace; + /** + * The remote virtual network should be in the same region. See here to learn more + * (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering). + */ + remoteVirtualNetwork: VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork; + /** + * The reference to the remote virtual network address space. + */ + remoteAddressSpace?: AddressSpace; + /** + * The status of the virtual network peering. Possible values include: 'Initiated', 'Connected', + * 'Disconnected' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly peeringState?: PeeringState; + /** + * The provisioning state of the virtual network peering resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: PeeringProvisioningState; + /** + * Name of the virtual network peering resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * type of the virtual network peering resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * An interface representing AzureDatabricksManagementClientOptions. + */ +export interface AzureDatabricksManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * List of workspaces. + * @extends Array + */ +export interface WorkspaceListResult extends Array { + /** + * The URL to use for getting the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * Result of the request to list Resource Provider operations. It contains a list of operations and + * a 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. + */ + nextLink?: string; +} + +/** + * @interface + * The available private link resources for a workspace + * @extends Array + */ +export interface PrivateLinkResourcesList extends Array { + /** + * The URL to get the next set of private link resources. + */ + nextLink?: string; +} + +/** + * @interface + * List of private link connections. + * @extends Array + */ +export interface PrivateEndpointConnectionsList extends Array { + /** + * The URL to get the next set of endpoint connections. + */ + nextLink?: string; +} + +/** + * @interface + * Gets all virtual network peerings under a workspace. + * @extends Array + */ +export interface VirtualNetworkPeeringList extends Array { + /** + * URL to get the next set of virtual network peering list results if there are any. + */ + nextLink?: string; +} + +/** + * Defines values for CustomParameterType. + * Possible values include: 'Bool', 'Object', 'String' + * @readonly + * @enum {string} + */ +export type CustomParameterType = 'Bool' | 'Object' | 'String'; + +/** + * Defines values for KeySource. + * Possible values include: 'Default', 'Microsoft.Keyvault' + * @readonly + * @enum {string} + */ +export type KeySource = 'Default' | 'Microsoft.Keyvault'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', + * 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Accepted' | 'Running' | 'Ready' | 'Creating' | 'Created' | 'Deleting' | 'Deleted' | 'Canceled' | 'Failed' | 'Succeeded' | 'Updating'; + +/** + * Defines values for PrivateLinkServiceConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' + * @readonly + * @enum {string} + */ +export type PrivateLinkServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected'; + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Creating', 'Updating', 'Deleting', 'Failed' + * @readonly + * @enum {string} + */ +export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Updating' | 'Deleting' | 'Failed'; + +/** + * Defines values for PublicNetworkAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PublicNetworkAccess = 'Enabled' | 'Disabled'; + +/** + * Defines values for RequiredNsgRules. + * Possible values include: 'AllRules', 'NoAzureDatabricksRules', 'NoAzureServiceRules' + * @readonly + * @enum {string} + */ +export type RequiredNsgRules = 'AllRules' | 'NoAzureDatabricksRules' | 'NoAzureServiceRules'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for PeeringProvisioningState. + * Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + * @readonly + * @enum {string} + */ +export type PeeringProvisioningState = 'Succeeded' | 'Updating' | 'Deleting' | 'Failed'; + +/** + * Defines values for PeeringState. + * Possible values include: 'Initiated', 'Connected', 'Disconnected' + * @readonly + * @enum {string} + */ +export type PeeringState = 'Initiated' | 'Connected' | 'Disconnected'; + +/** + * Contains response data for the get operation. + */ +export type WorkspacesGetResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type WorkspacesCreateOrUpdateResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type WorkspacesUpdateResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { + /** + * 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: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { + /** + * 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: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. */ -export interface WorkspaceUpdate { +export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * The underlying HTTP response. */ - tags?: { [propertyName: string]: string }; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * An interface representing ErrorDetail. - * @summary Error details. - * - */ -export interface ErrorDetail { - /** - * @member {string} code The error's code. - */ - code: string; - /** - * @member {string} message A human readable error message. - */ - message: string; - /** - * @member {string} [target] Indicates which property in the request is - * responsible for the error. - */ - target?: string; -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; /** - * @interface - * An interface representing ErrorInfo. - * @summary The code and message for an error. - * + * Contains response data for the beginUpdate operation. */ -export interface ErrorInfo { - /** - * @member {string} code A machine readable error code. - */ - code: string; - /** - * @member {string} message A human readable error message. - */ - message: string; - /** - * @member {ErrorDetail[]} [details] error details. - */ - details?: ErrorDetail[]; +export type WorkspacesBeginUpdateResponse = Workspace & { /** - * @member {string} [innererror] Inner error details if they exist. + * The underlying HTTP response. */ - innererror?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; /** - * @interface - * An interface representing ErrorResponse. - * @summary Error response. - * - * Contains details when the response code indicates an error. - * + * Contains response data for the listByResourceGroupNext operation. */ -export interface ErrorResponse { +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { /** - * @member {ErrorInfo} error The error details. + * The underlying HTTP response. */ - error: ErrorInfo; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; /** - * @interface - * An interface representing OperationDisplay. - * The object that represents the operation. - * + * Contains response data for the listBySubscriptionNext operation. */ -export interface OperationDisplay { - /** - * @member {string} [provider] Service provider: Microsoft.ResourceProvider - */ - provider?: string; - /** - * @member {string} [resource] Resource on which the operation is performed. - */ - resource?: string; +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { /** - * @member {string} [operation] Operation type: Read, write, delete, etc. + * The underlying HTTP response. */ - operation?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; /** - * @interface - * An interface representing Operation. - * REST API operation - * + * Contains response data for the list operation. */ -export interface Operation { - /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} - */ - name?: string; +export type OperationsListResponse = OperationListResult & { /** - * @member {OperationDisplay} [display] The object that represents the - * operation. + * The underlying HTTP response. */ - display?: OperationDisplay; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; /** - * @interface - * An interface representing DatabricksClientOptions. - * @extends AzureServiceClientOptions + * Contains response data for the listNext operation. */ -export interface DatabricksClientOptions extends AzureServiceClientOptions { +export type OperationsListNextResponse = OperationListResult & { /** - * @member {string} [baseUri] + * The underlying HTTP response. */ - baseUri?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; /** - * @interface - * An interface representing the WorkspaceListResult. - * List of workspaces. - * - * @extends Array + * Contains response data for the list operation. */ -export interface WorkspaceListResult extends Array { +export type PrivateLinkResourcesListResponse = PrivateLinkResourcesList & { /** - * @member {string} [nextLink] The URL to use for getting the next set of - * results. + * The underlying HTTP response. */ - nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResourcesList; + }; +}; /** - * @interface - * An interface representing the OperationListResult. - * Result of the request to list Resource Provider operations. It contains a - * list of operations and a URL link to get the next set of results. - * - * @extends Array + * Contains response data for the get operation. */ -export interface OperationListResult extends Array { +export type PrivateLinkResourcesGetResponse = GroupIdInformation & { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. + * The underlying HTTP response. */ - nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ProvisioningState. - * Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', - * 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' - * @readonly - * @enum {string} - */ -export type ProvisioningState = 'Accepted' | 'Running' | 'Ready' | 'Creating' | 'Created' | 'Deleting' | 'Deleted' | 'Canceled' | 'Failed' | 'Succeeded' | 'Updating'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GroupIdInformation; + }; +}; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type WorkspacesGetResponse = Workspace & { +export type PrivateLinkResourcesListNextResponse = PrivateLinkResourcesList & { /** * The underlying HTTP response. */ @@ -322,17 +1166,18 @@ export type WorkspacesGetResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: PrivateLinkResourcesList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace & { +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionsList & { /** * The underlying HTTP response. */ @@ -341,17 +1186,18 @@ export type WorkspacesCreateOrUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: PrivateEndpointConnectionsList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type WorkspacesUpdateResponse = Workspace & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -360,17 +1206,18 @@ export type WorkspacesUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the create operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { +export type PrivateEndpointConnectionsCreateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -379,17 +1226,18 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the beginCreate operation. */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { +export type PrivateEndpointConnectionsBeginCreateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -398,17 +1246,18 @@ export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listNext operation. */ -export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { +export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionsList & { /** * The underlying HTTP response. */ @@ -417,17 +1266,18 @@ export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: PrivateEndpointConnectionsList; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type WorkspacesBeginUpdateResponse = Workspace & { +export type VNetPeeringGetResponse = VirtualNetworkPeering & { /** * The underlying HTTP response. */ @@ -436,17 +1286,18 @@ export type WorkspacesBeginUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: VirtualNetworkPeering; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the createOrUpdate operation. */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { +export type VNetPeeringCreateOrUpdateResponse = VirtualNetworkPeering & { /** * The underlying HTTP response. */ @@ -455,17 +1306,18 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: VirtualNetworkPeering; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listByWorkspace operation. */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { +export type VNetPeeringListByWorkspaceResponse = VirtualNetworkPeeringList & { /** * The underlying HTTP response. */ @@ -474,17 +1326,18 @@ export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: VirtualNetworkPeeringList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type OperationsListResponse = OperationListResult & { +export type VNetPeeringBeginCreateOrUpdateResponse = VirtualNetworkPeering & { /** * The underlying HTTP response. */ @@ -493,17 +1346,18 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: VirtualNetworkPeering; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByWorkspaceNext operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type VNetPeeringListByWorkspaceNextResponse = VirtualNetworkPeeringList & { /** * The underlying HTTP response. */ @@ -512,9 +1366,10 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: VirtualNetworkPeeringList; }; }; diff --git a/sdk/databricks/arm-databricks/src/models/mappers.ts b/sdk/databricks/arm-databricks/src/models/mappers.ts index 8d5caa24faef..ccaf8f4e0995 100644 --- a/sdk/databricks/arm-databricks/src/models/mappers.ts +++ b/sdk/databricks/arm-databricks/src/models/mappers.ts @@ -1,11 +1,9 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -14,6 +12,256 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; +export const WorkspaceCustomStringParameter: msRest.CompositeMapper = { + serializedName: "WorkspaceCustomStringParameter", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceCustomBooleanParameter: msRest.CompositeMapper = { + serializedName: "WorkspaceCustomBooleanParameter", + type: { + name: "Composite", + className: "WorkspaceCustomBooleanParameter", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "value", + type: { + name: "Boolean" + } + } + } + } +}; + +export const Encryption: msRest.CompositeMapper = { + serializedName: "Encryption", + type: { + name: "Composite", + className: "Encryption", + modelProperties: { + keySource: { + serializedName: "keySource", + defaultValue: 'Default', + type: { + name: "String" + } + }, + keyName: { + serializedName: "KeyName", + type: { + name: "String" + } + }, + keyVersion: { + serializedName: "keyversion", + type: { + name: "String" + } + }, + keyVaultUri: { + serializedName: "keyvaulturi", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceEncryptionParameter: msRest.CompositeMapper = { + serializedName: "WorkspaceEncryptionParameter", + type: { + name: "Composite", + className: "WorkspaceEncryptionParameter", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Composite", + className: "Encryption" + } + } + } + } +}; + +export const WorkspaceCustomObjectParameter: msRest.CompositeMapper = { + serializedName: "WorkspaceCustomObjectParameter", + type: { + name: "Composite", + className: "WorkspaceCustomObjectParameter", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "value", + type: { + name: "Object" + } + } + } + } +}; + +export const WorkspaceCustomParameters: msRest.CompositeMapper = { + serializedName: "WorkspaceCustomParameters", + type: { + name: "Composite", + className: "WorkspaceCustomParameters", + modelProperties: { + amlWorkspaceId: { + serializedName: "amlWorkspaceId", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + customVirtualNetworkId: { + serializedName: "customVirtualNetworkId", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + customPublicSubnetName: { + serializedName: "customPublicSubnetName", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + customPrivateSubnetName: { + serializedName: "customPrivateSubnetName", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + enableNoPublicIp: { + serializedName: "enableNoPublicIp", + type: { + name: "Composite", + className: "WorkspaceCustomBooleanParameter" + } + }, + loadBalancerBackendPoolName: { + serializedName: "loadBalancerBackendPoolName", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + loadBalancerId: { + serializedName: "loadBalancerId", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + natGatewayName: { + serializedName: "natGatewayName", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + publicIpName: { + serializedName: "publicIpName", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + prepareEncryption: { + serializedName: "prepareEncryption", + type: { + name: "Composite", + className: "WorkspaceCustomBooleanParameter" + } + }, + encryption: { + serializedName: "encryption", + type: { + name: "Composite", + className: "WorkspaceEncryptionParameter" + } + }, + requireInfrastructureEncryption: { + serializedName: "requireInfrastructureEncryption", + type: { + name: "Composite", + className: "WorkspaceCustomBooleanParameter" + } + }, + storageAccountName: { + serializedName: "storageAccountName", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + storageAccountSkuName: { + serializedName: "storageAccountSkuName", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + vnetAddressPrefix: { + serializedName: "vnetAddressPrefix", + type: { + name: "Composite", + className: "WorkspaceCustomStringParameter" + } + }, + resourceTags: { + readOnly: true, + serializedName: "resourceTags", + type: { + name: "Composite", + className: "WorkspaceCustomObjectParameter" + } + } + } + } +}; + export const WorkspaceProviderAuthorization: msRest.CompositeMapper = { serializedName: "WorkspaceProviderAuthorization", type: { @@ -38,6 +286,277 @@ export const WorkspaceProviderAuthorization: msRest.CompositeMapper = { } }; +export const CreatedBy: msRest.CompositeMapper = { + serializedName: "CreatedBy", + type: { + name: "Composite", + className: "CreatedBy", + modelProperties: { + oid: { + readOnly: true, + serializedName: "oid", + type: { + name: "Uuid" + } + }, + puid: { + readOnly: true, + serializedName: "puid", + type: { + name: "String" + } + }, + applicationId: { + readOnly: true, + serializedName: "applicationId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const ManagedIdentityConfiguration: msRest.CompositeMapper = { + serializedName: "ManagedIdentityConfiguration", + type: { + name: "Composite", + className: "ManagedIdentityConfiguration", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "Uuid" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "Uuid" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const EncryptionV2KeyVaultProperties: msRest.CompositeMapper = { + serializedName: "EncryptionV2_keyVaultProperties", + type: { + name: "Composite", + className: "EncryptionV2KeyVaultProperties", + modelProperties: { + keyVaultUri: { + required: true, + serializedName: "keyVaultUri", + type: { + name: "String" + } + }, + keyName: { + required: true, + serializedName: "keyName", + type: { + name: "String" + } + }, + keyVersion: { + required: true, + serializedName: "keyVersion", + type: { + name: "String" + } + } + } + } +}; + +export const EncryptionV2: msRest.CompositeMapper = { + serializedName: "EncryptionV2", + type: { + name: "Composite", + className: "EncryptionV2", + modelProperties: { + keySource: { + required: true, + isConstant: true, + serializedName: "keySource", + defaultValue: 'Microsoft.Keyvault', + type: { + name: "String" + } + }, + keyVaultProperties: { + serializedName: "keyVaultProperties", + type: { + name: "Composite", + className: "EncryptionV2KeyVaultProperties" + } + } + } + } +}; + +export const EncryptionEntitiesDefinition: msRest.CompositeMapper = { + serializedName: "EncryptionEntitiesDefinition", + type: { + name: "Composite", + className: "EncryptionEntitiesDefinition", + modelProperties: { + managedServices: { + serializedName: "managedServices", + type: { + name: "Composite", + className: "EncryptionV2" + } + } + } + } +}; + +export const WorkspacePropertiesEncryption: msRest.CompositeMapper = { + serializedName: "WorkspaceProperties_encryption", + type: { + name: "Composite", + className: "WorkspacePropertiesEncryption", + modelProperties: { + entities: { + required: true, + serializedName: "entities", + defaultValue: {}, + type: { + name: "Composite", + className: "EncryptionEntitiesDefinition" + } + } + } + } +}; + +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionRequired: { + serializedName: "actionRequired", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionProperties: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionProperties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + privateEndpoint: { + serializedName: "privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + required: true, + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties" + } + } + } + } +}; + export const Sku: msRest.CompositeMapper = { serializedName: "Sku", type: { @@ -61,6 +580,52 @@ export const Sku: msRest.CompositeMapper = { } }; +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + export const Resource: msRest.CompositeMapper = { serializedName: "Resource", type: { @@ -135,43 +700,125 @@ export const Workspace: msRest.CompositeMapper = { name: "String" } }, - parameters: { - serializedName: "properties.parameters", + parameters: { + serializedName: "properties.parameters", + type: { + name: "Composite", + className: "WorkspaceCustomParameters" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uiDefinitionUri: { + serializedName: "properties.uiDefinitionUri", + type: { + name: "String" + } + }, + authorizations: { + serializedName: "properties.authorizations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceProviderAuthorization" + } + } + } + }, + createdBy: { + serializedName: "properties.createdBy", + type: { + name: "Composite", + className: "CreatedBy" + } + }, + updatedBy: { + serializedName: "properties.updatedBy", + type: { + name: "Composite", + className: "CreatedBy" + } + }, + createdDateTime: { + serializedName: "properties.createdDateTime", + type: { + name: "DateTime" + } + }, + workspaceId: { + readOnly: true, + serializedName: "properties.workspaceId", + type: { + name: "String" + } + }, + workspaceUrl: { + readOnly: true, + serializedName: "properties.workspaceUrl", type: { - name: "Object" + name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + storageAccountIdentity: { + serializedName: "properties.storageAccountIdentity", type: { - name: "String" + name: "Composite", + className: "ManagedIdentityConfiguration" } }, - uiDefinitionUri: { - serializedName: "properties.uiDefinitionUri", + encryption: { + serializedName: "properties.encryption", type: { - name: "String" + name: "Composite", + className: "WorkspacePropertiesEncryption" } }, - authorizations: { - serializedName: "properties.authorizations", + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", type: { name: "Sequence", element: { type: { name: "Composite", - className: "WorkspaceProviderAuthorization" + className: "PrivateEndpointConnection" } } } }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + requiredNsgRules: { + serializedName: "properties.requiredNsgRules", + type: { + name: "String" + } + }, sku: { serializedName: "sku", type: { name: "Composite", className: "Sku" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -339,6 +986,214 @@ export const Operation: msRest.CompositeMapper = { } }; +export const GroupIdInformationProperties: msRest.CompositeMapper = { + serializedName: "GroupIdInformationProperties", + type: { + name: "Composite", + className: "GroupIdInformationProperties", + modelProperties: { + groupId: { + serializedName: "groupId", + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const GroupIdInformation: msRest.CompositeMapper = { + serializedName: "GroupIdInformation", + type: { + name: "Composite", + className: "GroupIdInformation", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "GroupIdInformationProperties" + } + } + } + } +}; + +export const VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork: msRest.CompositeMapper = { + serializedName: "VirtualNetworkPeeringPropertiesFormat_databricksVirtualNetwork", + type: { + name: "Composite", + className: "VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const AddressSpace: msRest.CompositeMapper = { + serializedName: "AddressSpace", + type: { + name: "Composite", + className: "AddressSpace", + modelProperties: { + addressPrefixes: { + serializedName: "addressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork: msRest.CompositeMapper = { + serializedName: "VirtualNetworkPeeringPropertiesFormat_remoteVirtualNetwork", + type: { + name: "Composite", + className: "VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkPeering: msRest.CompositeMapper = { + serializedName: "VirtualNetworkPeering", + type: { + name: "Composite", + className: "VirtualNetworkPeering", + modelProperties: { + allowVirtualNetworkAccess: { + serializedName: "properties.allowVirtualNetworkAccess", + type: { + name: "Boolean" + } + }, + allowForwardedTraffic: { + serializedName: "properties.allowForwardedTraffic", + type: { + name: "Boolean" + } + }, + allowGatewayTransit: { + serializedName: "properties.allowGatewayTransit", + type: { + name: "Boolean" + } + }, + useRemoteGateways: { + serializedName: "properties.useRemoteGateways", + type: { + name: "Boolean" + } + }, + databricksVirtualNetwork: { + serializedName: "properties.databricksVirtualNetwork", + type: { + name: "Composite", + className: "VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork" + } + }, + databricksAddressSpace: { + serializedName: "properties.databricksAddressSpace", + type: { + name: "Composite", + className: "AddressSpace" + } + }, + remoteVirtualNetwork: { + required: true, + serializedName: "properties.remoteVirtualNetwork", + type: { + name: "Composite", + className: "VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork" + } + }, + remoteAddressSpace: { + serializedName: "properties.remoteAddressSpace", + type: { + name: "Composite", + className: "AddressSpace" + } + }, + peeringState: { + readOnly: true, + serializedName: "properties.peeringState", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + export const WorkspaceListResult: msRest.CompositeMapper = { serializedName: "WorkspaceListResult", type: { @@ -394,3 +1249,87 @@ export const OperationListResult: msRest.CompositeMapper = { } } }; + +export const PrivateLinkResourcesList: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourcesList", + type: { + name: "Composite", + className: "PrivateLinkResourcesList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupIdInformation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionsList: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionsList", + type: { + name: "Composite", + className: "PrivateEndpointConnectionsList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkPeeringList: msRest.CompositeMapper = { + serializedName: "VirtualNetworkPeeringList", + type: { + name: "Composite", + className: "VirtualNetworkPeeringList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkPeering" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/databricks/arm-databricks/src/models/operationsMappers.ts b/sdk/databricks/arm-databricks/src/models/operationsMappers.ts index ca1587789d15..872cb56fb0bd 100644 --- a/sdk/databricks/arm-databricks/src/models/operationsMappers.ts +++ b/sdk/databricks/arm-databricks/src/models/operationsMappers.ts @@ -1,19 +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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationListResult, + ErrorDetail, + ErrorInfo, + ErrorResponse, Operation, OperationDisplay, - ErrorResponse, - ErrorInfo, - ErrorDetail + OperationListResult } from "../models/mappers"; - diff --git a/sdk/databricks/arm-databricks/src/models/parameters.ts b/sdk/databricks/arm-databricks/src/models/parameters.ts index 0ebe5bdcaaa5..098101132b68 100644 --- a/sdk/databricks/arm-databricks/src/models/parameters.ts +++ b/sdk/databricks/arm-databricks/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 @@ -20,11 +19,35 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; -export const apiVersion: msRest.OperationQueryParameter = { +export const apiVersion0: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, + isConstant: true, serializedName: "api-version", + defaultValue: '2021-04-01-preview', + type: { + name: "String" + } + } +}; +export const apiVersion1: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2018-04-01', + type: { + name: "String" + } + } +}; +export const groupId: msRest.OperationURLParameter = { + parameterPath: "groupId", + mapper: { + required: true, + serializedName: "groupId", type: { name: "String" } @@ -41,6 +64,26 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const peeringName: msRest.OperationURLParameter = { + parameterPath: "peeringName", + mapper: { + required: true, + serializedName: "peeringName", + type: { + name: "String" + } + } +}; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { diff --git a/sdk/databricks/arm-databricks/src/models/privateEndpointConnectionsMappers.ts b/sdk/databricks/arm-databricks/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..7fb8e87c2230 --- /dev/null +++ b/sdk/databricks/arm-databricks/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,43 @@ +/* + * 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 { + AddressSpace, + BaseResource, + CreatedBy, + Encryption, + EncryptionEntitiesDefinition, + EncryptionV2, + EncryptionV2KeyVaultProperties, + ErrorDetail, + ErrorInfo, + ErrorResponse, + GroupIdInformation, + GroupIdInformationProperties, + ManagedIdentityConfiguration, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionsList, + PrivateLinkServiceConnectionState, + Resource, + Sku, + SystemData, + TrackedResource, + VirtualNetworkPeering, + VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork, + VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork, + Workspace, + WorkspaceCustomBooleanParameter, + WorkspaceCustomObjectParameter, + WorkspaceCustomParameters, + WorkspaceCustomStringParameter, + WorkspaceEncryptionParameter, + WorkspacePropertiesEncryption, + WorkspaceProviderAuthorization +} from "../models/mappers"; diff --git a/sdk/databricks/arm-databricks/src/models/privateLinkResourcesMappers.ts b/sdk/databricks/arm-databricks/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..1bc4c5b4b2c7 --- /dev/null +++ b/sdk/databricks/arm-databricks/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,43 @@ +/* + * 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 { + AddressSpace, + BaseResource, + CreatedBy, + Encryption, + EncryptionEntitiesDefinition, + EncryptionV2, + EncryptionV2KeyVaultProperties, + ErrorDetail, + ErrorInfo, + ErrorResponse, + GroupIdInformation, + GroupIdInformationProperties, + ManagedIdentityConfiguration, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkResourcesList, + PrivateLinkServiceConnectionState, + Resource, + Sku, + SystemData, + TrackedResource, + VirtualNetworkPeering, + VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork, + VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork, + Workspace, + WorkspaceCustomBooleanParameter, + WorkspaceCustomObjectParameter, + WorkspaceCustomParameters, + WorkspaceCustomStringParameter, + WorkspaceEncryptionParameter, + WorkspacePropertiesEncryption, + WorkspaceProviderAuthorization +} from "../models/mappers"; diff --git a/sdk/databricks/arm-databricks/src/models/vNetPeeringMappers.ts b/sdk/databricks/arm-databricks/src/models/vNetPeeringMappers.ts new file mode 100644 index 000000000000..86dc085e6743 --- /dev/null +++ b/sdk/databricks/arm-databricks/src/models/vNetPeeringMappers.ts @@ -0,0 +1,43 @@ +/* + * 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 { + AddressSpace, + BaseResource, + CreatedBy, + Encryption, + EncryptionEntitiesDefinition, + EncryptionV2, + EncryptionV2KeyVaultProperties, + ErrorDetail, + ErrorInfo, + ErrorResponse, + GroupIdInformation, + GroupIdInformationProperties, + ManagedIdentityConfiguration, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkServiceConnectionState, + Resource, + Sku, + SystemData, + TrackedResource, + VirtualNetworkPeering, + VirtualNetworkPeeringList, + VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork, + VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork, + Workspace, + WorkspaceCustomBooleanParameter, + WorkspaceCustomObjectParameter, + WorkspaceCustomParameters, + WorkspaceCustomStringParameter, + WorkspaceEncryptionParameter, + WorkspacePropertiesEncryption, + WorkspaceProviderAuthorization +} from "../models/mappers"; diff --git a/sdk/databricks/arm-databricks/src/models/workspacesMappers.ts b/sdk/databricks/arm-databricks/src/models/workspacesMappers.ts index e6f592d4a993..d1896d68580b 100644 --- a/sdk/databricks/arm-databricks/src/models/workspacesMappers.ts +++ b/sdk/databricks/arm-databricks/src/models/workspacesMappers.ts @@ -1,24 +1,44 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - Workspace, - TrackedResource, - Resource, + AddressSpace, BaseResource, - WorkspaceProviderAuthorization, - Sku, - ErrorResponse, - ErrorInfo, + CreatedBy, + Encryption, + EncryptionEntitiesDefinition, + EncryptionV2, + EncryptionV2KeyVaultProperties, ErrorDetail, - WorkspaceUpdate, - WorkspaceListResult + ErrorInfo, + ErrorResponse, + GroupIdInformation, + GroupIdInformationProperties, + ManagedIdentityConfiguration, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateLinkServiceConnectionState, + Resource, + Sku, + SystemData, + TrackedResource, + VirtualNetworkPeering, + VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork, + VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork, + Workspace, + WorkspaceCustomBooleanParameter, + WorkspaceCustomObjectParameter, + WorkspaceCustomParameters, + WorkspaceCustomStringParameter, + WorkspaceEncryptionParameter, + WorkspaceListResult, + WorkspacePropertiesEncryption, + WorkspaceProviderAuthorization, + WorkspaceUpdate } from "../models/mappers"; - diff --git a/sdk/databricks/arm-databricks/src/operations/index.ts b/sdk/databricks/arm-databricks/src/operations/index.ts index 74640cd56b69..06215340107a 100644 --- a/sdk/databricks/arm-databricks/src/operations/index.ts +++ b/sdk/databricks/arm-databricks/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,3 +9,6 @@ export * from "./workspaces"; export * from "./operations"; +export * from "./privateLinkResources"; +export * from "./privateEndpointConnections"; +export * from "./vNetPeering"; diff --git a/sdk/databricks/arm-databricks/src/operations/operations.ts b/sdk/databricks/arm-databricks/src/operations/operations.ts index 69151b9b3e14..ee8855264031 100644 --- a/sdk/databricks/arm-databricks/src/operations/operations.ts +++ b/sdk/databricks/arm-databricks/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 @@ -12,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/operationsMappers"; import * as Parameters from "../models/parameters"; -import { DatabricksClientContext } from "../databricksClientContext"; +import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext"; /** Class representing a Operations. */ export class Operations { - private readonly client: DatabricksClientContext; + private readonly client: AzureDatabricksManagementClientContext; /** * Create a Operations. - * @param {DatabricksClientContext} client Reference to the service client. + * @param {AzureDatabricksManagementClientContext} client Reference to the service client. */ - constructor(client: DatabricksClientContext) { + constructor(client: AzureDatabricksManagementClientContext) { this.client = client; } @@ -85,7 +84,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Databricks/operations", queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databricks/arm-databricks/src/operations/privateEndpointConnections.ts b/sdk/databricks/arm-databricks/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..157402cae6aa --- /dev/null +++ b/sdk/databricks/arm-databricks/src/operations/privateEndpointConnections.ts @@ -0,0 +1,339 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * 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/privateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: AzureDatabricksManagementClientContext; + + /** + * Create a PrivateEndpointConnections. + * @param {AzureDatabricksManagementClientContext} client Reference to the service client. + */ + constructor(client: AzureDatabricksManagementClientContext) { + this.client = client; + } + + /** + * List private endpoint connections of the workspace + * @summary List private endpoint connections + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a private endpoint connection properties for a workspace + * @summary Get private endpoint connection + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update the status of a private endpoint connection with the specified name + * @summary Update private endpoint connection status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param privateEndpointConnection The private endpoint connection with updated properties + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,workspaceName,privateEndpointConnectionName,privateEndpointConnection,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Remove private endpoint connection with the specified name + * @summary Remove private endpoint connection + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,workspaceName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Update the status of a private endpoint connection with the specified name + * @summary Update private endpoint connection status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param privateEndpointConnection The private endpoint connection with updated properties + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + privateEndpointConnection, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Remove private endpoint connection with the specified name + * @summary Remove private endpoint connection + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List private endpoint connections of the workspace + * @summary List private endpoint connections + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionsList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "privateEndpointConnection", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + 202: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + 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.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionsList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/databricks/arm-databricks/src/operations/privateLinkResources.ts b/sdk/databricks/arm-databricks/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..70ff1d3234d8 --- /dev/null +++ b/sdk/databricks/arm-databricks/src/operations/privateLinkResources.ts @@ -0,0 +1,203 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: AzureDatabricksManagementClientContext; + + /** + * Create a PrivateLinkResources. + * @param {AzureDatabricksManagementClientContext} client Reference to the service client. + */ + constructor(client: AzureDatabricksManagementClientContext) { + this.client = client; + } + + /** + * List private link resources for a given workspace + * @summary List private link resources + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get the specified private link resource for the given group id (sub-resource) + * @summary Get the specified private link resource + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param groupId The name of the private link resource + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, groupId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param groupId The name of the private link resource + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, groupId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param groupId The name of the private link resource + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + groupId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List private link resources for a given workspace + * @summary List private link resources + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourcesList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId, + Parameters.groupId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GroupIdInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourcesList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/databricks/arm-databricks/src/operations/vNetPeering.ts b/sdk/databricks/arm-databricks/src/operations/vNetPeering.ts new file mode 100644 index 000000000000..7d36413fb6be --- /dev/null +++ b/sdk/databricks/arm-databricks/src/operations/vNetPeering.ts @@ -0,0 +1,333 @@ +/* + * 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/vNetPeeringMappers"; +import * as Parameters from "../models/parameters"; +import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext"; + +/** Class representing a VNetPeering. */ +export class VNetPeering { + private readonly client: AzureDatabricksManagementClientContext; + + /** + * Create a VNetPeering. + * @param {AzureDatabricksManagementClientContext} client Reference to the service client. + */ + constructor(client: AzureDatabricksManagementClientContext) { + this.client = client; + } + + /** + * Gets the workspace vNet Peering. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param peeringName The name of the workspace vNet peering. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, peeringName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param peeringName The name of the workspace vNet peering. + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, peeringName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param peeringName The name of the workspace vNet peering. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, peeringName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, peeringName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + peeringName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the workspace vNetPeering. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param peeringName The name of the workspace vNet peering. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceName: string, peeringName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,workspaceName,peeringName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Creates vNet Peering for workspace. + * @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param peeringName The name of the workspace vNet peering. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(virtualNetworkPeeringParameters: Models.VirtualNetworkPeering, resourceGroupName: string, workspaceName: string, peeringName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(virtualNetworkPeeringParameters,resourceGroupName,workspaceName,peeringName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Lists the workspace vNet Peerings. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param callback The callback + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The optional parameters + * @param callback The callback + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listByWorkspaceOperationSpec, + callback) as Promise; + } + + /** + * Deletes the workspace vNetPeering. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param peeringName The name of the workspace vNet peering. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, workspaceName: string, peeringName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + peeringName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates vNet Peering for workspace. + * @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param peeringName The name of the workspace vNet peering. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(virtualNetworkPeeringParameters: Models.VirtualNetworkPeering, resourceGroupName: string, workspaceName: string, peeringName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + virtualNetworkPeeringParameters, + resourceGroupName, + workspaceName, + peeringName, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Lists the workspace vNet Peerings. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByWorkspaceNext(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 + */ + listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByWorkspaceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId, + Parameters.peeringName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkPeering + }, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByWorkspaceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkPeeringList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId, + Parameters.peeringName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId, + Parameters.peeringName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "virtualNetworkPeeringParameters", + mapper: { + ...Mappers.VirtualNetworkPeering, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkPeering + }, + 201: { + bodyMapper: Mappers.VirtualNetworkPeering + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkPeeringList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/databricks/arm-databricks/src/operations/workspaces.ts b/sdk/databricks/arm-databricks/src/operations/workspaces.ts index df498c59fb03..57faea6c5ebc 100644 --- a/sdk/databricks/arm-databricks/src/operations/workspaces.ts +++ b/sdk/databricks/arm-databricks/src/operations/workspaces.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 @@ -13,17 +12,17 @@ import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/workspacesMappers"; import * as Parameters from "../models/parameters"; -import { DatabricksClientContext } from "../databricksClientContext"; +import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext"; /** Class representing a Workspaces. */ export class Workspaces { - private readonly client: DatabricksClientContext; + private readonly client: AzureDatabricksManagementClientContext; /** * Create a Workspaces. - * @param {DatabricksClientContext} client Reference to the service client. + * @param {AzureDatabricksManagementClientContext} client Reference to the service client. */ - constructor(client: DatabricksClientContext) { + constructor(client: AzureDatabricksManagementClientContext) { this.client = client; } @@ -275,7 +274,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -284,7 +283,6 @@ const getOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.Workspace }, - 404: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -300,7 +298,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -323,7 +321,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -348,12 +346,13 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { @@ -372,7 +371,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -407,7 +406,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -438,6 +437,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -459,6 +461,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databricks/arm-databricks/tsconfig.json b/sdk/databricks/arm-databricks/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/databricks/arm-databricks/tsconfig.json +++ b/sdk/databricks/arm-databricks/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true diff --git a/sdk/hybridkubernetes/arm-hybridkubernetes/README.md b/sdk/hybridkubernetes/arm-hybridkubernetes/README.md index a0c8d66fe7c2..25de805c58a1 100644 --- a/sdk/hybridkubernetes/arm-hybridkubernetes/README.md +++ b/sdk/hybridkubernetes/arm-hybridkubernetes/README.md @@ -1,93 +1,103 @@ ## Azure ConnectedKubernetesClient SDK for JavaScript -This package contains an isomorphic SDK for ConnectedKubernetesClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ConnectedKubernetesClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-hybridkubernetes` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-hybridkubernetes +npm install --save @azure/arm-hybridkubernetes @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. + ### How to use -#### nodejs - client creation and get connectedCluster as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get connectedCluster as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { ConnectedKubernetesClient } = require("@azure/arm-hybridkubernetes"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ConnectedKubernetesClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const clusterName = "testclusterName"; - client.connectedCluster.get(resourceGroupName, clusterName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ConnectedKubernetesClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const clusterName = "testclusterName"; +client.connectedCluster.get(resourceGroupName, clusterName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get connectedCluster as an example written in JavaScript. +#### browser - Authentication, client creation, and get connectedCluster as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-hybridkubernetes sample - - + diff --git a/sdk/hybridkubernetes/arm-hybridkubernetes/package.json b/sdk/hybridkubernetes/arm-hybridkubernetes/package.json index b3cdcdcf0e86..7f3cb14cdc47 100644 --- a/sdk/hybridkubernetes/arm-hybridkubernetes/package.json +++ b/sdk/hybridkubernetes/arm-hybridkubernetes/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-hybridkubernetes", "author": "Microsoft Corporation", "description": "ConnectedKubernetesClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/connectedKubernetesClient.js", "types": "./esm/connectedKubernetesClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/hybridkubernetes/arm-hybridkubernetes/src/connectedKubernetesClient.ts b/sdk/hybridkubernetes/arm-hybridkubernetes/src/connectedKubernetesClient.ts index 699b1bcf8ac4..678e78cab33d 100644 --- a/sdk/hybridkubernetes/arm-hybridkubernetes/src/connectedKubernetesClient.ts +++ b/sdk/hybridkubernetes/arm-hybridkubernetes/src/connectedKubernetesClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -21,11 +22,16 @@ class ConnectedKubernetesClient extends ConnectedKubernetesClientContext { /** * Initializes a new instance of the ConnectedKubernetesClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ConnectedKubernetesClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ConnectedKubernetesClientOptions) { super(credentials, subscriptionId, options); this.connectedCluster = new operations.ConnectedClusterOperations(this); this.operations = new operations.Operations(this); diff --git a/sdk/hybridkubernetes/arm-hybridkubernetes/src/connectedKubernetesClientContext.ts b/sdk/hybridkubernetes/arm-hybridkubernetes/src/connectedKubernetesClientContext.ts index 800f3c42fc37..f1428b943a43 100644 --- a/sdk/hybridkubernetes/arm-hybridkubernetes/src/connectedKubernetesClientContext.ts +++ b/sdk/hybridkubernetes/arm-hybridkubernetes/src/connectedKubernetesClientContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-hybridkubernetes"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class ConnectedKubernetesClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the ConnectedKubernetesClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ConnectedKubernetesClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ConnectedKubernetesClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/iotcentral/arm-iotcentral/README.md b/sdk/iotcentral/arm-iotcentral/README.md index 927c3351386c..da7bc02cc8bc 100644 --- a/sdk/iotcentral/arm-iotcentral/README.md +++ b/sdk/iotcentral/arm-iotcentral/README.md @@ -1,93 +1,103 @@ ## Azure IotCentralClient SDK for JavaScript -This package contains an isomorphic SDK for IotCentralClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for IotCentralClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-iotcentral` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-iotcentral +npm install --save @azure/arm-iotcentral @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. + ### How to use -#### nodejs - client creation and get apps as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get apps as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { IotCentralClient } = require("@azure/arm-iotcentral"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new IotCentralClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const resourceName = "testresourceName"; - client.apps.get(resourceGroupName, resourceName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new IotCentralClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const resourceName = "testresourceName"; +client.apps.get(resourceGroupName, resourceName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get apps as an example written in JavaScript. +#### browser - Authentication, client creation, and get apps as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-iotcentral sample - - + diff --git a/sdk/iotcentral/arm-iotcentral/package.json b/sdk/iotcentral/arm-iotcentral/package.json index 395353525347..7cebb5c29b27 100644 --- a/sdk/iotcentral/arm-iotcentral/package.json +++ b/sdk/iotcentral/arm-iotcentral/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-iotcentral", "author": "Microsoft Corporation", "description": "IotCentralClient Library with typescript type definitions for node.js and browser.", - "version": "4.1.0", + "version": "4.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/iotCentralClient.js", "types": "./esm/iotCentralClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/iotcentral/arm-iotcentral/src/iotCentralClient.ts b/sdk/iotcentral/arm-iotcentral/src/iotCentralClient.ts index 71f83aaafdb6..d198b5bddd66 100644 --- a/sdk/iotcentral/arm-iotcentral/src/iotCentralClient.ts +++ b/sdk/iotcentral/arm-iotcentral/src/iotCentralClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -21,11 +22,16 @@ class IotCentralClient extends IotCentralClientContext { /** * Initializes a new instance of the IotCentralClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.IotCentralClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IotCentralClientOptions) { super(credentials, subscriptionId, options); this.apps = new operations.Apps(this); this.operations = new operations.Operations(this); diff --git a/sdk/iotcentral/arm-iotcentral/src/iotCentralClientContext.ts b/sdk/iotcentral/arm-iotcentral/src/iotCentralClientContext.ts index f1963b771d2b..d53f1a843899 100644 --- a/sdk/iotcentral/arm-iotcentral/src/iotCentralClientContext.ts +++ b/sdk/iotcentral/arm-iotcentral/src/iotCentralClientContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-iotcentral"; -const packageVersion = "4.1.0"; +const packageVersion = "4.2.0"; export class IotCentralClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the IotCentralClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.IotCentralClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IotCentralClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/README.md b/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/README.md index d5916c2d48d2..95ce07fc5114 100644 --- a/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/README.md +++ b/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/README.md @@ -1,90 +1,100 @@ ## Azure IotHubClient SDK for JavaScript -This package contains an isomorphic SDK for IotHubClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for IotHubClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-iothub-profile-2020-09-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-iothub-profile-2020-09-01-hybrid +npm install --save @azure/arm-iothub-profile-2020-09-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { IotHubClient, IotHubModels, IotHubMappers } from "@azure/arm-iothub-profile-2020-09-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { IotHubClient } = require("@azure/arm-iothub-profile-2020-09-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new IotHubClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new IotHubClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-iothub-profile-2020-09-01-hybrid sample - - + diff --git a/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/package.json b/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/package.json index b786b8f407a3..6b25b95203f4 100644 --- a/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/package.json +++ b/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-iothub-profile-2020-09-01-hybrid", "author": "Microsoft Corporation", "description": "IotHubClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/iotHubClient.js", "types": "./esm/iotHubClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/src/iotHubClient.ts b/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/src/iotHubClient.ts index acbec4a87d10..36f5e14be98a 100644 --- a/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/src/iotHubClient.ts +++ b/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/src/iotHubClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -25,11 +26,16 @@ class IotHubClient extends IotHubClientContext { /** * Initializes a new instance of the IotHubClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.IotHubClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IotHubClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.iotHubResource = new operations.IotHubResource(this); diff --git a/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/src/iotHubClientContext.ts b/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/src/iotHubClientContext.ts index 45b7d0e435bb..8ecef899b237 100644 --- a/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/src/iotHubClientContext.ts +++ b/sdk/iothub/arm-iothub-profile-2020-09-01-hybrid/src/iotHubClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-iothub-profile-2020-09-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class IotHubClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the IotHubClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.IotHubClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IotHubClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/iothub/arm-iothub/README.md b/sdk/iothub/arm-iothub/README.md index ddb6fdb5c5ca..2ca2ced02341 100644 --- a/sdk/iothub/arm-iothub/README.md +++ b/sdk/iothub/arm-iothub/README.md @@ -1,65 +1,74 @@ ## Azure IotHubClient SDK for JavaScript -This package contains an isomorphic SDK for IotHubClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for IotHubClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-iothub` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-iothub +npm install --save @azure/arm-iothub @azure/identity ``` -### How to use +> **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. -#### nodejs - client creation and list operations as an example written in TypeScript. +### How to use -##### Install @azure/ms-rest-nodeauth +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +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. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package - -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { IotHubClient } = require("@azure/arm-iothub"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth - .interactiveLogin() - .then((creds) => { - const client = new IotHubClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); - }) - .catch((err) => { - console.error(err); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new IotHubClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); +}).catch((err) => { + console.log("An error occurred:"); + console.error(err); +}); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html ```html @@ -67,32 +76,25 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to @azure/arm-iothub sample - - + diff --git a/sdk/iothub/arm-iothub/package.json b/sdk/iothub/arm-iothub/package.json index 7824a6ad8e67..bb6d2ff7e707 100644 --- a/sdk/iothub/arm-iothub/package.json +++ b/sdk/iothub/arm-iothub/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-iothub", "author": "Microsoft Corporation", "description": "IotHubClient Library with typescript type definitions for node.js and browser.", - "version": "5.0.0", + "version": "5.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/iotHubClient.js", "types": "./esm/iotHubClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/iothub/arm-iothub/src/iotHubClient.ts b/sdk/iothub/arm-iothub/src/iotHubClient.ts index a21e31f2cd97..cab2738b2ec9 100644 --- a/sdk/iothub/arm-iothub/src/iotHubClient.ts +++ b/sdk/iothub/arm-iothub/src/iotHubClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -25,12 +26,17 @@ class IotHubClient extends IotHubClientContext { /** * Initializes a new instance of the IotHubClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 identifier. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IotHubClientOptions ) { diff --git a/sdk/iothub/arm-iothub/src/iotHubClientContext.ts b/sdk/iothub/arm-iothub/src/iotHubClientContext.ts index 22840bd1bf8e..7d65d9a5e4dc 100644 --- a/sdk/iothub/arm-iothub/src/iotHubClientContext.ts +++ b/sdk/iothub/arm-iothub/src/iotHubClientContext.ts @@ -9,24 +9,30 @@ 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"; const packageName = "@azure/arm-iothub"; -const packageVersion = "5.0.0"; +const packageVersion = "5.1.0"; export class IotHubClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the IotHubClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 identifier. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IotHubClientOptions ) { diff --git a/sdk/iotspaces/arm-iotspaces/README.md b/sdk/iotspaces/arm-iotspaces/README.md index eda0747a7cb1..5134ca5885f1 100644 --- a/sdk/iotspaces/arm-iotspaces/README.md +++ b/sdk/iotspaces/arm-iotspaces/README.md @@ -1,93 +1,103 @@ ## Azure IoTSpacesClient SDK for JavaScript -This package contains an isomorphic SDK for IoTSpacesClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for IoTSpacesClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-iotspaces +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-iotspaces` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-iotspaces @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. + ### How to use -#### nodejs - Authentication, client creation and get ioTSpaces as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and get ioTSpaces as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { IoTSpacesClient, IoTSpacesModels, IoTSpacesMappers } from "@azure/arm-iotspaces"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { IoTSpacesClient } = require("@azure/arm-iotspaces"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new IoTSpacesClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const resourceName = "testresourceName"; - client.ioTSpaces.get(resourceGroupName, resourceName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new IoTSpacesClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const resourceName = "testresourceName"; +client.ioTSpaces.get(resourceGroupName, resourceName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get ioTSpaces as an example written in JavaScript. +#### browser - Authentication, client creation, and get ioTSpaces as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-iotspaces sample - - + @@ -99,5 +109,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fiotspaces%2Farm-iotspaces%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/iotspaces/arm-iotspaces/README.png) diff --git a/sdk/iotspaces/arm-iotspaces/package.json b/sdk/iotspaces/arm-iotspaces/package.json index fa3f916b50db..05928fa12036 100644 --- a/sdk/iotspaces/arm-iotspaces/package.json +++ b/sdk/iotspaces/arm-iotspaces/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-iotspaces", "author": "Microsoft Corporation", "description": "IoTSpacesClient Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/ioTSpacesClient.js", "types": "./esm/ioTSpacesClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/iotspaces/arm-iotspaces/src/ioTSpacesClient.ts b/sdk/iotspaces/arm-iotspaces/src/ioTSpacesClient.ts index 7528df619bbf..6e77832a519f 100644 --- a/sdk/iotspaces/arm-iotspaces/src/ioTSpacesClient.ts +++ b/sdk/iotspaces/arm-iotspaces/src/ioTSpacesClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class IoTSpacesClient extends IoTSpacesClientContext { /** * Initializes a new instance of the IoTSpacesClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.IoTSpacesClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IoTSpacesClientOptions) { super(credentials, subscriptionId, options); this.ioTSpaces = new operations.IoTSpaces(this); this.operations = new operations.Operations(this); diff --git a/sdk/iotspaces/arm-iotspaces/src/ioTSpacesClientContext.ts b/sdk/iotspaces/arm-iotspaces/src/ioTSpacesClientContext.ts index ee7fd255ff8a..9829fa09aee2 100644 --- a/sdk/iotspaces/arm-iotspaces/src/ioTSpacesClientContext.ts +++ b/sdk/iotspaces/arm-iotspaces/src/ioTSpacesClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-iotspaces"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class IoTSpacesClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the IoTSpacesClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.IoTSpacesClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IoTSpacesClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/README.md b/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/README.md index 7e8b132ef62a..4bb4b303117b 100644 --- a/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/README.md +++ b/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/README.md @@ -1,89 +1,100 @@ ## Azure KeyVaultManagementClient SDK for JavaScript -This package contains an isomorphic SDK for KeyVaultManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for KeyVaultManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-keyvault-profile-2019-03-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-keyvault-profile-2019-03-01-hybrid +npm install --save @azure/arm-keyvault-profile-2019-03-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { KeyVaultManagementClient, KeyVaultManagementModels, KeyVaultManagementMappers } from "@azure/arm-keyvault-profile-2019-03-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { KeyVaultManagementClient } = require("@azure/arm-keyvault-profile-2019-03-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new KeyVaultManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new KeyVaultManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-keyvault-profile-2019-03-01-hybrid sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fkeyvault%2Farm-keyvault-profile-2019-03-01-hybrid%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/README.png) diff --git a/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/package.json b/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/package.json index 687d0d755e39..b8ca3c18b129 100644 --- a/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/package.json +++ b/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-keyvault-profile-2019-03-01-hybrid", "author": "Microsoft Corporation", "description": "KeyVaultManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -21,7 +22,7 @@ "module": "./esm/keyVaultManagementClient.js", "types": "./esm/keyVaultManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/src/keyVaultManagementClient.ts b/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/src/keyVaultManagementClient.ts index acc9c9111a85..df0d83dcc5f3 100644 --- a/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/src/keyVaultManagementClient.ts +++ b/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/src/keyVaultManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -23,12 +24,17 @@ class KeyVaultManagementClient extends KeyVaultManagementClientContext { /** * Initializes a new instance of the KeyVaultManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.KeyVaultManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.KeyVaultManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.vaults = new operations.Vaults(this); diff --git a/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/src/keyVaultManagementClientContext.ts b/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/src/keyVaultManagementClientContext.ts index 2a5c055c2591..fa3f4a2eda7c 100644 --- a/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/src/keyVaultManagementClientContext.ts +++ b/sdk/keyvault/arm-keyvault-profile-2019-03-01-hybrid/src/keyVaultManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-keyvault-profile-2019-03-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class KeyVaultManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the KeyVaultManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.KeyVaultManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.KeyVaultManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/README.md b/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/README.md index 9edd6a93ce82..0a94ae76e520 100644 --- a/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/README.md +++ b/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/README.md @@ -1,94 +1,103 @@ ## Azure KeyVaultManagementClient SDK for JavaScript -This package contains an isomorphic SDK for KeyVaultManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for KeyVaultManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-keyvault-profile-2020-09-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-keyvault-profile-2020-09-01-hybrid +npm install --save @azure/arm-keyvault-profile-2020-09-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and get vaults as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get vaults as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { KeyVaultManagementClient, KeyVaultManagementModels, KeyVaultManagementMappers } from "@azure/arm-keyvault-profile-2020-09-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { KeyVaultManagementClient } = require("@azure/arm-keyvault-profile-2020-09-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new KeyVaultManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const vaultName = "testvaultName"; - client.vaults.get(resourceGroupName, vaultName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new KeyVaultManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const vaultName = "testvaultName"; +client.vaults.get(resourceGroupName, vaultName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get vaults as an example written in JavaScript. +#### browser - Authentication, client creation, and get vaults as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-keyvault-profile-2020-09-01-hybrid sample - - + diff --git a/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/package.json b/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/package.json index 95be678bbf1f..8aac7d183a58 100644 --- a/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/package.json +++ b/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-keyvault-profile-2020-09-01-hybrid", "author": "Microsoft Corporation", "description": "KeyVaultManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/keyVaultManagementClient.js", "types": "./esm/keyVaultManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/src/keyVaultManagementClient.ts b/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/src/keyVaultManagementClient.ts index d3630f0ec0ca..379bb4a40771 100644 --- a/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/src/keyVaultManagementClient.ts +++ b/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/src/keyVaultManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -25,12 +26,17 @@ class KeyVaultManagementClient extends KeyVaultManagementClientContext { /** * Initializes a new instance of the KeyVaultManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.KeyVaultManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.KeyVaultManagementClientOptions) { super(credentials, subscriptionId, options); this.vaults = new operations.Vaults(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); diff --git a/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/src/keyVaultManagementClientContext.ts b/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/src/keyVaultManagementClientContext.ts index 114184640c28..559494fadc27 100644 --- a/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/src/keyVaultManagementClientContext.ts +++ b/sdk/keyvault/arm-keyvault-profile-2020-09-01-hybrid/src/keyVaultManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-keyvault-profile-2020-09-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class KeyVaultManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the KeyVaultManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.KeyVaultManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.KeyVaultManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md index b0fcd6f94621..e7579c259462 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md @@ -1,99 +1,109 @@ ## Azure SourceControlConfigurationClient SDK for JavaScript -This package contains an isomorphic SDK for SourceControlConfigurationClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for SourceControlConfigurationClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-kubernetesconfiguration` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-kubernetesconfiguration +npm install --save @azure/arm-kubernetesconfiguration @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. + ### How to use -#### nodejs - client creation and get sourceControlConfigurations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get sourceControlConfigurations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SourceControlConfigurationClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const clusterRp = "Microsoft.ContainerService"; - const clusterResourceName = "managedClusters"; - const clusterName = "testclusterName"; - const sourceControlConfigurationName = "testsourceControlConfigurationName"; - client.sourceControlConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SourceControlConfigurationClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const clusterRp = "Microsoft.ContainerService"; +const clusterResourceName = "managedClusters"; +const clusterName = "testclusterName"; +const sourceControlConfigurationName = "testsourceControlConfigurationName"; +client.sourceControlConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get sourceControlConfigurations as an example written in JavaScript. +#### browser - Authentication, client creation, and get sourceControlConfigurations as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-kubernetesconfiguration sample - - + diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/package.json b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/package.json index cd2e2545f9ca..ce6a369c9b78 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/package.json +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-kubernetesconfiguration", "author": "Microsoft Corporation", "description": "SourceControlConfigurationClient Library with typescript type definitions for node.js and browser.", - "version": "3.0.0", + "version": "3.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/sourceControlConfigurationClient.js", "types": "./esm/sourceControlConfigurationClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts index bd2cc20ebd69..635777cdfb10 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -21,12 +22,17 @@ class SourceControlConfigurationClient extends SourceControlConfigurationClientC /** * Initializes a new instance of the SourceControlConfigurationClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID. This is a GUID-formatted string (e.g. * 00000000-0000-0000-0000-000000000000) * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SourceControlConfigurationClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SourceControlConfigurationClientOptions) { super(credentials, subscriptionId, options); this.sourceControlConfigurations = new operations.SourceControlConfigurations(this); this.operations = new operations.Operations(this); diff --git a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClientContext.ts b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClientContext.ts index 2b240880b2e7..2146341558e2 100644 --- a/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClientContext.ts +++ b/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/src/sourceControlConfigurationClientContext.ts @@ -9,24 +9,30 @@ 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"; const packageName = "@azure/arm-kubernetesconfiguration"; -const packageVersion = "3.0.0"; +const packageVersion = "3.1.0"; export class SourceControlConfigurationClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the SourceControlConfigurationClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID. This is a GUID-formatted string (e.g. * 00000000-0000-0000-0000-000000000000) * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SourceControlConfigurationClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SourceControlConfigurationClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/kusto/arm-kusto/README.md b/sdk/kusto/arm-kusto/README.md index ecc394710389..8e5edac98482 100644 --- a/sdk/kusto/arm-kusto/README.md +++ b/sdk/kusto/arm-kusto/README.md @@ -1,67 +1,75 @@ ## Azure KustoManagementClient SDK for JavaScript -This package contains an isomorphic SDK for KustoManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for KustoManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-kusto` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-kusto +npm install --save @azure/arm-kusto @azure/identity ``` -### How to use +> **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. -#### nodejs - client creation and get clusters as an example written in TypeScript. +### How to use -##### Install @azure/ms-rest-nodeauth +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +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. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get clusters as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package - -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { KustoManagementClient } = require("@azure/arm-kusto"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth - .interactiveLogin() - .then((creds) => { - const client = new KustoManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const clusterName = "testclusterName"; - client.clusters.get(resourceGroupName, clusterName).then((result) => { - console.log("The result is:"); - console.log(result); - }); - }) - .catch((err) => { - console.error(err); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new KustoManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const clusterName = "testclusterName"; +client.clusters.get(resourceGroupName, clusterName).then((result) => { + console.log("The result is:"); + console.log(result); +}).catch((err) => { + console.log("An error occurred:"); + console.error(err); +}); ``` -#### browser - Authentication, client creation and get clusters as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and get clusters as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html ```html @@ -69,34 +77,27 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to @azure/arm-kusto sample - - + diff --git a/sdk/kusto/arm-kusto/package.json b/sdk/kusto/arm-kusto/package.json index 5418efffbbc6..bada8a56893c 100644 --- a/sdk/kusto/arm-kusto/package.json +++ b/sdk/kusto/arm-kusto/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-kusto", "author": "Microsoft Corporation", "description": "KustoManagementClient Library with typescript type definitions for node.js and browser.", - "version": "6.1.0", + "version": "6.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/kustoManagementClient.js", "types": "./esm/kustoManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/kusto/arm-kusto/src/kustoManagementClient.ts b/sdk/kusto/arm-kusto/src/kustoManagementClient.ts index 9131be10fd4c..4d4c284db056 100644 --- a/sdk/kusto/arm-kusto/src/kustoManagementClient.ts +++ b/sdk/kusto/arm-kusto/src/kustoManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -27,13 +28,18 @@ class KustoManagementClient extends KustoManagementClientContext { /** * Initializes a new instance of the KustoManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.KustoManagementClientOptions ) { diff --git a/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts b/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts index c7cc3b8f0a69..c60aa780b612 100644 --- a/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts +++ b/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts @@ -9,25 +9,31 @@ 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"; const packageName = "@azure/arm-kusto"; -const packageVersion = "6.1.0"; +const packageVersion = "6.2.0"; export class KustoManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the KustoManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.KustoManagementClientOptions ) { diff --git a/sdk/labservices/arm-labservices/README.md b/sdk/labservices/arm-labservices/README.md index 0ae4beb85ea4..f6d820422be6 100644 --- a/sdk/labservices/arm-labservices/README.md +++ b/sdk/labservices/arm-labservices/README.md @@ -1,89 +1,100 @@ ## Azure ManagedLabsClient SDK for JavaScript -This package contains an isomorphic SDK for ManagedLabsClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ManagedLabsClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-labservices` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-labservices +npm install --save @azure/arm-labservices @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. + ### How to use -#### nodejs - Authentication, client creation and list providerOperations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list providerOperations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ManagedLabsClient, ManagedLabsModels, ManagedLabsMappers } from "@azure/arm-labservices"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ManagedLabsClient } = require("@azure/arm-labservices"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ManagedLabsClient(creds, subscriptionId); - client.providerOperations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ManagedLabsClient(creds, subscriptionId); + +client.providerOperations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list providerOperations as an example written in JavaScript. +#### browser - Authentication, client creation, and list providerOperations as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-labservices sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Flabservices%2Farm-labservices%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/labservices/arm-labservices/README.png) diff --git a/sdk/labservices/arm-labservices/package.json b/sdk/labservices/arm-labservices/package.json index 9ee0301ddad0..48e62c68d2c6 100644 --- a/sdk/labservices/arm-labservices/package.json +++ b/sdk/labservices/arm-labservices/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-labservices", "author": "Microsoft Corporation", "description": "ManagedLabsClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.1", - "@azure/ms-rest-js": "^1.2.6", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/managedLabsClient.js", "types": "./esm/managedLabsClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/labservices/arm-labservices/src/managedLabsClient.ts b/sdk/labservices/arm-labservices/src/managedLabsClient.ts index 868f64b914bb..be1b5e2c2ca6 100644 --- a/sdk/labservices/arm-labservices/src/managedLabsClient.ts +++ b/sdk/labservices/arm-labservices/src/managedLabsClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -29,11 +30,16 @@ class ManagedLabsClient extends ManagedLabsClientContext { /** * Initializes a new instance of the ManagedLabsClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagedLabsClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagedLabsClientOptions) { super(credentials, subscriptionId, options); this.providerOperations = new operations.ProviderOperations(this); this.globalUsers = new operations.GlobalUsers(this); diff --git a/sdk/labservices/arm-labservices/src/managedLabsClientContext.ts b/sdk/labservices/arm-labservices/src/managedLabsClientContext.ts index cc87576b4330..32e6a4383220 100644 --- a/sdk/labservices/arm-labservices/src/managedLabsClientContext.ts +++ b/sdk/labservices/arm-labservices/src/managedLabsClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-labservices"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class ManagedLabsClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the ManagedLabsClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagedLabsClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagedLabsClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/links/arm-links/README.md b/sdk/links/arm-links/README.md index c03709a56234..53f7d981ae63 100644 --- a/sdk/links/arm-links/README.md +++ b/sdk/links/arm-links/README.md @@ -1,89 +1,100 @@ ## Azure ManagementLinkClient SDK for JavaScript -This package contains an isomorphic SDK for ManagementLinkClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ManagementLinkClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-links` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-links +npm install --save @azure/arm-links @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ManagementLinkClient, ManagementLinkModels, ManagementLinkMappers } from "@azure/arm-links"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ManagementLinkClient } = require("@azure/arm-links"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ManagementLinkClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ManagementLinkClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-links sample - - + @@ -95,4 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Flinks%2Farm-links%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/links/arm-links/README.png) diff --git a/sdk/links/arm-links/package.json b/sdk/links/arm-links/package.json index c75839f25ffd..289d12fb5c30 100644 --- a/sdk/links/arm-links/package.json +++ b/sdk/links/arm-links/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-links", "author": "Microsoft Corporation", "description": "ManagementLinkClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.2", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/managementLinkClient.js", "types": "./esm/managementLinkClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/links/arm-links/src/managementLinkClient.ts b/sdk/links/arm-links/src/managementLinkClient.ts index e501aa9f38a6..029201584390 100644 --- a/sdk/links/arm-links/src/managementLinkClient.ts +++ b/sdk/links/arm-links/src/managementLinkClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class ManagementLinkClient extends ManagementLinkClientContext { /** * Initializes a new instance of the ManagementLinkClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagementLinkClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagementLinkClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.resourceLinks = new operations.ResourceLinks(this); diff --git a/sdk/links/arm-links/src/managementLinkClientContext.ts b/sdk/links/arm-links/src/managementLinkClientContext.ts index 429c7805a4f8..82de71b0c6ef 100644 --- a/sdk/links/arm-links/src/managementLinkClientContext.ts +++ b/sdk/links/arm-links/src/managementLinkClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-links"; -const packageVersion = "1.0.2"; +const packageVersion = "1.1.0"; export class ManagementLinkClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ManagementLinkClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagementLinkClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagementLinkClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/locks/arm-locks-profile-2020-09-01-hybrid/README.md b/sdk/locks/arm-locks-profile-2020-09-01-hybrid/README.md index 5bab253c9b00..10cbf9949462 100644 --- a/sdk/locks/arm-locks-profile-2020-09-01-hybrid/README.md +++ b/sdk/locks/arm-locks-profile-2020-09-01-hybrid/README.md @@ -1,90 +1,100 @@ ## Azure ManagementLockClient SDK for JavaScript -This package contains an isomorphic SDK for ManagementLockClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ManagementLockClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-locks-profile-2020-09-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-locks-profile-2020-09-01-hybrid +npm install --save @azure/arm-locks-profile-2020-09-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and list authorizationOperations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list authorizationOperations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ManagementLockClient, ManagementLockModels, ManagementLockMappers } from "@azure/arm-locks-profile-2020-09-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ManagementLockClient } = require("@azure/arm-locks-profile-2020-09-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ManagementLockClient(creds, subscriptionId); - client.authorizationOperations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ManagementLockClient(creds, subscriptionId); + +client.authorizationOperations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list authorizationOperations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list authorizationOperations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-locks-profile-2020-09-01-hybrid sample - - + diff --git a/sdk/locks/arm-locks-profile-2020-09-01-hybrid/package.json b/sdk/locks/arm-locks-profile-2020-09-01-hybrid/package.json index 54633bf79bed..49e77aa33f55 100644 --- a/sdk/locks/arm-locks-profile-2020-09-01-hybrid/package.json +++ b/sdk/locks/arm-locks-profile-2020-09-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-locks-profile-2020-09-01-hybrid", "author": "Microsoft Corporation", "description": "ManagementLockClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/managementLockClient.js", "types": "./esm/managementLockClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/locks/arm-locks-profile-2020-09-01-hybrid/src/managementLockClient.ts b/sdk/locks/arm-locks-profile-2020-09-01-hybrid/src/managementLockClient.ts index 8f3ee196f5d8..e732ae6e8de1 100644 --- a/sdk/locks/arm-locks-profile-2020-09-01-hybrid/src/managementLockClient.ts +++ b/sdk/locks/arm-locks-profile-2020-09-01-hybrid/src/managementLockClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class ManagementLockClient extends ManagementLockClientContext { /** * Initializes a new instance of the ManagementLockClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagementLockClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagementLockClientOptions) { super(credentials, subscriptionId, options); this.authorizationOperations = new operations.AuthorizationOperations(this); this.managementLocks = new operations.ManagementLocks(this); diff --git a/sdk/locks/arm-locks-profile-2020-09-01-hybrid/src/managementLockClientContext.ts b/sdk/locks/arm-locks-profile-2020-09-01-hybrid/src/managementLockClientContext.ts index 166a44ef478f..4a0e6e1d1aad 100644 --- a/sdk/locks/arm-locks-profile-2020-09-01-hybrid/src/managementLockClientContext.ts +++ b/sdk/locks/arm-locks-profile-2020-09-01-hybrid/src/managementLockClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-locks-profile-2020-09-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class ManagementLockClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ManagementLockClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagementLockClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagementLockClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/locks/arm-locks-profile-hybrid-2019-03-01/README.md b/sdk/locks/arm-locks-profile-hybrid-2019-03-01/README.md index 6eeb5d2c6f84..ae164358e962 100644 --- a/sdk/locks/arm-locks-profile-hybrid-2019-03-01/README.md +++ b/sdk/locks/arm-locks-profile-hybrid-2019-03-01/README.md @@ -1,89 +1,100 @@ ## Azure ManagementLockClient SDK for JavaScript -This package contains an isomorphic SDK for ManagementLockClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ManagementLockClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-locks-profile-hybrid-2019-03-01` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-locks-profile-hybrid-2019-03-01 +npm install --save @azure/arm-locks-profile-hybrid-2019-03-01 @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. + ### How to use -#### nodejs - Authentication, client creation and list authorizationOperations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list authorizationOperations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ManagementLockClient, ManagementLockModels, ManagementLockMappers } from "@azure/arm-locks-profile-hybrid-2019-03-01"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ManagementLockClient } = require("@azure/arm-locks-profile-hybrid-2019-03-01"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ManagementLockClient(creds, subscriptionId); - client.authorizationOperations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ManagementLockClient(creds, subscriptionId); + +client.authorizationOperations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list authorizationOperations as an example written in JavaScript. +#### browser - Authentication, client creation, and list authorizationOperations as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-locks-profile-hybrid-2019-03-01 sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Flocks%2Farm-locks-profile-hybrid-2019-03-01%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/locks/arm-locks-profile-hybrid-2019-03-01/README.png) diff --git a/sdk/locks/arm-locks-profile-hybrid-2019-03-01/package.json b/sdk/locks/arm-locks-profile-hybrid-2019-03-01/package.json index 91a8d1492e1e..ba631f273f35 100644 --- a/sdk/locks/arm-locks-profile-hybrid-2019-03-01/package.json +++ b/sdk/locks/arm-locks-profile-hybrid-2019-03-01/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-locks-profile-hybrid-2019-03-01", "author": "Microsoft Corporation", "description": "ManagementLockClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -21,7 +22,7 @@ "module": "./esm/managementLockClient.js", "types": "./esm/managementLockClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/locks/arm-locks-profile-hybrid-2019-03-01/src/managementLockClient.ts b/sdk/locks/arm-locks-profile-hybrid-2019-03-01/src/managementLockClient.ts index 8f3ee196f5d8..e732ae6e8de1 100644 --- a/sdk/locks/arm-locks-profile-hybrid-2019-03-01/src/managementLockClient.ts +++ b/sdk/locks/arm-locks-profile-hybrid-2019-03-01/src/managementLockClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class ManagementLockClient extends ManagementLockClientContext { /** * Initializes a new instance of the ManagementLockClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagementLockClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagementLockClientOptions) { super(credentials, subscriptionId, options); this.authorizationOperations = new operations.AuthorizationOperations(this); this.managementLocks = new operations.ManagementLocks(this); diff --git a/sdk/locks/arm-locks-profile-hybrid-2019-03-01/src/managementLockClientContext.ts b/sdk/locks/arm-locks-profile-hybrid-2019-03-01/src/managementLockClientContext.ts index 93df77252b7f..a1356b54c43c 100644 --- a/sdk/locks/arm-locks-profile-hybrid-2019-03-01/src/managementLockClientContext.ts +++ b/sdk/locks/arm-locks-profile-hybrid-2019-03-01/src/managementLockClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-locks-profile-hybrid-2019-03-01"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class ManagementLockClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ManagementLockClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagementLockClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagementLockClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/locks/arm-locks/README.md b/sdk/locks/arm-locks/README.md index 3d40a1ffb0ee..cb93d1272533 100644 --- a/sdk/locks/arm-locks/README.md +++ b/sdk/locks/arm-locks/README.md @@ -1,89 +1,100 @@ ## Azure ManagementLockClient SDK for JavaScript -This package contains an isomorphic SDK for ManagementLockClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ManagementLockClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-locks` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-locks +npm install --save @azure/arm-locks @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. + ### How to use -#### nodejs - Authentication, client creation and list authorizationOperations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list authorizationOperations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ManagementLockClient, ManagementLockModels, ManagementLockMappers } from "@azure/arm-locks"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ManagementLockClient } = require("@azure/arm-locks"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ManagementLockClient(creds, subscriptionId); - client.authorizationOperations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ManagementLockClient(creds, subscriptionId); + +client.authorizationOperations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list authorizationOperations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list authorizationOperations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-locks sample - - + @@ -95,4 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Flocks%2Farm-locks%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/locks/arm-locks/README.png) diff --git a/sdk/locks/arm-locks/package.json b/sdk/locks/arm-locks/package.json index 00370cc26347..04b2b5689fe1 100644 --- a/sdk/locks/arm-locks/package.json +++ b/sdk/locks/arm-locks/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-locks", "author": "Microsoft Corporation", "description": "ManagementLockClient Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/managementLockClient.js", "types": "./esm/managementLockClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/locks/arm-locks/src/managementLockClient.ts b/sdk/locks/arm-locks/src/managementLockClient.ts index 8f3ee196f5d8..e732ae6e8de1 100644 --- a/sdk/locks/arm-locks/src/managementLockClient.ts +++ b/sdk/locks/arm-locks/src/managementLockClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class ManagementLockClient extends ManagementLockClientContext { /** * Initializes a new instance of the ManagementLockClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagementLockClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagementLockClientOptions) { super(credentials, subscriptionId, options); this.authorizationOperations = new operations.AuthorizationOperations(this); this.managementLocks = new operations.ManagementLocks(this); diff --git a/sdk/locks/arm-locks/src/managementLockClientContext.ts b/sdk/locks/arm-locks/src/managementLockClientContext.ts index 1614234fb5b2..49465f512f87 100644 --- a/sdk/locks/arm-locks/src/managementLockClientContext.ts +++ b/sdk/locks/arm-locks/src/managementLockClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-locks"; -const packageVersion = "1.1.0"; +const packageVersion = "1.2.0"; export class ManagementLockClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ManagementLockClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagementLockClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagementLockClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/logic/arm-logic/README.md b/sdk/logic/arm-logic/README.md index c12bcff569c3..2bfd3599e014 100644 --- a/sdk/logic/arm-logic/README.md +++ b/sdk/logic/arm-logic/README.md @@ -1,94 +1,103 @@ ## Azure LogicManagementClient SDK for JavaScript -This package contains an isomorphic SDK for LogicManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for LogicManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-logic` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-logic +npm install --save @azure/arm-logic @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. + ### How to use -#### nodejs - Authentication, client creation and listBySubscription workflows as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and listBySubscription workflows as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { LogicManagementClient, LogicManagementModels, LogicManagementMappers } from "@azure/arm-logic"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { LogicManagementClient } = require("@azure/arm-logic"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new LogicManagementClient(creds, subscriptionId); - const top = 1; - const filter = "testfilter"; - client.workflows.listBySubscription(top, filter).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new LogicManagementClient(creds, subscriptionId); +const top = 1; +const filter = "testfilter"; +client.workflows.listBySubscription(top, filter).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and listBySubscription workflows as an example written in JavaScript. +#### browser - Authentication, client creation, and listBySubscription workflows as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-logic sample - - + diff --git a/sdk/logic/arm-logic/package.json b/sdk/logic/arm-logic/package.json index d562943fe641..90eae7c97aa0 100644 --- a/sdk/logic/arm-logic/package.json +++ b/sdk/logic/arm-logic/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-logic", "author": "Microsoft Corporation", "description": "LogicManagementClient Library with typescript type definitions for node.js and browser.", - "version": "7.0.0", + "version": "7.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/logicManagementClient.js", "types": "./esm/logicManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/logic/arm-logic/src/logicManagementClient.ts b/sdk/logic/arm-logic/src/logicManagementClient.ts index 55dca04b4fe1..ce242b941d5e 100644 --- a/sdk/logic/arm-logic/src/logicManagementClient.ts +++ b/sdk/logic/arm-logic/src/logicManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -47,11 +48,16 @@ class LogicManagementClient extends LogicManagementClientContext { /** * Initializes a new instance of the LogicManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.LogicManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.LogicManagementClientOptions) { super(credentials, subscriptionId, options); this.workflows = new operations.Workflows(this); this.workflowVersions = new operations.WorkflowVersions(this); diff --git a/sdk/logic/arm-logic/src/logicManagementClientContext.ts b/sdk/logic/arm-logic/src/logicManagementClientContext.ts index 0fc08b13b4d0..294f0ae254dd 100644 --- a/sdk/logic/arm-logic/src/logicManagementClientContext.ts +++ b/sdk/logic/arm-logic/src/logicManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-logic"; -const packageVersion = "7.0.0"; +const packageVersion = "7.1.0"; export class LogicManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the LogicManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.LogicManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.LogicManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/machinelearning/arm-commitmentplans/README.md b/sdk/machinelearning/arm-commitmentplans/README.md index 093fe09dcd50..dcec8cf6c4a6 100644 --- a/sdk/machinelearning/arm-commitmentplans/README.md +++ b/sdk/machinelearning/arm-commitmentplans/README.md @@ -1,89 +1,100 @@ ## Azure AzureMLCommitmentPlansManagementClient SDK for JavaScript -This package contains an isomorphic SDK for AzureMLCommitmentPlansManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMLCommitmentPlansManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-commitmentplans +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-commitmentplans` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-commitmentplans @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. + ### How to use -#### nodejs - Authentication, client creation and list skus as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list skus as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { AzureMLCommitmentPlansManagementClient, AzureMLCommitmentPlansManagementModels, AzureMLCommitmentPlansManagementMappers } from "@azure/arm-commitmentplans"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { AzureMLCommitmentPlansManagementClient } = require("@azure/arm-commitmentplans"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new AzureMLCommitmentPlansManagementClient(creds, subscriptionId); - client.skus.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new AzureMLCommitmentPlansManagementClient(creds, subscriptionId); + +client.skus.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list skus as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list skus as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-commitmentplans sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmachinelearning%2Farm-commitmentplans%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/machinelearning/arm-commitmentplans/README.png) diff --git a/sdk/machinelearning/arm-commitmentplans/package.json b/sdk/machinelearning/arm-commitmentplans/package.json index f278f292273b..221f53189aed 100644 --- a/sdk/machinelearning/arm-commitmentplans/package.json +++ b/sdk/machinelearning/arm-commitmentplans/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-commitmentplans", "author": "Microsoft Corporation", "description": "AzureMLCommitmentPlansManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.2.0", + "version": "1.3.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/azureMLCommitmentPlansManagementClient.js", "types": "./esm/azureMLCommitmentPlansManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClient.ts b/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClient.ts index a1fc34d00224..e0f0723ae1d2 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClient.ts +++ b/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -24,11 +25,16 @@ class AzureMLCommitmentPlansManagementClient extends AzureMLCommitmentPlansManag /** * Initializes a new instance of the AzureMLCommitmentPlansManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure Subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMLCommitmentPlansManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMLCommitmentPlansManagementClientOptions) { super(credentials, subscriptionId, options); this.skus = new operations.Skus(this); this.commitmentAssociations = new operations.CommitmentAssociations(this); diff --git a/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClientContext.ts b/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClientContext.ts index 3293f19add9d..7d8cc7e04338 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClientContext.ts +++ b/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-commitmentplans"; -const packageVersion = "0.1.0"; +const packageVersion = "1.3.0"; export class AzureMLCommitmentPlansManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the AzureMLCommitmentPlansManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure Subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMLCommitmentPlansManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMLCommitmentPlansManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/machinelearning/arm-webservices/README.md b/sdk/machinelearning/arm-webservices/README.md index d7a620f5e100..4c24e3b16b89 100644 --- a/sdk/machinelearning/arm-webservices/README.md +++ b/sdk/machinelearning/arm-webservices/README.md @@ -1,89 +1,100 @@ ## Azure AzureMLWebServicesManagementClient SDK for JavaScript -This package contains an isomorphic SDK for AzureMLWebServicesManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMLWebServicesManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-webservices +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-webservices` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-webservices @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { AzureMLWebServicesManagementClient, AzureMLWebServicesManagementModels, AzureMLWebServicesManagementMappers } from "@azure/arm-webservices"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { AzureMLWebServicesManagementClient } = require("@azure/arm-webservices"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new AzureMLWebServicesManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new AzureMLWebServicesManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-webservices sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmachinelearning%2Farm-webservices%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/machinelearning/arm-webservices/README.png) diff --git a/sdk/machinelearning/arm-webservices/package.json b/sdk/machinelearning/arm-webservices/package.json index 1f105ed79474..d41342037b38 100644 --- a/sdk/machinelearning/arm-webservices/package.json +++ b/sdk/machinelearning/arm-webservices/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-webservices", "author": "Microsoft Corporation", "description": "AzureMLWebServicesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.1", + "version": "0.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/azureMLWebServicesManagementClient.js", "types": "./esm/azureMLWebServicesManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/machinelearning/arm-webservices/src/azureMLWebServicesManagementClient.ts b/sdk/machinelearning/arm-webservices/src/azureMLWebServicesManagementClient.ts index a90d5d94b74e..b3fe24bbf103 100644 --- a/sdk/machinelearning/arm-webservices/src/azureMLWebServicesManagementClient.ts +++ b/sdk/machinelearning/arm-webservices/src/azureMLWebServicesManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class AzureMLWebServicesManagementClient extends AzureMLWebServicesManagementCli /** * Initializes a new instance of the AzureMLWebServicesManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMLWebServicesManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMLWebServicesManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.webServices = new operations.WebServices(this); diff --git a/sdk/machinelearning/arm-webservices/src/azureMLWebServicesManagementClientContext.ts b/sdk/machinelearning/arm-webservices/src/azureMLWebServicesManagementClientContext.ts index f11c651206a2..e4fbc627e6c7 100644 --- a/sdk/machinelearning/arm-webservices/src/azureMLWebServicesManagementClientContext.ts +++ b/sdk/machinelearning/arm-webservices/src/azureMLWebServicesManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-webservices"; -const packageVersion = "0.1.1"; +const packageVersion = "0.2.0"; export class AzureMLWebServicesManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the AzureMLWebServicesManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMLWebServicesManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMLWebServicesManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/machinelearning/arm-workspaces/README.md b/sdk/machinelearning/arm-workspaces/README.md index 53ffced85a65..d173c0c1138a 100644 --- a/sdk/machinelearning/arm-workspaces/README.md +++ b/sdk/machinelearning/arm-workspaces/README.md @@ -1,89 +1,100 @@ ## Azure MachineLearningWorkspacesManagementClient SDK for JavaScript -This package contains an isomorphic SDK for MachineLearningWorkspacesManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MachineLearningWorkspacesManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-workspaces +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-workspaces` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-workspaces @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MachineLearningWorkspacesManagementClient, MachineLearningWorkspacesManagementModels, MachineLearningWorkspacesManagementMappers } from "@azure/arm-workspaces"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MachineLearningWorkspacesManagementClient } = require("@azure/arm-workspaces"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MachineLearningWorkspacesManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MachineLearningWorkspacesManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-workspaces sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmachinelearning%2Farm-workspaces%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/machinelearning/arm-workspaces/README.png) diff --git a/sdk/machinelearning/arm-workspaces/package.json b/sdk/machinelearning/arm-workspaces/package.json index ed27d7b1f584..138d1119824a 100644 --- a/sdk/machinelearning/arm-workspaces/package.json +++ b/sdk/machinelearning/arm-workspaces/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-workspaces", "author": "Microsoft Corporation", "description": "MachineLearningWorkspacesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.1", + "version": "0.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/machineLearningWorkspacesManagementClient.js", "types": "./esm/machineLearningWorkspacesManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClient.ts b/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClient.ts index c058f7d5dc38..e7c54e17b102 100644 --- a/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClient.ts +++ b/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class MachineLearningWorkspacesManagementClient extends MachineLearningWorkspace /** * Initializes a new instance of the MachineLearningWorkspacesManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Microsoft Azure subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MachineLearningWorkspacesManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MachineLearningWorkspacesManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.workspaces = new operations.Workspaces(this); diff --git a/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClientContext.ts b/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClientContext.ts index 10b3d8538241..a459ce44e24f 100644 --- a/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClientContext.ts +++ b/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-workspaces"; -const packageVersion = "0.1.1"; +const packageVersion = "0.2.0"; export class MachineLearningWorkspacesManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the MachineLearningWorkspacesManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Microsoft Azure subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MachineLearningWorkspacesManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MachineLearningWorkspacesManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/README.md b/sdk/machinelearningcompute/arm-machinelearningcompute/README.md index 8a1c8bc5efa1..7c79f923624d 100644 --- a/sdk/machinelearningcompute/arm-machinelearningcompute/README.md +++ b/sdk/machinelearningcompute/arm-machinelearningcompute/README.md @@ -1,93 +1,103 @@ ## Azure MachineLearningComputeManagementClient SDK for JavaScript -This package contains an isomorphic SDK for MachineLearningComputeManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MachineLearningComputeManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-machinelearningcompute` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-machinelearningcompute +npm install --save @azure/arm-machinelearningcompute @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. + ### How to use -#### nodejs - client creation and get operationalizationClusters as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get operationalizationClusters as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MachineLearningComputeManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const clusterName = "testclusterName"; - client.operationalizationClusters.get(resourceGroupName, clusterName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MachineLearningComputeManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const clusterName = "testclusterName"; +client.operationalizationClusters.get(resourceGroupName, clusterName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get operationalizationClusters as an example written in JavaScript. +#### browser - Authentication, client creation, and get operationalizationClusters as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-machinelearningcompute sample - - + diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/package.json b/sdk/machinelearningcompute/arm-machinelearningcompute/package.json index bf49b90c74d0..3078ef0617eb 100644 --- a/sdk/machinelearningcompute/arm-machinelearningcompute/package.json +++ b/sdk/machinelearningcompute/arm-machinelearningcompute/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-machinelearningcompute", "author": "Microsoft Corporation", "description": "MachineLearningComputeManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.0.0", + "version": "2.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/machineLearningComputeManagementClient.js", "types": "./esm/machineLearningComputeManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClient.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClient.ts index 16b9439a801c..9663696e37d9 100644 --- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClient.ts +++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -21,11 +22,16 @@ class MachineLearningComputeManagementClient extends MachineLearningComputeManag /** * Initializes a new instance of the MachineLearningComputeManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MachineLearningComputeManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MachineLearningComputeManagementClientOptions) { super(credentials, subscriptionId, options); this.operationalizationClusters = new operations.OperationalizationClusters(this); this.machineLearningCompute = new operations.MachineLearningCompute(this); diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClientContext.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClientContext.ts index d914d3831fcf..0ce0e39e3b72 100644 --- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClientContext.ts +++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClientContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-machinelearningcompute"; -const packageVersion = "2.0.0"; +const packageVersion = "2.1.0"; export class MachineLearningComputeManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the MachineLearningComputeManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MachineLearningComputeManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MachineLearningComputeManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.md b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.md index 9b19177c4a80..768e043d08ef 100644 --- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.md +++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.md @@ -1,89 +1,100 @@ ## Azure MLTeamAccountManagementClient SDK for JavaScript -This package contains an isomorphic SDK for MLTeamAccountManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MLTeamAccountManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-machinelearningexperimentation +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-machinelearningexperimentation` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-machinelearningexperimentation @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MLTeamAccountManagementClient, MLTeamAccountManagementModels, MLTeamAccountManagementMappers } from "@azure/arm-machinelearningexperimentation"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MLTeamAccountManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MLTeamAccountManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-machinelearningexperimentation sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmachinelearningexperimentation%2Farm-machinelearningexperimentation%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.png) diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/package.json b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/package.json index 9b6aed6ca161..75f9523c8a81 100644 --- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/package.json +++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-machinelearningexperimentation", "author": "Microsoft Corporation", "description": "MLTeamAccountManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/mLTeamAccountManagementClient.js", "types": "./esm/mLTeamAccountManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClient.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClient.ts index 32fbbae3b408..5f7d61617147 100644 --- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClient.ts +++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -24,11 +25,16 @@ class MLTeamAccountManagementClient extends MLTeamAccountManagementClientContext /** * Initializes a new instance of the MLTeamAccountManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Microsoft Azure subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MLTeamAccountManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MLTeamAccountManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.accounts = new operations.Accounts(this); diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClientContext.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClientContext.ts index 8c047305aa14..777433892d85 100644 --- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClientContext.ts +++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-machinelearningexperimentation"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class MLTeamAccountManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the MLTeamAccountManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Microsoft Azure subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MLTeamAccountManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MLTeamAccountManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/machinelearningservices/arm-machinelearningservices/README.md b/sdk/machinelearningservices/arm-machinelearningservices/README.md index cde11f4dfef7..33d5aa2d1e54 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/README.md +++ b/sdk/machinelearningservices/arm-machinelearningservices/README.md @@ -1,89 +1,100 @@ ## Azure AzureMachineLearningWorkspaces SDK for JavaScript -This package contains an isomorphic SDK for AzureMachineLearningWorkspaces. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMachineLearningWorkspaces. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-machinelearningservices` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-machinelearningservices +npm install --save @azure/arm-machinelearningservices @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. + ### How to use -#### nodejs - client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { AzureMachineLearningWorkspaces } = require("@azure/arm-machinelearningservices"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new AzureMachineLearningWorkspaces(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new AzureMachineLearningWorkspaces(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-machinelearningservices sample - - + diff --git a/sdk/machinelearningservices/arm-machinelearningservices/package.json b/sdk/machinelearningservices/arm-machinelearningservices/package.json index 6c9a22e7b32c..058f1d98c45b 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/package.json +++ b/sdk/machinelearningservices/arm-machinelearningservices/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-machinelearningservices", "author": "Microsoft Corporation", "description": "AzureMachineLearningWorkspaces Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "version": "4.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/azureMachineLearningWorkspaces.js", "types": "./esm/azureMachineLearningWorkspaces.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts index 4cc5d45384af..927e99eb1220 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -31,11 +32,16 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte /** * Initializes a new instance of the AzureMachineLearningWorkspaces class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMachineLearningWorkspacesOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMachineLearningWorkspacesOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.workspaces = new operations.Workspaces(this); diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts index 5dfaeebdef9f..4d352d0f53f4 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-machinelearningservices"; -const packageVersion = "4.0.0"; +const packageVersion = "4.1.0"; export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the AzureMachineLearningWorkspaces class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMachineLearningWorkspacesOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMachineLearningWorkspacesOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/managedapplications/arm-managedapplications/README.md b/sdk/managedapplications/arm-managedapplications/README.md index 9b9e2851fe5e..974bf97f698f 100644 --- a/sdk/managedapplications/arm-managedapplications/README.md +++ b/sdk/managedapplications/arm-managedapplications/README.md @@ -1,89 +1,100 @@ ## Azure ManagedApplicationClient SDK for JavaScript -This package contains an isomorphic SDK for ManagedApplicationClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ManagedApplicationClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-managedapplications` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-managedapplications +npm install --save @azure/arm-managedapplications @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. + ### How to use -#### nodejs - Authentication, client creation and listOperations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and listOperations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ManagedApplicationClient, ManagedApplicationModels, ManagedApplicationMappers } from "@azure/arm-managedapplications"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ManagedApplicationClient } = require("@azure/arm-managedapplications"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ManagedApplicationClient(creds, subscriptionId); - client.listOperations().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ManagedApplicationClient(creds, subscriptionId); + +client.listOperations().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and listOperations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and listOperations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-managedapplications sample - - + @@ -95,4 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmanagedapplications%2Farm-managedapplications%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/managedapplications/arm-managedapplications/README.png) diff --git a/sdk/managedapplications/arm-managedapplications/package.json b/sdk/managedapplications/arm-managedapplications/package.json index 79861c572083..100328248251 100644 --- a/sdk/managedapplications/arm-managedapplications/package.json +++ b/sdk/managedapplications/arm-managedapplications/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-managedapplications", "author": "Microsoft Corporation", "description": "ManagedApplicationClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.2", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/managedApplicationClient.js", "types": "./esm/managedApplicationClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/managedapplications/arm-managedapplications/src/managedApplicationClient.ts b/sdk/managedapplications/arm-managedapplications/src/managedApplicationClient.ts index 2897a8be4c98..0c6f3320edf5 100644 --- a/sdk/managedapplications/arm-managedapplications/src/managedApplicationClient.ts +++ b/sdk/managedapplications/arm-managedapplications/src/managedApplicationClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -23,11 +24,16 @@ class ManagedApplicationClient extends ManagedApplicationClientContext { /** * Initializes a new instance of the ManagedApplicationClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagedApplicationClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagedApplicationClientOptions) { super(credentials, subscriptionId, options); this.appliances = new operations.Appliances(this); this.applianceDefinitions = new operations.ApplianceDefinitions(this); diff --git a/sdk/managedapplications/arm-managedapplications/src/managedApplicationClientContext.ts b/sdk/managedapplications/arm-managedapplications/src/managedApplicationClientContext.ts index ddcedede9ce8..628f85418d0c 100644 --- a/sdk/managedapplications/arm-managedapplications/src/managedApplicationClientContext.ts +++ b/sdk/managedapplications/arm-managedapplications/src/managedApplicationClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-managedapplications"; -const packageVersion = "1.0.2"; +const packageVersion = "1.1.0"; export class ManagedApplicationClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ManagedApplicationClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagedApplicationClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagedApplicationClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/managementgroups/arm-managementgroups/README.md b/sdk/managementgroups/arm-managementgroups/README.md index d52fe3295611..cc428f2793f5 100644 --- a/sdk/managementgroups/arm-managementgroups/README.md +++ b/sdk/managementgroups/arm-managementgroups/README.md @@ -1,93 +1,103 @@ ## Azure ManagementGroupsAPI SDK for JavaScript -This package contains an isomorphic SDK for ManagementGroupsAPI. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ManagementGroupsAPI. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-managementgroups +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-managementgroups` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-managementgroups @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. + ### How to use -#### nodejs - Authentication, client creation and list managementGroups as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list managementGroups as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ManagementGroupsAPI, ManagementGroupsAPIModels, ManagementGroupsAPIMappers } from "@azure/arm-managementgroups"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ManagementGroupsAPI } = require("@azure/arm-managementgroups"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ManagementGroupsAPI(creds, subscriptionId); - const cacheControl = "testcacheControl"; - const skiptoken = "testskiptoken"; - client.managementGroups.list(cacheControl, skiptoken).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ManagementGroupsAPI(creds, subscriptionId); +const cacheControl = "testcacheControl"; +const skiptoken = "testskiptoken"; +client.managementGroups.list(cacheControl, skiptoken).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list managementGroups as an example written in JavaScript. +#### browser - Authentication, client creation, and list managementGroups as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-managementgroups sample - - + @@ -99,5 +109,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmanagementgroups%2Farm-managementgroups%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/managementgroups/arm-managementgroups/README.png) diff --git a/sdk/managementgroups/arm-managementgroups/package.json b/sdk/managementgroups/arm-managementgroups/package.json index be3d9ef7c625..102d351c26a4 100644 --- a/sdk/managementgroups/arm-managementgroups/package.json +++ b/sdk/managementgroups/arm-managementgroups/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-managementgroups", "author": "Microsoft Corporation", "description": "ManagementGroupsAPI Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/managementGroupsAPI.js", "types": "./esm/managementGroupsAPI.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPI.ts b/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPI.ts index fb708d943018..e934c83510da 100644 --- a/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPI.ts +++ b/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPI.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -25,10 +26,15 @@ class ManagementGroupsAPI extends ManagementGroupsAPIContext { /** * Initializes a new instance of the ManagementGroupsAPI class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ManagementGroupsAPIOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.ManagementGroupsAPIOptions) { super(credentials, options); this.managementGroups = new operations.ManagementGroups(this); this.managementGroupSubscriptions = new operations.ManagementGroupSubscriptions(this); diff --git a/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPIContext.ts b/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPIContext.ts index d50989717ea4..96fa50023af5 100644 --- a/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPIContext.ts +++ b/sdk/managementgroups/arm-managementgroups/src/managementGroupsAPIContext.ts @@ -10,21 +10,27 @@ 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"; const packageName = "@azure/arm-managementgroups"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class ManagementGroupsAPIContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; /** * Initializes a new instance of the ManagementGroupsAPI class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ManagementGroupsAPIOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.ManagementGroupsAPIOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/managementpartner/arm-managementpartner/README.md b/sdk/managementpartner/arm-managementpartner/README.md index e9b35016c5f2..4ecea3ef1e7e 100644 --- a/sdk/managementpartner/arm-managementpartner/README.md +++ b/sdk/managementpartner/arm-managementpartner/README.md @@ -1,91 +1,101 @@ ## Azure ACEProvisioningManagementPartnerAPI SDK for JavaScript -This package contains an isomorphic SDK for ACEProvisioningManagementPartnerAPI. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ACEProvisioningManagementPartnerAPI. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-managementpartner +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-managementpartner` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-managementpartner @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. + ### How to use -#### nodejs - Authentication, client creation and get partner as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and get partner as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ACEProvisioningManagementPartnerAPI, ACEProvisioningManagementPartnerAPIModels, ACEProvisioningManagementPartnerAPIMappers } from "@azure/arm-managementpartner"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ACEProvisioningManagementPartnerAPI } = require("@azure/arm-managementpartner"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ACEProvisioningManagementPartnerAPI(creds, subscriptionId); - const partnerId = "testpartnerId"; - client.partner.get(partnerId).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ACEProvisioningManagementPartnerAPI(creds, subscriptionId); +const partnerId = "testpartnerId"; +client.partner.get(partnerId).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get partner as an example written in JavaScript. +#### browser - Authentication, client creation, and get partner as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-managementpartner sample - - + @@ -97,5 +107,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmanagementpartner%2Farm-managementpartner%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/managementpartner/arm-managementpartner/README.png) diff --git a/sdk/managementpartner/arm-managementpartner/package.json b/sdk/managementpartner/arm-managementpartner/package.json index 6c2b42a7f552..87755c6ddcf8 100644 --- a/sdk/managementpartner/arm-managementpartner/package.json +++ b/sdk/managementpartner/arm-managementpartner/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-managementpartner", "author": "Microsoft Corporation", "description": "ACEProvisioningManagementPartnerAPI Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/aCEProvisioningManagementPartnerAPI.js", "types": "./esm/aCEProvisioningManagementPartnerAPI.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/managementpartner/arm-managementpartner/src/aCEProvisioningManagementPartnerAPI.ts b/sdk/managementpartner/arm-managementpartner/src/aCEProvisioningManagementPartnerAPI.ts index 0fdeb8e0ae10..3c4f0dc0ef4b 100644 --- a/sdk/managementpartner/arm-managementpartner/src/aCEProvisioningManagementPartnerAPI.ts +++ b/sdk/managementpartner/arm-managementpartner/src/aCEProvisioningManagementPartnerAPI.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,10 +23,15 @@ class ACEProvisioningManagementPartnerAPI extends ACEProvisioningManagementPartn /** * Initializes a new instance of the ACEProvisioningManagementPartnerAPI class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ACEProvisioningManagementPartnerAPIOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.ACEProvisioningManagementPartnerAPIOptions) { super(credentials, options); this.partner = new operations.Partner(this); this.operation = new operations.Operation(this); diff --git a/sdk/managementpartner/arm-managementpartner/src/aCEProvisioningManagementPartnerAPIContext.ts b/sdk/managementpartner/arm-managementpartner/src/aCEProvisioningManagementPartnerAPIContext.ts index 6f295935fd1d..d034c0794f34 100644 --- a/sdk/managementpartner/arm-managementpartner/src/aCEProvisioningManagementPartnerAPIContext.ts +++ b/sdk/managementpartner/arm-managementpartner/src/aCEProvisioningManagementPartnerAPIContext.ts @@ -10,21 +10,27 @@ 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"; const packageName = "@azure/arm-managementpartner"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class ACEProvisioningManagementPartnerAPIContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; /** * Initializes a new instance of the ACEProvisioningManagementPartnerAPI class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ACEProvisioningManagementPartnerAPIOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.ACEProvisioningManagementPartnerAPIOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/maps/arm-maps/README.md b/sdk/maps/arm-maps/README.md index b51262189aba..446851722704 100644 --- a/sdk/maps/arm-maps/README.md +++ b/sdk/maps/arm-maps/README.md @@ -1,67 +1,75 @@ ## Azure AzureMapsManagementClient SDK for JavaScript -This package contains an isomorphic SDK for AzureMapsManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMapsManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-maps` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-maps +npm install --save @azure/arm-maps @azure/identity ``` -### How to use +> **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. -#### nodejs - client creation and get accounts as an example written in TypeScript. +### How to use -##### Install @azure/ms-rest-nodeauth +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +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. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get accounts as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package - -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { AzureMapsManagementClient } = require("@azure/arm-maps"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth - .interactiveLogin() - .then((creds) => { - const client = new AzureMapsManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const accountName = "testaccountName"; - client.accounts.get(resourceGroupName, accountName).then((result) => { - console.log("The result is:"); - console.log(result); - }); - }) - .catch((err) => { - console.error(err); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new AzureMapsManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const accountName = "testaccountName"; +client.accounts.get(resourceGroupName, accountName).then((result) => { + console.log("The result is:"); + console.log(result); +}).catch((err) => { + console.log("An error occurred:"); + console.error(err); +}); ``` -#### browser - Authentication, client creation and get accounts as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and get accounts as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html ```html @@ -69,34 +77,27 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to @azure/arm-maps sample - - + diff --git a/sdk/maps/arm-maps/package.json b/sdk/maps/arm-maps/package.json index dad087f10ae7..c29a46be1047 100644 --- a/sdk/maps/arm-maps/package.json +++ b/sdk/maps/arm-maps/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-maps", "author": "Microsoft Corporation", "description": "AzureMapsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.0.0", + "version": "2.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/azureMapsManagementClient.js", "types": "./esm/azureMapsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/maps/arm-maps/src/azureMapsManagementClient.ts b/sdk/maps/arm-maps/src/azureMapsManagementClient.ts index 57e460bf2f28..b0bdead1332f 100644 --- a/sdk/maps/arm-maps/src/azureMapsManagementClient.ts +++ b/sdk/maps/arm-maps/src/azureMapsManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -21,12 +22,17 @@ class AzureMapsManagementClient extends AzureMapsManagementClientContext { /** * Initializes a new instance of the AzureMapsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMapsManagementClientOptions ) { diff --git a/sdk/maps/arm-maps/src/azureMapsManagementClientContext.ts b/sdk/maps/arm-maps/src/azureMapsManagementClientContext.ts index 38d1304d4cdc..3cdd356d6513 100644 --- a/sdk/maps/arm-maps/src/azureMapsManagementClientContext.ts +++ b/sdk/maps/arm-maps/src/azureMapsManagementClientContext.ts @@ -9,24 +9,30 @@ 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"; const packageName = "@azure/arm-maps"; -const packageVersion = "2.0.0"; +const packageVersion = "2.1.0"; export class AzureMapsManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the AzureMapsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMapsManagementClientOptions ) { diff --git a/sdk/mariadb/arm-mariadb/README.md b/sdk/mariadb/arm-mariadb/README.md index 7a1dfd50bfe0..b42842e33d35 100644 --- a/sdk/mariadb/arm-mariadb/README.md +++ b/sdk/mariadb/arm-mariadb/README.md @@ -1,93 +1,103 @@ ## Azure MariaDBManagementClient SDK for JavaScript -This package contains an isomorphic SDK for MariaDBManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MariaDBManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-mariadb` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-mariadb +npm install --save @azure/arm-mariadb @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. + ### How to use -#### nodejs - Authentication, client creation and get servers as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and get servers as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MariaDBManagementClient, MariaDBManagementModels, MariaDBManagementMappers } from "@azure/arm-mariadb"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MariaDBManagementClient } = require("@azure/arm-mariadb"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MariaDBManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const serverName = "testserverName"; - client.servers.get(resourceGroupName, serverName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MariaDBManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const serverName = "testserverName"; +client.servers.get(resourceGroupName, serverName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get servers as an example written in JavaScript. +#### browser - Authentication, client creation, and get servers as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-mariadb sample - - + @@ -99,4 +109,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmariadb%2Farm-mariadb%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/mariadb/arm-mariadb/README.png) diff --git a/sdk/mariadb/arm-mariadb/package.json b/sdk/mariadb/arm-mariadb/package.json index c7d9bf80cc17..a98cd21557d3 100644 --- a/sdk/mariadb/arm-mariadb/package.json +++ b/sdk/mariadb/arm-mariadb/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-mariadb", "author": "Microsoft Corporation", "description": "MariaDBManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.4.0", + "version": "1.5.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/mariaDBManagementClient.js", "types": "./esm/mariaDBManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/mariadb/arm-mariadb/src/mariaDBManagementClient.ts b/sdk/mariadb/arm-mariadb/src/mariaDBManagementClient.ts index b88492aa13ab..10062e5341a4 100644 --- a/sdk/mariadb/arm-mariadb/src/mariaDBManagementClient.ts +++ b/sdk/mariadb/arm-mariadb/src/mariaDBManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -31,11 +32,16 @@ class MariaDBManagementClient extends MariaDBManagementClientContext { /** * Initializes a new instance of the MariaDBManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 that identifies an Azure subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MariaDBManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MariaDBManagementClientOptions) { super(credentials, subscriptionId, options); this.servers = new operations.Servers(this); this.replicas = new operations.Replicas(this); diff --git a/sdk/mariadb/arm-mariadb/src/mariaDBManagementClientContext.ts b/sdk/mariadb/arm-mariadb/src/mariaDBManagementClientContext.ts index 9c249c826287..76f958e26eb0 100644 --- a/sdk/mariadb/arm-mariadb/src/mariaDBManagementClientContext.ts +++ b/sdk/mariadb/arm-mariadb/src/mariaDBManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-mariadb"; -const packageVersion = "1.4.0"; +const packageVersion = "1.5.0"; export class MariaDBManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the MariaDBManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 that identifies an Azure subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MariaDBManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MariaDBManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/marketplaceordering/arm-marketplaceordering/README.md b/sdk/marketplaceordering/arm-marketplaceordering/README.md index 3a43a4a5cfcb..6ed7902aeec8 100644 --- a/sdk/marketplaceordering/arm-marketplaceordering/README.md +++ b/sdk/marketplaceordering/arm-marketplaceordering/README.md @@ -1,96 +1,105 @@ ## Azure MarketplaceOrderingAgreements SDK for JavaScript -This package contains an isomorphic SDK for MarketplaceOrderingAgreements. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MarketplaceOrderingAgreements. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-marketplaceordering` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-marketplaceordering +npm install --save @azure/arm-marketplaceordering @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. + ### How to use -#### nodejs - Authentication, client creation and get marketplaceAgreements as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get marketplaceAgreements as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MarketplaceOrderingAgreements, MarketplaceOrderingAgreementsModels, MarketplaceOrderingAgreementsMappers } from "@azure/arm-marketplaceordering"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MarketplaceOrderingAgreements } = require("@azure/arm-marketplaceordering"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MarketplaceOrderingAgreements(creds, subscriptionId); - const publisherId = "testpublisherId"; - const offerId = "testofferId"; - const planId = "testplanId"; - client.marketplaceAgreements.get(publisherId, offerId, planId).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MarketplaceOrderingAgreements(creds, subscriptionId); +const publisherId = "testpublisherId"; +const offerId = "testofferId"; +const planId = "testplanId"; +client.marketplaceAgreements.get(publisherId, offerId, planId).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get marketplaceAgreements as an example written in JavaScript. +#### browser - Authentication, client creation, and get marketplaceAgreements as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-marketplaceordering sample - - + diff --git a/sdk/marketplaceordering/arm-marketplaceordering/package.json b/sdk/marketplaceordering/arm-marketplaceordering/package.json index 9a6cb2c9ae33..50a38366448e 100644 --- a/sdk/marketplaceordering/arm-marketplaceordering/package.json +++ b/sdk/marketplaceordering/arm-marketplaceordering/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-marketplaceordering", "author": "Microsoft Corporation", "description": "MarketplaceOrderingAgreements Library with typescript type definitions for node.js and browser.", - "version": "2.0.0", + "version": "2.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/marketplaceOrderingAgreements.js", "types": "./esm/marketplaceOrderingAgreements.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/marketplaceordering/arm-marketplaceordering/src/marketplaceOrderingAgreements.ts b/sdk/marketplaceordering/arm-marketplaceordering/src/marketplaceOrderingAgreements.ts index 3c7a63b3770e..754d16407f50 100644 --- a/sdk/marketplaceordering/arm-marketplaceordering/src/marketplaceOrderingAgreements.ts +++ b/sdk/marketplaceordering/arm-marketplaceordering/src/marketplaceOrderingAgreements.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class MarketplaceOrderingAgreements extends MarketplaceOrderingAgreementsContext /** * Initializes a new instance of the MarketplaceOrderingAgreements class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 that identifies an Azure subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MarketplaceOrderingAgreementsOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MarketplaceOrderingAgreementsOptions) { super(credentials, subscriptionId, options); this.marketplaceAgreements = new operations.MarketplaceAgreements(this); this.operations = new operations.Operations(this); diff --git a/sdk/marketplaceordering/arm-marketplaceordering/src/marketplaceOrderingAgreementsContext.ts b/sdk/marketplaceordering/arm-marketplaceordering/src/marketplaceOrderingAgreementsContext.ts index 75ba980477a6..bf8e240fbe8f 100644 --- a/sdk/marketplaceordering/arm-marketplaceordering/src/marketplaceOrderingAgreementsContext.ts +++ b/sdk/marketplaceordering/arm-marketplaceordering/src/marketplaceOrderingAgreementsContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-marketplaceordering"; -const packageVersion = "2.0.0"; +const packageVersion = "2.1.0"; export class MarketplaceOrderingAgreementsContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the MarketplaceOrderingAgreements class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 that identifies an Azure subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MarketplaceOrderingAgreementsOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MarketplaceOrderingAgreementsOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/mediaservices/arm-mediaservices/README.md b/sdk/mediaservices/arm-mediaservices/README.md index ab197cd0e915..3c961aee4d08 100644 --- a/sdk/mediaservices/arm-mediaservices/README.md +++ b/sdk/mediaservices/arm-mediaservices/README.md @@ -1,93 +1,103 @@ ## Azure AzureMediaServices SDK for JavaScript -This package contains an isomorphic SDK for AzureMediaServices. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMediaServices. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-mediaservices` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-mediaservices +npm install --save @azure/arm-mediaservices @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. + ### How to use -#### nodejs - client creation and list accountFilters as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list accountFilters as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { AzureMediaServices } = require("@azure/arm-mediaservices"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new AzureMediaServices(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const accountName = "testaccountName"; - client.accountFilters.list(resourceGroupName, accountName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new AzureMediaServices(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const accountName = "testaccountName"; +client.accountFilters.list(resourceGroupName, accountName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list accountFilters as an example written in JavaScript. +#### browser - Authentication, client creation, and list accountFilters as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-mediaservices sample - - + diff --git a/sdk/mediaservices/arm-mediaservices/package.json b/sdk/mediaservices/arm-mediaservices/package.json index ee22ec05d8f3..a419ba2f8db6 100644 --- a/sdk/mediaservices/arm-mediaservices/package.json +++ b/sdk/mediaservices/arm-mediaservices/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-mediaservices", "author": "Microsoft Corporation", "description": "AzureMediaServices Library with typescript type definitions for node.js and browser.", - "version": "8.1.0", + "version": "8.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/azureMediaServices.js", "types": "./esm/azureMediaServices.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts b/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts index a901bd17fb3b..126a25b0934f 100644 --- a/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts +++ b/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -35,11 +36,16 @@ class AzureMediaServices extends AzureMediaServicesContext { /** * Initializes a new instance of the AzureMediaServices class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 unique identifier for a Microsoft Azure subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMediaServicesOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMediaServicesOptions) { super(credentials, subscriptionId, options); this.accountFilters = new operations.AccountFilters(this); this.operations = new operations.Operations(this); diff --git a/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts b/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts index 02385a759766..2184590a3d49 100644 --- a/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts +++ b/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-mediaservices"; -const packageVersion = "8.1.0"; +const packageVersion = "8.2.0"; export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the AzureMediaServices class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 unique identifier for a Microsoft Azure subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMediaServicesOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMediaServicesOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/migrate/arm-migrate/README.md b/sdk/migrate/arm-migrate/README.md index 6e9f375c655e..e233b2367ac2 100644 --- a/sdk/migrate/arm-migrate/README.md +++ b/sdk/migrate/arm-migrate/README.md @@ -1,91 +1,101 @@ ## Azure AzureMigrate SDK for JavaScript -This package contains an isomorphic SDK for AzureMigrate. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMigrate. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-migrate +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-migrate` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-migrate @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. + ### How to use -#### nodejs - Authentication, client creation and get assessmentOptions as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and get assessmentOptions as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { AzureMigrate, AzureMigrateModels, AzureMigrateMappers } from "@azure/arm-migrate"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { AzureMigrate } = require("@azure/arm-migrate"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new AzureMigrate(creds, subscriptionId); - const locationName = "testlocationName"; - client.assessmentOptions.get(locationName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new AzureMigrate(creds, subscriptionId); +const locationName = "testlocationName"; +client.assessmentOptions.get(locationName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get assessmentOptions as an example written in JavaScript. +#### browser - Authentication, client creation, and get assessmentOptions as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-migrate sample - - + @@ -97,5 +107,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmigrate%2Farm-migrate%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/migrate/arm-migrate/README.png) diff --git a/sdk/migrate/arm-migrate/package.json b/sdk/migrate/arm-migrate/package.json index 252b6205c733..68c0cb360621 100644 --- a/sdk/migrate/arm-migrate/package.json +++ b/sdk/migrate/arm-migrate/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-migrate", "author": "Microsoft Corporation", "description": "AzureMigrate Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/azureMigrate.js", "types": "./esm/azureMigrate.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/migrate/arm-migrate/src/azureMigrate.ts b/sdk/migrate/arm-migrate/src/azureMigrate.ts index 48e178cca807..5f7f42d37bd6 100644 --- a/sdk/migrate/arm-migrate/src/azureMigrate.ts +++ b/sdk/migrate/arm-migrate/src/azureMigrate.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -28,11 +29,16 @@ class AzureMigrate extends AzureMigrateContext { /** * Initializes a new instance of the AzureMigrate class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure Subscription Id in which project was created. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMigrateOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMigrateOptions) { super(credentials, subscriptionId, options); this.location = new operations.Location(this); this.assessmentOptions = new operations.AssessmentOptions(this); diff --git a/sdk/migrate/arm-migrate/src/azureMigrateContext.ts b/sdk/migrate/arm-migrate/src/azureMigrateContext.ts index 72bc3b910a84..4099555561c8 100644 --- a/sdk/migrate/arm-migrate/src/azureMigrateContext.ts +++ b/sdk/migrate/arm-migrate/src/azureMigrateContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-migrate"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class AzureMigrateContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the AzureMigrate class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure Subscription Id in which project was created. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMigrateOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMigrateOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/mixedreality/arm-mixedreality/README.md b/sdk/mixedreality/arm-mixedreality/README.md index e5d65b4492a4..ecdbf28cee8b 100644 --- a/sdk/mixedreality/arm-mixedreality/README.md +++ b/sdk/mixedreality/arm-mixedreality/README.md @@ -1,89 +1,100 @@ ## Azure MixedRealityClient SDK for JavaScript -This package contains an isomorphic SDK for MixedRealityClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MixedRealityClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-mixedreality` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-mixedreality +npm install --save @azure/arm-mixedreality @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. + ### How to use -#### nodejs - client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { MixedRealityClient } = require("@azure/arm-mixedreality"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MixedRealityClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MixedRealityClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-mixedreality sample - - + diff --git a/sdk/mixedreality/arm-mixedreality/package.json b/sdk/mixedreality/arm-mixedreality/package.json index 55fb6fa9e4e9..a311089dec27 100644 --- a/sdk/mixedreality/arm-mixedreality/package.json +++ b/sdk/mixedreality/arm-mixedreality/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-mixedreality", "author": "Microsoft Corporation", "description": "MixedRealityClient Library with typescript type definitions for node.js and browser.", - "version": "3.0.0", + "version": "3.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/mixedRealityClient.js", "types": "./esm/mixedRealityClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts index 2983d2d4fd0a..50e339d54004 100644 --- a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts +++ b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -23,12 +24,17 @@ class MixedRealityClient extends MixedRealityClientContext { /** * Initializes a new instance of the MixedRealityClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID. This is a GUID-formatted string (e.g. * 00000000-0000-0000-0000-000000000000) * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MixedRealityClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MixedRealityClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.spatialAnchorsAccounts = new operations.SpatialAnchorsAccounts(this); diff --git a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts index 16b8190b3d87..2866a422ebf6 100644 --- a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts +++ b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts @@ -9,24 +9,30 @@ 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"; const packageName = "@azure/arm-mixedreality"; -const packageVersion = "3.0.0"; +const packageVersion = "3.1.0"; export class MixedRealityClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the MixedRealityClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID. This is a GUID-formatted string (e.g. * 00000000-0000-0000-0000-000000000000) * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MixedRealityClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MixedRealityClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/README.md b/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/README.md index 5541c2706873..b0cccb154677 100644 --- a/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/README.md +++ b/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/README.md @@ -1,93 +1,103 @@ ## Azure MonitorManagementClient SDK for JavaScript -This package contains an isomorphic SDK for MonitorManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MonitorManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-monitor-profile-2019-03-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-monitor-profile-2019-03-01-hybrid +npm install --save @azure/arm-monitor-profile-2019-03-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and list metricDefinitions as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list metricDefinitions as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MonitorManagementClient, MonitorManagementModels, MonitorManagementMappers } from "@azure/arm-monitor-profile-2019-03-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MonitorManagementClient } = require("@azure/arm-monitor-profile-2019-03-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MonitorManagementClient(creds, subscriptionId); - const resourceUri = "testresourceUri"; - const metricnamespace = "testmetricnamespace"; - client.metricDefinitions.list(resourceUri, metricnamespace).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MonitorManagementClient(creds, subscriptionId); +const resourceUri = "testresourceUri"; +const metricnamespace = "testmetricnamespace"; +client.metricDefinitions.list(resourceUri, metricnamespace).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list metricDefinitions as an example written in JavaScript. +#### browser - Authentication, client creation, and list metricDefinitions as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-monitor-profile-2019-03-01-hybrid sample - - + @@ -99,5 +109,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmonitor%2Farm-monitor-profile-2019-03-01-hybrid%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/README.png) diff --git a/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/package.json b/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/package.json index d274ca5e8069..fcd2f1eada5d 100644 --- a/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/package.json +++ b/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-monitor-profile-2019-03-01-hybrid", "author": "Microsoft Corporation", "description": "MonitorManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -21,7 +22,7 @@ "module": "./esm/monitorManagementClient.js", "types": "./esm/monitorManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/src/monitorManagementClient.ts b/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/src/monitorManagementClient.ts index a84f753e3fe5..0cbf7f67005e 100644 --- a/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/src/monitorManagementClient.ts +++ b/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/src/monitorManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -26,10 +27,15 @@ class MonitorManagementClient extends MonitorManagementClientContext { /** * Initializes a new instance of the MonitorManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.MonitorManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.MonitorManagementClientOptions) { super(credentials, options); this.metricDefinitions = new operations.MetricDefinitions(this); this.metrics = new operations.Metrics(this); diff --git a/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/src/monitorManagementClientContext.ts b/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/src/monitorManagementClientContext.ts index 72abeb1f8294..e8bec3c05d7d 100644 --- a/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/src/monitorManagementClientContext.ts +++ b/sdk/monitor/arm-monitor-profile-2019-03-01-hybrid/src/monitorManagementClientContext.ts @@ -10,20 +10,26 @@ 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"; const packageName = "@azure/arm-monitor-profile-2019-03-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class MonitorManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; /** * Initializes a new instance of the MonitorManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.MonitorManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.MonitorManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/README.md b/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/README.md index 0ca4713df7df..7d6b556b862f 100644 --- a/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/README.md +++ b/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/README.md @@ -1,94 +1,103 @@ ## Azure MonitorManagementClient SDK for JavaScript -This package contains an isomorphic SDK for MonitorManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MonitorManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-monitor-profile-2020-09-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-monitor-profile-2020-09-01-hybrid +npm install --save @azure/arm-monitor-profile-2020-09-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and list metricDefinitions as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list metricDefinitions as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MonitorManagementClient, MonitorManagementModels, MonitorManagementMappers } from "@azure/arm-monitor-profile-2020-09-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MonitorManagementClient } = require("@azure/arm-monitor-profile-2020-09-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MonitorManagementClient(creds, subscriptionId); - const resourceUri = "testresourceUri"; - const metricnamespace = "testmetricnamespace"; - client.metricDefinitions.list(resourceUri, metricnamespace).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MonitorManagementClient(creds, subscriptionId); +const resourceUri = "testresourceUri"; +const metricnamespace = "testmetricnamespace"; +client.metricDefinitions.list(resourceUri, metricnamespace).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list metricDefinitions as an example written in JavaScript. +#### browser - Authentication, client creation, and list metricDefinitions as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-monitor-profile-2020-09-01-hybrid sample - - + diff --git a/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/package.json b/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/package.json index d9354f56c467..56a5df5060ad 100644 --- a/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/package.json +++ b/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-monitor-profile-2020-09-01-hybrid", "author": "Microsoft Corporation", "description": "MonitorManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/monitorManagementClient.js", "types": "./esm/monitorManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/src/monitorManagementClient.ts b/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/src/monitorManagementClient.ts index a84f753e3fe5..0cbf7f67005e 100644 --- a/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/src/monitorManagementClient.ts +++ b/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/src/monitorManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -26,10 +27,15 @@ class MonitorManagementClient extends MonitorManagementClientContext { /** * Initializes a new instance of the MonitorManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.MonitorManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.MonitorManagementClientOptions) { super(credentials, options); this.metricDefinitions = new operations.MetricDefinitions(this); this.metrics = new operations.Metrics(this); diff --git a/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/src/monitorManagementClientContext.ts b/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/src/monitorManagementClientContext.ts index 9e357d10e244..c467ad8e9122 100644 --- a/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/src/monitorManagementClientContext.ts +++ b/sdk/monitor/arm-monitor-profile-2020-09-01-hybrid/src/monitorManagementClientContext.ts @@ -10,20 +10,26 @@ 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"; const packageName = "@azure/arm-monitor-profile-2020-09-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class MonitorManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; /** * Initializes a new instance of the MonitorManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.MonitorManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.MonitorManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/monitor/arm-monitor/README.md b/sdk/monitor/arm-monitor/README.md index 04373a170952..34c0456e346b 100644 --- a/sdk/monitor/arm-monitor/README.md +++ b/sdk/monitor/arm-monitor/README.md @@ -1,92 +1,101 @@ ## Azure MonitorManagementClient SDK for JavaScript -This package contains an isomorphic SDK for MonitorManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MonitorManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-monitor` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-monitor +npm install --save @azure/arm-monitor @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. + ### How to use -#### nodejs - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and listByResourceGroup autoscaleSettings as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MonitorManagementClient, MonitorManagementModels, MonitorManagementMappers } from "@azure/arm-monitor"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MonitorManagementClient } = require("@azure/arm-monitor"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MonitorManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - client.autoscaleSettings.listByResourceGroup(resourceGroupName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MonitorManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +client.autoscaleSettings.listByResourceGroup(resourceGroupName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in JavaScript. +#### browser - Authentication, client creation, and listByResourceGroup autoscaleSettings as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-monitor sample - - + @@ -98,4 +107,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmonitor%2Farm-monitor%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/monitor/arm-monitor/README.png) diff --git a/sdk/monitor/arm-monitor/package.json b/sdk/monitor/arm-monitor/package.json index 2b40038fbd88..aa2917699e69 100644 --- a/sdk/monitor/arm-monitor/package.json +++ b/sdk/monitor/arm-monitor/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-monitor", "author": "Microsoft Corporation", "description": "MonitorManagementClient Library with typescript type definitions for node.js and browser.", - "version": "6.0.0", + "version": "6.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/monitorManagementClient.js", "types": "./esm/monitorManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/monitor/arm-monitor/src/monitorManagementClient.ts b/sdk/monitor/arm-monitor/src/monitorManagementClient.ts index a498d7b03d34..8f76eb98ccbb 100644 --- a/sdk/monitor/arm-monitor/src/monitorManagementClient.ts +++ b/sdk/monitor/arm-monitor/src/monitorManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -41,11 +42,16 @@ class MonitorManagementClient extends MonitorManagementClientContext { /** * Initializes a new instance of the MonitorManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription Id. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { super(credentials, subscriptionId, options); this.autoscaleSettings = new operations.AutoscaleSettings(this); this.operations = new operations.Operations(this); diff --git a/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts b/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts index aacdc007667d..3212c44711f3 100644 --- a/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts +++ b/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts @@ -10,22 +10,28 @@ 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"; const packageName = "@azure/arm-monitor"; -const packageVersion = "5.4.0"; +const packageVersion = "6.1.0"; export class MonitorManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; /** * Initializes a new instance of the MonitorManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription Id. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/msi/arm-msi/README.md b/sdk/msi/arm-msi/README.md index c3f9cb728ff3..f4e16fd5e9a5 100644 --- a/sdk/msi/arm-msi/README.md +++ b/sdk/msi/arm-msi/README.md @@ -1,89 +1,100 @@ ## Azure ManagedServiceIdentityClient SDK for JavaScript -This package contains an isomorphic SDK for ManagedServiceIdentityClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ManagedServiceIdentityClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-msi +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-msi` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-msi @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ManagedServiceIdentityClient, ManagedServiceIdentityModels, ManagedServiceIdentityMappers } from "@azure/arm-msi"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ManagedServiceIdentityClient } = require("@azure/arm-msi"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ManagedServiceIdentityClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ManagedServiceIdentityClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-msi sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmsi%2Farm-msi%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/msi/arm-msi/README.png) diff --git a/sdk/msi/arm-msi/package.json b/sdk/msi/arm-msi/package.json index fde1b3ef62bb..03f9c73d485c 100644 --- a/sdk/msi/arm-msi/package.json +++ b/sdk/msi/arm-msi/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-msi", "author": "Microsoft Corporation", "description": "ManagedServiceIdentityClient Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/managedServiceIdentityClient.js", "types": "./esm/managedServiceIdentityClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/msi/arm-msi/src/managedServiceIdentityClient.ts b/sdk/msi/arm-msi/src/managedServiceIdentityClient.ts index 2360b79199a9..75e4af9098c7 100644 --- a/sdk/msi/arm-msi/src/managedServiceIdentityClient.ts +++ b/sdk/msi/arm-msi/src/managedServiceIdentityClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class ManagedServiceIdentityClient extends ManagedServiceIdentityClientContext { /** * Initializes a new instance of the ManagedServiceIdentityClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Id of the Subscription to which the identity belongs. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagedServiceIdentityClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagedServiceIdentityClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.userAssignedIdentities = new operations.UserAssignedIdentities(this); diff --git a/sdk/msi/arm-msi/src/managedServiceIdentityClientContext.ts b/sdk/msi/arm-msi/src/managedServiceIdentityClientContext.ts index f96cd5df3f4a..884230d49329 100644 --- a/sdk/msi/arm-msi/src/managedServiceIdentityClientContext.ts +++ b/sdk/msi/arm-msi/src/managedServiceIdentityClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-msi"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class ManagedServiceIdentityClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ManagedServiceIdentityClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Id of the Subscription to which the identity belongs. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ManagedServiceIdentityClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagedServiceIdentityClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/mysql/arm-mysql/README.md b/sdk/mysql/arm-mysql/README.md index 9c51be4833fe..a2ef706bd607 100644 --- a/sdk/mysql/arm-mysql/README.md +++ b/sdk/mysql/arm-mysql/README.md @@ -1,93 +1,103 @@ ## Azure MySQLManagementClient SDK for JavaScript -This package contains an isomorphic SDK for MySQLManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MySQLManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-mysql` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-mysql +npm install --save @azure/arm-mysql @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. + ### How to use -#### nodejs - Authentication, client creation and get servers as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and get servers as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MySQLManagementClient, MySQLManagementModels, MySQLManagementMappers } from "@azure/arm-mysql"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MySQLManagementClient } = require("@azure/arm-mysql"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MySQLManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const serverName = "testserverName"; - client.servers.get(resourceGroupName, serverName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MySQLManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const serverName = "testserverName"; +client.servers.get(resourceGroupName, serverName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get servers as an example written in JavaScript. +#### browser - Authentication, client creation, and get servers as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-mysql sample - - + @@ -99,4 +109,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmysql%2Farm-mysql%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/mysql/arm-mysql/README.png) diff --git a/sdk/mysql/arm-mysql/package.json b/sdk/mysql/arm-mysql/package.json index 002baef71cd0..7a74704f28d7 100644 --- a/sdk/mysql/arm-mysql/package.json +++ b/sdk/mysql/arm-mysql/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-mysql", "author": "Microsoft Corporation", "description": "MySQLManagementClient Library with typescript type definitions for node.js and browser.", - "version": "3.3.0", + "version": "3.4.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/mySQLManagementClient.js", "types": "./esm/mySQLManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/mysql/arm-mysql/src/mySQLManagementClient.ts b/sdk/mysql/arm-mysql/src/mySQLManagementClient.ts index aa67d2e2852d..f128cfad2096 100644 --- a/sdk/mysql/arm-mysql/src/mySQLManagementClient.ts +++ b/sdk/mysql/arm-mysql/src/mySQLManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -31,11 +32,16 @@ class MySQLManagementClient extends MySQLManagementClientContext { /** * Initializes a new instance of the MySQLManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 that identifies an Azure subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MySQLManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MySQLManagementClientOptions) { super(credentials, subscriptionId, options); this.servers = new operations.Servers(this); this.replicas = new operations.Replicas(this); diff --git a/sdk/mysql/arm-mysql/src/mySQLManagementClientContext.ts b/sdk/mysql/arm-mysql/src/mySQLManagementClientContext.ts index 7171fdfd9303..91c35fd07caf 100644 --- a/sdk/mysql/arm-mysql/src/mySQLManagementClientContext.ts +++ b/sdk/mysql/arm-mysql/src/mySQLManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-mysql"; -const packageVersion = "3.3.0"; +const packageVersion = "3.4.0"; export class MySQLManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the MySQLManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 that identifies an Azure subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MySQLManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MySQLManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/network/arm-network-profile-2019-03-01-hybrid/README.md b/sdk/network/arm-network-profile-2019-03-01-hybrid/README.md index 076cfd4d120d..492ae995e13c 100644 --- a/sdk/network/arm-network-profile-2019-03-01-hybrid/README.md +++ b/sdk/network/arm-network-profile-2019-03-01-hybrid/README.md @@ -1,95 +1,105 @@ ## Azure NetworkManagementClient SDK for JavaScript -This package contains an isomorphic SDK for NetworkManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for NetworkManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-network-profile-2019-03-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-network-profile-2019-03-01-hybrid +npm install --save @azure/arm-network-profile-2019-03-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and get loadBalancers as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and get loadBalancers as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { NetworkManagementClient, NetworkManagementModels, NetworkManagementMappers } from "@azure/arm-network-profile-2019-03-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { NetworkManagementClient } = require("@azure/arm-network-profile-2019-03-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new NetworkManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const loadBalancerName = "testloadBalancerName"; - const expand = "testexpand"; - client.loadBalancers.get(resourceGroupName, loadBalancerName, expand).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new NetworkManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const loadBalancerName = "testloadBalancerName"; +const expand = "testexpand"; +client.loadBalancers.get(resourceGroupName, loadBalancerName, expand).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get loadBalancers as an example written in JavaScript. +#### browser - Authentication, client creation, and get loadBalancers as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-network-profile-2019-03-01-hybrid sample - - + @@ -101,5 +111,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fnetwork%2Farm-network-profile-2019-03-01-hybrid%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/network/arm-network-profile-2019-03-01-hybrid/README.png) diff --git a/sdk/network/arm-network-profile-2019-03-01-hybrid/package.json b/sdk/network/arm-network-profile-2019-03-01-hybrid/package.json index f3f77e93ae7d..d0ad619a9739 100644 --- a/sdk/network/arm-network-profile-2019-03-01-hybrid/package.json +++ b/sdk/network/arm-network-profile-2019-03-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-network-profile-2019-03-01-hybrid", "author": "Microsoft Corporation", "description": "NetworkManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -21,7 +22,7 @@ "module": "./esm/networkManagementClient.js", "types": "./esm/networkManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/network/arm-network-profile-2019-03-01-hybrid/src/networkManagementClient.ts b/sdk/network/arm-network-profile-2019-03-01-hybrid/src/networkManagementClient.ts index f9e40168c7d6..4368d1129f55 100644 --- a/sdk/network/arm-network-profile-2019-03-01-hybrid/src/networkManagementClient.ts +++ b/sdk/network/arm-network-profile-2019-03-01-hybrid/src/networkManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -43,12 +44,17 @@ class NetworkManagementClient extends NetworkManagementClientContext { /** * Initializes a new instance of the NetworkManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { super(credentials, subscriptionId, options); this.loadBalancers = new operations.LoadBalancers(this); this.loadBalancerBackendAddressPools = new operations.LoadBalancerBackendAddressPools(this); diff --git a/sdk/network/arm-network-profile-2019-03-01-hybrid/src/networkManagementClientContext.ts b/sdk/network/arm-network-profile-2019-03-01-hybrid/src/networkManagementClientContext.ts index ce45aa70b761..40f0985559df 100644 --- a/sdk/network/arm-network-profile-2019-03-01-hybrid/src/networkManagementClientContext.ts +++ b/sdk/network/arm-network-profile-2019-03-01-hybrid/src/networkManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-network-profile-2019-03-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class NetworkManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the NetworkManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/README.md b/sdk/network/arm-network-profile-2020-09-01-hybrid/README.md index 046cb52643b3..e4edc45dbfff 100644 --- a/sdk/network/arm-network-profile-2020-09-01-hybrid/README.md +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/README.md @@ -1,94 +1,103 @@ ## Azure NetworkManagementClient SDK for JavaScript -This package contains an isomorphic SDK for NetworkManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for NetworkManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-network-profile-2020-09-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-network-profile-2020-09-01-hybrid +npm install --save @azure/arm-network-profile-2020-09-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and get virtualNetworkGateways as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get virtualNetworkGateways as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { NetworkManagementClient, NetworkManagementModels, NetworkManagementMappers } from "@azure/arm-network-profile-2020-09-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { NetworkManagementClient } = require("@azure/arm-network-profile-2020-09-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new NetworkManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const virtualNetworkGatewayName = "testvirtualNetworkGatewayName"; - client.virtualNetworkGateways.get(resourceGroupName, virtualNetworkGatewayName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new NetworkManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const virtualNetworkGatewayName = "testvirtualNetworkGatewayName"; +client.virtualNetworkGateways.get(resourceGroupName, virtualNetworkGatewayName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get virtualNetworkGateways as an example written in JavaScript. +#### browser - Authentication, client creation, and get virtualNetworkGateways as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-network-profile-2020-09-01-hybrid sample - - + diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/package.json b/sdk/network/arm-network-profile-2020-09-01-hybrid/package.json index ed79a4aceedc..c0005d66c673 100644 --- a/sdk/network/arm-network-profile-2020-09-01-hybrid/package.json +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-network-profile-2020-09-01-hybrid", "author": "Microsoft Corporation", "description": "NetworkManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/networkManagementClient.js", "types": "./esm/networkManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClient.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClient.ts index fb64d2a973d9..22f2be411cc0 100644 --- a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClient.ts +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -45,12 +46,17 @@ class NetworkManagementClient extends NetworkManagementClientContext { /** * Initializes a new instance of the NetworkManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { super(credentials, subscriptionId, options); this.virtualNetworkGateways = new operations.VirtualNetworkGateways(this); this.virtualNetworkGatewayConnections = new operations.VirtualNetworkGatewayConnections(this); diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClientContext.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClientContext.ts index f5b91c0455e5..01aecafce1fa 100644 --- a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClientContext.ts +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-network-profile-2020-09-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class NetworkManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the NetworkManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/notificationhubs/arm-notificationhubs/README.md b/sdk/notificationhubs/arm-notificationhubs/README.md index a532f90ee1d2..40aee75f4c3f 100644 --- a/sdk/notificationhubs/arm-notificationhubs/README.md +++ b/sdk/notificationhubs/arm-notificationhubs/README.md @@ -1,89 +1,100 @@ ## Azure NotificationHubsManagementClient SDK for JavaScript -This package contains an isomorphic SDK for NotificationHubsManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for NotificationHubsManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-notificationhubs +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-notificationhubs` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-notificationhubs @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { NotificationHubsManagementClient, NotificationHubsManagementModels, NotificationHubsManagementMappers } from "@azure/arm-notificationhubs"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new NotificationHubsManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new NotificationHubsManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-notificationhubs sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fnotificationhubs%2Farm-notificationhubs%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/notificationhubs/arm-notificationhubs/README.png) diff --git a/sdk/notificationhubs/arm-notificationhubs/package.json b/sdk/notificationhubs/arm-notificationhubs/package.json index 0f31c8842534..ee33b14f8407 100644 --- a/sdk/notificationhubs/arm-notificationhubs/package.json +++ b/sdk/notificationhubs/arm-notificationhubs/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-notificationhubs", "author": "Microsoft Corporation", "description": "NotificationHubsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.2.0", + "version": "1.3.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/notificationHubsManagementClient.js", "types": "./esm/notificationHubsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts b/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts index 75528c3e49ed..fe54974b5635 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -23,12 +24,17 @@ class NotificationHubsManagementClient extends NotificationHubsManagementClientC /** * Initializes a new instance of the NotificationHubsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.NotificationHubsManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.NotificationHubsManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.namespaces = new operations.Namespaces(this); diff --git a/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClientContext.ts b/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClientContext.ts index 3b6d5b8e08bf..6f05e39cb6bd 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClientContext.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-notificationhubs"; -const packageVersion = "0.1.0"; +const packageVersion = "1.3.0"; export class NotificationHubsManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the NotificationHubsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.NotificationHubsManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.NotificationHubsManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/operationalinsights/arm-operationalinsights/README.md b/sdk/operationalinsights/arm-operationalinsights/README.md index bf3a79c85aea..513d0855bfb6 100644 --- a/sdk/operationalinsights/arm-operationalinsights/README.md +++ b/sdk/operationalinsights/arm-operationalinsights/README.md @@ -1,93 +1,103 @@ ## Azure OperationalInsightsManagementClient SDK for JavaScript -This package contains an isomorphic SDK for OperationalInsightsManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for OperationalInsightsManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-operationalinsights` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-operationalinsights +npm install --save @azure/arm-operationalinsights @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. + ### How to use -#### nodejs - client creation and listByWorkspace dataExports as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and listByWorkspace dataExports as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { OperationalInsightsManagementClient } = require("@azure/arm-operationalinsights"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new OperationalInsightsManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const workspaceName = "testworkspaceName"; - client.dataExports.listByWorkspace(resourceGroupName, workspaceName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new OperationalInsightsManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const workspaceName = "testworkspaceName"; +client.dataExports.listByWorkspace(resourceGroupName, workspaceName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and listByWorkspace dataExports as an example written in JavaScript. +#### browser - Authentication, client creation, and listByWorkspace dataExports as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-operationalinsights sample - - + diff --git a/sdk/operationalinsights/arm-operationalinsights/package.json b/sdk/operationalinsights/arm-operationalinsights/package.json index c1c039dcd080..89e2cd8ef7dc 100644 --- a/sdk/operationalinsights/arm-operationalinsights/package.json +++ b/sdk/operationalinsights/arm-operationalinsights/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-operationalinsights", "author": "Microsoft Corporation", "description": "OperationalInsightsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "7.0.0", + "version": "7.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/operationalInsightsManagementClient.js", "types": "./esm/operationalInsightsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts index 0d6ac9045e4e..525b04c140bc 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -39,11 +40,16 @@ class OperationalInsightsManagementClient extends OperationalInsightsManagementC /** * Initializes a new instance of the OperationalInsightsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.OperationalInsightsManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.OperationalInsightsManagementClientOptions) { super(credentials, subscriptionId, options); this.dataExports = new operations.DataExports(this); this.dataSources = new operations.DataSources(this); diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts index fda0af09728d..1f39e7a95ac0 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-operationalinsights"; -const packageVersion = "7.0.0"; +const packageVersion = "7.1.0"; export class OperationalInsightsManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the OperationalInsightsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.OperationalInsightsManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.OperationalInsightsManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/operationsmanagement/arm-operations/README.md b/sdk/operationsmanagement/arm-operations/README.md index b2c9efb3eecc..43f7f84ffe30 100644 --- a/sdk/operationsmanagement/arm-operations/README.md +++ b/sdk/operationsmanagement/arm-operations/README.md @@ -1,93 +1,103 @@ ## Azure OperationsManagementClient SDK for JavaScript -This package contains an isomorphic SDK for OperationsManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for OperationsManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-operations +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-operations` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-operations @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. + ### How to use -#### nodejs - Authentication, client creation and get solutions as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and get solutions as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { OperationsManagementClient, OperationsManagementModels, OperationsManagementMappers } from "@azure/arm-operations"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { OperationsManagementClient } = require("@azure/arm-operations"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new OperationsManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const solutionName = "testsolutionName"; - client.solutions.get(resourceGroupName, solutionName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new OperationsManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const solutionName = "testsolutionName"; +client.solutions.get(resourceGroupName, solutionName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get solutions as an example written in JavaScript. +#### browser - Authentication, client creation, and get solutions as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-operations sample - - + @@ -99,5 +109,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Foperationsmanagement%2Farm-operations%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/operationsmanagement/arm-operations/README.png) diff --git a/sdk/operationsmanagement/arm-operations/package.json b/sdk/operationsmanagement/arm-operations/package.json index 56e114a52dd6..b26129943ce8 100644 --- a/sdk/operationsmanagement/arm-operations/package.json +++ b/sdk/operationsmanagement/arm-operations/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-operations", "author": "Microsoft Corporation", "description": "OperationsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.1.0", + "version": "2.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/operationsManagementClient.js", "types": "./esm/operationsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/operationsmanagement/arm-operations/src/operationsManagementClient.ts b/sdk/operationsmanagement/arm-operations/src/operationsManagementClient.ts index cc22a452f329..9097e6a74ebb 100644 --- a/sdk/operationsmanagement/arm-operations/src/operationsManagementClient.ts +++ b/sdk/operationsmanagement/arm-operations/src/operationsManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -24,7 +25,12 @@ class OperationsManagementClient extends OperationsManagementClientContext { /** * Initializes a new instance of the OperationsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param providerName Provider name for the parent resource. @@ -32,7 +38,7 @@ class OperationsManagementClient extends OperationsManagementClientContext { * @param resourceName Parent resource name. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, providerName: string, resourceType: string, resourceName: string, options?: Models.OperationsManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, providerName: string, resourceType: string, resourceName: string, options?: Models.OperationsManagementClientOptions) { super(credentials, subscriptionId, providerName, resourceType, resourceName, options); this.solutions = new operations.Solutions(this); this.managementAssociations = new operations.ManagementAssociations(this); diff --git a/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts b/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts index 9902f9b551f6..54f7c62ac6d4 100644 --- a/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts +++ b/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts @@ -10,13 +10,14 @@ 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"; const packageName = "@azure/arm-operations"; -const packageVersion = "0.1.0"; +const packageVersion = "2.2.0"; export class OperationsManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; providerName: string; @@ -25,7 +26,12 @@ export class OperationsManagementClientContext extends msRestAzure.AzureServiceC /** * Initializes a new instance of the OperationsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param providerName Provider name for the parent resource. @@ -33,7 +39,7 @@ export class OperationsManagementClientContext extends msRestAzure.AzureServiceC * @param resourceName Parent resource name. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, providerName: string, resourceType: string, resourceName: string, options?: Models.OperationsManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, providerName: string, resourceType: string, resourceName: string, options?: Models.OperationsManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/peering/arm-peering/README.md b/sdk/peering/arm-peering/README.md index 8cfb0a190945..6386ca12a1da 100644 --- a/sdk/peering/arm-peering/README.md +++ b/sdk/peering/arm-peering/README.md @@ -1,94 +1,103 @@ ## Azure PeeringManagementClient SDK for JavaScript -This package contains an isomorphic SDK for PeeringManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PeeringManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-peering` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-peering +npm install --save @azure/arm-peering @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. + ### How to use -#### nodejs - Authentication, client creation and list legacyPeerings as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list legacyPeerings as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { PeeringManagementClient, PeeringManagementModels, PeeringManagementMappers } from "@azure/arm-peering"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { PeeringManagementClient } = require("@azure/arm-peering"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new PeeringManagementClient(creds, subscriptionId); - const peeringLocation = "testpeeringLocation"; - const kind = "Direct"; - client.legacyPeerings.list(peeringLocation, kind).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new PeeringManagementClient(creds, subscriptionId); +const peeringLocation = "testpeeringLocation"; +const kind = "Direct"; +client.legacyPeerings.list(peeringLocation, kind).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list legacyPeerings as an example written in JavaScript. +#### browser - Authentication, client creation, and list legacyPeerings as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-peering sample - - + @@ -100,4 +109,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fpeering%2Farm-peering%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/peering/arm-peering/README.png) diff --git a/sdk/peering/arm-peering/package.json b/sdk/peering/arm-peering/package.json index c7c2b7e47341..5b286fc9c531 100644 --- a/sdk/peering/arm-peering/package.json +++ b/sdk/peering/arm-peering/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-peering", "author": "Microsoft Corporation", "description": "PeeringManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/peeringManagementClient.js", "types": "./esm/peeringManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/peering/arm-peering/src/peeringManagementClient.ts b/sdk/peering/arm-peering/src/peeringManagementClient.ts index bacf9dc4aabe..3fa8f9805ac7 100644 --- a/sdk/peering/arm-peering/src/peeringManagementClient.ts +++ b/sdk/peering/arm-peering/src/peeringManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -31,11 +32,16 @@ class PeeringManagementClient extends PeeringManagementClientContext { /** * Initializes a new instance of the PeeringManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PeeringManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PeeringManagementClientOptions) { super(credentials, subscriptionId, options); this.legacyPeerings = new operations.LegacyPeerings(this); this.operations = new operations.Operations(this); diff --git a/sdk/peering/arm-peering/src/peeringManagementClientContext.ts b/sdk/peering/arm-peering/src/peeringManagementClientContext.ts index 33fd6ae85bd7..ff6b10566b38 100644 --- a/sdk/peering/arm-peering/src/peeringManagementClientContext.ts +++ b/sdk/peering/arm-peering/src/peeringManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-peering"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class PeeringManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the PeeringManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PeeringManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PeeringManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/policy/arm-policy-profile-2020-09-01-hybrid/README.md b/sdk/policy/arm-policy-profile-2020-09-01-hybrid/README.md index 277e5ca69bd8..d18fc2ab80ea 100644 --- a/sdk/policy/arm-policy-profile-2020-09-01-hybrid/README.md +++ b/sdk/policy/arm-policy-profile-2020-09-01-hybrid/README.md @@ -1,92 +1,101 @@ ## Azure PolicyClient SDK for JavaScript -This package contains an isomorphic SDK for PolicyClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PolicyClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-policy-profile-2020-09-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-policy-profile-2020-09-01-hybrid +npm install --save @azure/arm-policy-profile-2020-09-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and get policyDefinitions as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get policyDefinitions as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { PolicyClient, PolicyModels, PolicyMappers } from "@azure/arm-policy-profile-2020-09-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { PolicyClient } = require("@azure/arm-policy-profile-2020-09-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new PolicyClient(creds, subscriptionId); - const policyDefinitionName = "testpolicyDefinitionName"; - client.policyDefinitions.get(policyDefinitionName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new PolicyClient(creds, subscriptionId); +const policyDefinitionName = "testpolicyDefinitionName"; +client.policyDefinitions.get(policyDefinitionName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get policyDefinitions as an example written in JavaScript. +#### browser - Authentication, client creation, and get policyDefinitions as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-policy-profile-2020-09-01-hybrid sample - - + diff --git a/sdk/policy/arm-policy-profile-2020-09-01-hybrid/package.json b/sdk/policy/arm-policy-profile-2020-09-01-hybrid/package.json index fe686de1fc7b..b1c67c0499f9 100644 --- a/sdk/policy/arm-policy-profile-2020-09-01-hybrid/package.json +++ b/sdk/policy/arm-policy-profile-2020-09-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-policy-profile-2020-09-01-hybrid", "author": "Microsoft Corporation", "description": "PolicyClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/policyClient.js", "types": "./esm/policyClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/policy/arm-policy-profile-2020-09-01-hybrid/src/policyClient.ts b/sdk/policy/arm-policy-profile-2020-09-01-hybrid/src/policyClient.ts index 4a9606c77342..7891583c1cc0 100644 --- a/sdk/policy/arm-policy-profile-2020-09-01-hybrid/src/policyClient.ts +++ b/sdk/policy/arm-policy-profile-2020-09-01-hybrid/src/policyClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class PolicyClient extends PolicyClientContext { /** * Initializes a new instance of the PolicyClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PolicyClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PolicyClientOptions) { super(credentials, subscriptionId, options); this.policyDefinitions = new operations.PolicyDefinitions(this); this.policyAssignments = new operations.PolicyAssignments(this); diff --git a/sdk/policy/arm-policy-profile-2020-09-01-hybrid/src/policyClientContext.ts b/sdk/policy/arm-policy-profile-2020-09-01-hybrid/src/policyClientContext.ts index 1982defbe797..9fe09efcdebd 100644 --- a/sdk/policy/arm-policy-profile-2020-09-01-hybrid/src/policyClientContext.ts +++ b/sdk/policy/arm-policy-profile-2020-09-01-hybrid/src/policyClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-policy-profile-2020-09-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class PolicyClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the PolicyClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PolicyClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PolicyClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/policy/arm-policy-profile-hybrid-2019-03-01/README.md b/sdk/policy/arm-policy-profile-hybrid-2019-03-01/README.md index 59229a76dfa7..88dd09df65aa 100644 --- a/sdk/policy/arm-policy-profile-hybrid-2019-03-01/README.md +++ b/sdk/policy/arm-policy-profile-hybrid-2019-03-01/README.md @@ -1,91 +1,101 @@ ## Azure PolicyClient SDK for JavaScript -This package contains an isomorphic SDK for PolicyClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PolicyClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-policy-profile-hybrid-2019-03-01` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-policy-profile-hybrid-2019-03-01 +npm install --save @azure/arm-policy-profile-hybrid-2019-03-01 @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. + ### How to use -#### nodejs - Authentication, client creation and get policyDefinitions as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and get policyDefinitions as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { PolicyClient, PolicyModels, PolicyMappers } from "@azure/arm-policy-profile-hybrid-2019-03-01"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { PolicyClient } = require("@azure/arm-policy-profile-hybrid-2019-03-01"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new PolicyClient(creds, subscriptionId); - const policyDefinitionName = "testpolicyDefinitionName"; - client.policyDefinitions.get(policyDefinitionName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new PolicyClient(creds, subscriptionId); +const policyDefinitionName = "testpolicyDefinitionName"; +client.policyDefinitions.get(policyDefinitionName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get policyDefinitions as an example written in JavaScript. +#### browser - Authentication, client creation, and get policyDefinitions as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-policy-profile-hybrid-2019-03-01 sample - - + @@ -97,5 +107,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fpolicy%2Farm-policy-profile-hybrid-2019-03-01%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/policy/arm-policy-profile-hybrid-2019-03-01/README.png) diff --git a/sdk/policy/arm-policy-profile-hybrid-2019-03-01/package.json b/sdk/policy/arm-policy-profile-hybrid-2019-03-01/package.json index 712ae64221a3..ded049860523 100644 --- a/sdk/policy/arm-policy-profile-hybrid-2019-03-01/package.json +++ b/sdk/policy/arm-policy-profile-hybrid-2019-03-01/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-policy-profile-hybrid-2019-03-01", "author": "Microsoft Corporation", "description": "PolicyClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -21,7 +22,7 @@ "module": "./esm/policyClient.js", "types": "./esm/policyClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/policy/arm-policy-profile-hybrid-2019-03-01/src/policyClient.ts b/sdk/policy/arm-policy-profile-hybrid-2019-03-01/src/policyClient.ts index 4a9606c77342..7891583c1cc0 100644 --- a/sdk/policy/arm-policy-profile-hybrid-2019-03-01/src/policyClient.ts +++ b/sdk/policy/arm-policy-profile-hybrid-2019-03-01/src/policyClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,11 +23,16 @@ class PolicyClient extends PolicyClientContext { /** * Initializes a new instance of the PolicyClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PolicyClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PolicyClientOptions) { super(credentials, subscriptionId, options); this.policyDefinitions = new operations.PolicyDefinitions(this); this.policyAssignments = new operations.PolicyAssignments(this); diff --git a/sdk/policy/arm-policy-profile-hybrid-2019-03-01/src/policyClientContext.ts b/sdk/policy/arm-policy-profile-hybrid-2019-03-01/src/policyClientContext.ts index 5e2d978a2a8b..1b8ccc0ee7e9 100644 --- a/sdk/policy/arm-policy-profile-hybrid-2019-03-01/src/policyClientContext.ts +++ b/sdk/policy/arm-policy-profile-hybrid-2019-03-01/src/policyClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-policy-profile-hybrid-2019-03-01"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class PolicyClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the PolicyClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PolicyClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PolicyClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/policy/arm-policy/README.md b/sdk/policy/arm-policy/README.md index ff6733dd79fd..e981a8c714fe 100644 --- a/sdk/policy/arm-policy/README.md +++ b/sdk/policy/arm-policy/README.md @@ -1,66 +1,74 @@ ## Azure PolicyClient SDK for JavaScript -This package contains an isomorphic SDK for PolicyClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PolicyClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-policy` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-policy +npm install --save @azure/arm-policy @azure/identity ``` -### How to use +> **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. -#### nodejs - client creation and getByPolicyMode dataPolicyManifests as an example written in TypeScript. +### How to use -##### Install @azure/ms-rest-nodeauth +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +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. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and getByPolicyMode dataPolicyManifests as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package - -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { PolicyClient } = require("@azure/arm-policy"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth - .interactiveLogin() - .then((creds) => { - const client = new PolicyClient(creds, subscriptionId); - const policyMode = "testpolicyMode"; - client.dataPolicyManifests.getByPolicyMode(policyMode).then((result) => { - console.log("The result is:"); - console.log(result); - }); - }) - .catch((err) => { - console.error(err); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new PolicyClient(creds, subscriptionId); +const policyMode = "testpolicyMode"; +client.dataPolicyManifests.getByPolicyMode(policyMode).then((result) => { + console.log("The result is:"); + console.log(result); +}).catch((err) => { + console.log("An error occurred:"); + console.error(err); +}); ``` -#### browser - Authentication, client creation and getByPolicyMode dataPolicyManifests as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and getByPolicyMode dataPolicyManifests as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html ```html @@ -68,33 +76,26 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to @azure/arm-policy sample - - + diff --git a/sdk/policy/arm-policy/package.json b/sdk/policy/arm-policy/package.json index e6934d947760..a5e321b7a066 100644 --- a/sdk/policy/arm-policy/package.json +++ b/sdk/policy/arm-policy/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-policy", "author": "Microsoft Corporation", "description": "PolicyClient Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "version": "4.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/policyClient.js", "types": "./esm/policyClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/policy/arm-policy/src/policyClient.ts b/sdk/policy/arm-policy/src/policyClient.ts index 4b800b476a99..32b3a1885e4d 100644 --- a/sdk/policy/arm-policy/src/policyClient.ts +++ b/sdk/policy/arm-policy/src/policyClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -23,12 +24,17 @@ class PolicyClient extends PolicyClientContext { /** * Initializes a new instance of the PolicyClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PolicyClientOptions ) { diff --git a/sdk/policy/arm-policy/src/policyClientContext.ts b/sdk/policy/arm-policy/src/policyClientContext.ts index 2b09789e656d..eabd70d6762d 100644 --- a/sdk/policy/arm-policy/src/policyClientContext.ts +++ b/sdk/policy/arm-policy/src/policyClientContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-policy"; -const packageVersion = "4.0.0"; +const packageVersion = "4.1.0"; export class PolicyClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; /** * Initializes a new instance of the PolicyClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PolicyClientOptions ) { diff --git a/sdk/policyinsights/arm-policyinsights/README.md b/sdk/policyinsights/arm-policyinsights/README.md index 6e4136a878bc..b87eda5db0db 100644 --- a/sdk/policyinsights/arm-policyinsights/README.md +++ b/sdk/policyinsights/arm-policyinsights/README.md @@ -1,95 +1,105 @@ ## Azure PolicyInsightsClient SDK for JavaScript -This package contains an isomorphic SDK for PolicyInsightsClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PolicyInsightsClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-policyinsights` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-policyinsights +npm install --save @azure/arm-policyinsights @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. + ### How to use -#### nodejs - client creation and listForManagementGroup remediations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and listForManagementGroup remediations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { PolicyInsightsClient } = require("@azure/arm-policyinsights"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new PolicyInsightsClient(creds, subscriptionId); - const managementGroupId = "testmanagementGroupId"; - const top = 1; - const filter = "testfilter"; - client.remediations.listForManagementGroup(managementGroupId, top, filter).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new PolicyInsightsClient(creds, subscriptionId); +const managementGroupId = "testmanagementGroupId"; +const top = 1; +const filter = "testfilter"; +client.remediations.listForManagementGroup(managementGroupId, top, filter).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and listForManagementGroup remediations as an example written in JavaScript. +#### browser - Authentication, client creation, and listForManagementGroup remediations as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-policyinsights sample - - + diff --git a/sdk/policyinsights/arm-policyinsights/package.json b/sdk/policyinsights/arm-policyinsights/package.json index 2d1a254b3b14..1e38d23a0c44 100644 --- a/sdk/policyinsights/arm-policyinsights/package.json +++ b/sdk/policyinsights/arm-policyinsights/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-policyinsights", "author": "Microsoft Corporation", "description": "PolicyInsightsClient Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "version": "4.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/policyInsightsClient.js", "types": "./esm/policyInsightsClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/policyinsights/arm-policyinsights/src/policyInsightsClient.ts b/sdk/policyinsights/arm-policyinsights/src/policyInsightsClient.ts index 9a6e23996468..436f5db2eacb 100644 --- a/sdk/policyinsights/arm-policyinsights/src/policyInsightsClient.ts +++ b/sdk/policyinsights/arm-policyinsights/src/policyInsightsClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -25,10 +26,15 @@ class PolicyInsightsClient extends PolicyInsightsClientContext { /** * Initializes a new instance of the PolicyInsightsClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.PolicyInsightsClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.PolicyInsightsClientOptions) { super(credentials, options); this.policyTrackedResources = new operations.PolicyTrackedResources(this); this.remediations = new operations.Remediations(this); diff --git a/sdk/policyinsights/arm-policyinsights/src/policyInsightsClientContext.ts b/sdk/policyinsights/arm-policyinsights/src/policyInsightsClientContext.ts index 8598034d32f8..f516548cf64e 100644 --- a/sdk/policyinsights/arm-policyinsights/src/policyInsightsClientContext.ts +++ b/sdk/policyinsights/arm-policyinsights/src/policyInsightsClientContext.ts @@ -9,20 +9,26 @@ 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"; const packageName = "@azure/arm-policyinsights"; -const packageVersion = "4.0.0"; +const packageVersion = "4.1.0"; export class PolicyInsightsClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; /** * Initializes a new instance of the PolicyInsightsClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.PolicyInsightsClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.PolicyInsightsClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/postgresql/arm-postgresql-flexible/README.md b/sdk/postgresql/arm-postgresql-flexible/README.md index a7a178bd0a19..e6aa6c9a5d5c 100644 --- a/sdk/postgresql/arm-postgresql-flexible/README.md +++ b/sdk/postgresql/arm-postgresql-flexible/README.md @@ -1,11 +1,11 @@ -## Azure PostgreSQLFlexibleManagementClient SDK for JavaScript +## Azure PostgreSQLManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in node.js and in browsers) for PostgreSQLFlexibleManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for PostgreSQLManagementClient. ### Currently supported environments -- Node.js version 8.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -36,23 +36,22 @@ 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 get databases as an example written in JavaScript. +#### nodejs - Authentication, client creation, and get servers as an example written in JavaScript. ##### Sample code ```javascript const { DefaultAzureCredential } = require("@azure/identity"); -const { PostgreSQLFlexibleManagementClient } = require("@azure/arm-postgresql-flexible"); +const { PostgreSQLManagementClient } = require("@azure/arm-postgresql-flexible"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); -const client = new PostgreSQLFlexibleManagementClient(creds, subscriptionId); +const client = new PostgreSQLManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const serverName = "testserverName"; -const databaseName = "testdatabaseName"; -client.databases.get(resourceGroupName, serverName, databaseName).then((result) => { +client.servers.get(resourceGroupName, serverName).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -61,7 +60,7 @@ client.databases.get(resourceGroupName, serverName, databaseName).then((result) }); ``` -#### browser - Authentication, client creation, and get databases as an example written in JavaScript. +#### browser - Authentication, client creation, and get servers as an example written in JavaScript. In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. @@ -88,11 +87,10 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t clientId: "", tenant: "" }); - const client = new Azure.ArmPostgresql.PostgreSQLFlexibleManagementClient(creds, subscriptionId); + const client = new Azure.ArmPostgresqlFlexible.PostgreSQLManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const serverName = "testserverName"; - const databaseName = "testdatabaseName"; - client.databases.get(resourceGroupName, serverName, databaseName).then((result) => { + client.servers.get(resourceGroupName, serverName).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -109,4 +107,4 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/README.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/postgresql/arm-postgresql-flexible//README.png) diff --git a/sdk/postgresql/arm-postgresql-flexible/package.json b/sdk/postgresql/arm-postgresql-flexible/package.json index fb1da03042de..04750712d11c 100644 --- a/sdk/postgresql/arm-postgresql-flexible/package.json +++ b/sdk/postgresql/arm-postgresql-flexible/package.json @@ -1,8 +1,8 @@ { "name": "@azure/arm-postgresql-flexible", "author": "Microsoft Corporation", - "description": "PostgreSQLFlexibleManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "description": "PostgreSQLManagementClient Library with typescript type definitions for node.js and browser.", + "version": "3.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.1.0", "@azure/ms-rest-js": "^2.2.0", @@ -18,8 +18,8 @@ ], "license": "MIT", "main": "./dist/arm-postgresql-flexible.js", - "module": "./esm/postgreSQLFlexibleManagementClient.js", - "types": "./esm/postgreSQLFlexibleManagementClient.d.ts", + "module": "./esm/postgreSQLManagementClient.js", + "types": "./esm/postgreSQLManagementClient.d.ts", "devDependencies": { "typescript": "^3.6.0", "rollup": "^1.18.0", @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/postgresql/arm-postgresql-flexible", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/postgresql/arm-postgresql-flexible/", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/postgresql/arm-postgresql-flexible/rollup.config.js b/sdk/postgresql/arm-postgresql-flexible/rollup.config.js index d522032c4e23..b71f63ce341d 100644 --- a/sdk/postgresql/arm-postgresql-flexible/rollup.config.js +++ b/sdk/postgresql/arm-postgresql-flexible/rollup.config.js @@ -6,7 +6,7 @@ import sourcemaps from "rollup-plugin-sourcemaps"; * @type {rollup.RollupFileOptions} */ const config = { - input: "./esm/postgreSQLFlexibleManagementClient.js", + input: "./esm/postgreSQLManagementClient.js", external: [ "@azure/ms-rest-js", "@azure/ms-rest-azure-js" diff --git a/sdk/postgresql/arm-postgresql-flexible/src/models/configurationsMappers.ts b/sdk/postgresql/arm-postgresql-flexible/src/models/configurationsMappers.ts index f3b49032720a..e63c693ddc6d 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/models/configurationsMappers.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/models/configurationsMappers.ts @@ -8,6 +8,7 @@ export { AzureEntityResource, + Backup, BaseResource, CloudError, Configuration, @@ -16,20 +17,20 @@ export { ErrorAdditionalInfo, ErrorResponse, FirewallRule, + HighAvailability, Identity, MaintenanceWindow, + Network, Plan, ProxyResource, - RecoverableServerResource, Resource, ResourceModelWithAllowedPropertySet, ResourceModelWithAllowedPropertySetIdentity, ResourceModelWithAllowedPropertySetPlan, ResourceModelWithAllowedPropertySetSku, Server, - ServerPropertiesDelegatedSubnetArguments, - ServerPropertiesPrivateDnsZoneArguments, Sku, - StorageProfile, + Storage, + SystemData, TrackedResource } from "../models/mappers"; diff --git a/sdk/postgresql/arm-postgresql-flexible/src/models/databasesMappers.ts b/sdk/postgresql/arm-postgresql-flexible/src/models/databasesMappers.ts index 7df3290b5d68..3ac50955c92d 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/models/databasesMappers.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/models/databasesMappers.ts @@ -8,6 +8,7 @@ export { AzureEntityResource, + Backup, BaseResource, CloudError, Configuration, @@ -16,20 +17,20 @@ export { ErrorAdditionalInfo, ErrorResponse, FirewallRule, + HighAvailability, Identity, MaintenanceWindow, + Network, Plan, ProxyResource, - RecoverableServerResource, Resource, ResourceModelWithAllowedPropertySet, ResourceModelWithAllowedPropertySetIdentity, ResourceModelWithAllowedPropertySetPlan, ResourceModelWithAllowedPropertySetSku, Server, - ServerPropertiesDelegatedSubnetArguments, - ServerPropertiesPrivateDnsZoneArguments, Sku, - StorageProfile, + Storage, + SystemData, TrackedResource } from "../models/mappers"; diff --git a/sdk/postgresql/arm-postgresql-flexible/src/models/firewallRulesMappers.ts b/sdk/postgresql/arm-postgresql-flexible/src/models/firewallRulesMappers.ts index 280cb8bdd0ea..19d3f36b91aa 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/models/firewallRulesMappers.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/models/firewallRulesMappers.ts @@ -8,6 +8,7 @@ export { AzureEntityResource, + Backup, BaseResource, CloudError, Configuration, @@ -16,20 +17,20 @@ export { ErrorResponse, FirewallRule, FirewallRuleListResult, + HighAvailability, Identity, MaintenanceWindow, + Network, Plan, ProxyResource, - RecoverableServerResource, Resource, ResourceModelWithAllowedPropertySet, ResourceModelWithAllowedPropertySetIdentity, ResourceModelWithAllowedPropertySetPlan, ResourceModelWithAllowedPropertySetSku, Server, - ServerPropertiesDelegatedSubnetArguments, - ServerPropertiesPrivateDnsZoneArguments, Sku, - StorageProfile, + Storage, + SystemData, TrackedResource } from "../models/mappers"; diff --git a/sdk/postgresql/arm-postgresql-flexible/src/models/index.ts b/sdk/postgresql/arm-postgresql-flexible/src/models/index.ts index c4f0485be563..9ad7cffe0b82 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/models/index.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/models/index.ts @@ -12,339 +12,326 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Common fields that are returned in the response for all Azure Resource Manager resources - * @summary Resource + * Virtual network subnet usage parameter */ -export interface Resource extends BaseResource { +export interface VirtualNetworkSubnetUsageParameter { /** - * 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.** + * Virtual network resource id. */ - readonly id?: string; + virtualNetworkArmResourceId?: string; +} + +/** + * Delegated subnet usage data. + */ +export interface DelegatedSubnetUsage { /** - * The name of the resource + * name of the subnet * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly subnetName?: string; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - * "Microsoft.Storage/storageAccounts" + * Number of used delegated subnets * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly usage?: number; } /** - * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags - * and a location - * @summary Proxy Resource + * Virtual network subnet usage data. */ -export interface ProxyResource extends Resource { +export interface VirtualNetworkSubnetUsageResult { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly delegatedSubnetsUsage?: DelegatedSubnetUsage[]; } /** - * Represents a Database. + * storage size in MB capability */ -export interface Database extends ProxyResource { +export interface StorageMBCapability { /** - * The charset of the database. + * storage MB name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - charset?: string; + readonly name?: string; /** - * The collation of the database. + * supported IOPS + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - collation?: string; -} - -/** - * The resource management error additional info. - */ -export interface ErrorAdditionalInfo { + readonly supportedIops?: number; /** - * The additional info type. + * storage size in MB * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly storageSizeMB?: number; /** - * The additional info. + * The status * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly info?: any; + readonly status?: string; } /** - * 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 + * Vcores capability */ -export interface ErrorResponse { +export interface VcoreCapability { /** - * The error code. + * vCore name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly code?: string; + readonly name?: string; /** - * The error message. + * supported vCores * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly message?: string; + readonly vCores?: number; /** - * The error target. + * supported IOPS * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly target?: string; + readonly supportedIops?: number; /** - * The error details. + * supported memory per vCore in MB * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly details?: ErrorResponse[]; + readonly supportedMemoryPerVcoreMB?: number; /** - * The error additional info. + * The status * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly status?: string; } /** - * The resource model definition for an Azure Resource Manager tracked top level resource which has - * 'tags' and a 'location' - * @summary Tracked Resource + * Server version capabilities. */ -export interface TrackedResource extends Resource { +export interface ServerVersionCapability { /** - * Resource tags. + * server version + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; + readonly name?: string; /** - * The geo-location where the resource lives + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - location: string; -} - -/** - * The resource model definition for an Azure Resource Manager resource with an etag. - * @summary Entity Resource - */ -export interface AzureEntityResource extends Resource { + readonly supportedVcores?: VcoreCapability[]; /** - * Resource Etag. + * The status * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly etag?: string; + readonly status?: string; } /** - * Sku information related properties of a server. + * storage edition capability */ -export interface Sku { +export interface StorageEditionCapability { /** - * The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. + * storage edition name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name: string; + readonly name?: string; /** - * The tier of the particular SKU, e.g. Burstable. Possible values include: 'Burstable', - * 'GeneralPurpose', 'MemoryOptimized' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tier: SkuTier; + readonly supportedStorageMB?: StorageMBCapability[]; + /** + * The status + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; } /** - * Represents a recoverable server resource. + * node type capability */ -export interface RecoverableServerResource extends ProxyResource { +export interface NodeTypeCapability { /** - * The SKU (pricing tier) of the server. - */ - sku?: Sku; - /** - * The location the resource resides in. - */ - location?: string; - /** - * Availability zone of the server + * note type name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly availabilityZone?: string; + readonly name?: string; /** - * Edition of the performance tier. + * note type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly serverEdition?: string; + readonly nodeType?: string; /** - * The PostgreSQL version + * The status * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly version?: string; + readonly status?: string; } /** - * Virtual network subnet usage parameter + * Flexible server edition capabilities. */ -export interface VirtualNetworkSubnetUsageParameter { +export interface FlexibleServerEditionCapability { /** - * Virtual network resource id. + * Server edition name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - virtualNetworkArmResourceId?: string; -} - -/** - * Delegated subnet usage data. - */ -export interface DelegatedSubnetUsage { + readonly name?: string; /** - * name of the subnet + * The list of editions supported by this server edition. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly subnetName?: string; + readonly supportedStorageEditions?: StorageEditionCapability[]; /** - * Number of used delegated subnets + * The list of server versions supported by this server edition. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly usage?: number; -} - -/** - * Virtual network subnet usage data. - */ -export interface VirtualNetworkSubnetUsageResult { + readonly supportedServerVersions?: ServerVersionCapability[]; /** + * The status * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly delegatedSubnetsUsage?: DelegatedSubnetUsage[]; + readonly status?: string; } /** - * storage size in MB capability + * Hyperscale node edition capabilities. */ -export interface StorageMBCapability { +export interface HyperscaleNodeEditionCapability { /** - * storage MB name + * Server edition name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * supported IOPS + * The list of editions supported by this server edition. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedIops?: number; + readonly supportedStorageEditions?: StorageEditionCapability[]; /** - * storage size in MB + * The list of server versions supported by this server edition. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly storageSizeMB?: number; + readonly supportedServerVersions?: ServerVersionCapability[]; + /** + * The list of Node Types supported by this server edition. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly supportedNodeTypes?: NodeTypeCapability[]; + /** + * The status + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; } /** - * Vcores capability + * Location capabilities. */ -export interface VcoreCapability { +export interface CapabilityProperties { /** - * vCore name + * zone name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly zone?: string; /** - * supported vCores + * A value indicating whether a new server in this region can have geo-backups to paired region. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly vCores?: number; + readonly geoBackupSupported?: boolean; /** - * supported IOPS + * A value indicating whether a new server in this region can support multi zone HA. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedIops?: number; + readonly zoneRedundantHaSupported?: boolean; /** - * supported memory per vCore in MB + * A value indicating whether a new server in this region can have geo-backups to paired region. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedMemoryPerVcoreMB?: number; -} - -/** - * Server version capabilities. - */ -export interface ServerVersionCapability { + readonly zoneRedundantHaAndGeoBackupSupported?: boolean; /** - * server version * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly supportedFlexibleServerEditions?: FlexibleServerEditionCapability[]; /** * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedVcores?: VcoreCapability[]; + readonly supportedHyperscaleNodeEditions?: HyperscaleNodeEditionCapability[]; + /** + * The status + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; } /** - * storage edition capability + * Storage properties of a server */ -export interface StorageEditionCapability { - /** - * storage edition name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; +export interface Storage { /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Max storage allowed for a server. */ - readonly supportedStorageMB?: StorageMBCapability[]; + storageSizeGB?: number; } /** - * Server edition capabilities. + * Backup properties of a server */ -export interface ServerEditionCapability { +export interface Backup { /** - * Server edition name - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Backup retention days for the server. */ - readonly name?: string; + backupRetentionDays?: number; /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A value indicating whether Geo-Redundant backup is enabled on the server. Possible values + * include: 'Enabled', 'Disabled' */ - readonly supportedStorageEditions?: StorageEditionCapability[]; + geoRedundantBackup?: GeoRedundantBackupEnum; /** + * The earliest restore point time (ISO8601 format) for server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedServerVersions?: ServerVersionCapability[]; + readonly earliestRestoreDate?: Date; } /** - * Location capabilities. + * Network properties of a server */ -export interface CapabilityProperties { +export interface Network { /** - * zone name + * public network access is enabled or not. Possible values include: 'Enabled', 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly zone?: string; + readonly publicNetworkAccess?: ServerPublicNetworkAccessState; /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * delegated subnet arm resource id. + */ + delegatedSubnetResourceId?: string; + /** + * private dns zone arm resource id. */ - readonly supportedFlexibleServerEditions?: ServerEditionCapability[]; + privateDnsZoneArmResourceId?: string; } /** - * Storage Profile properties of a server + * High availability properties of a server */ -export interface StorageProfile { +export interface HighAvailability { /** - * Backup retention days for the server. + * The HA mode for the server. Possible values include: 'Disabled', 'ZoneRedundant' */ - backupRetentionDays?: number; + mode?: HighAvailabilityMode; /** - * Max storage allowed for a server. + * A state of a HA server that is visible to user. Possible values include: 'NotEnabled', + * 'CreatingStandby', 'ReplicatingData', 'FailingOver', 'Healthy', 'RemovingStandby' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageMB?: number; + readonly state?: ServerHAState; /** - * Geo Backup redundancy option. Possible values include: 'Enabled', 'Disabled' + * availability zone information of the standby. */ - geoRedundantBackup?: GeoRedundantBackupOption; + standbyAvailabilityZone?: string; } /** - * Maintenance window of a server. + * Maintenance window properties of a server. */ export interface MaintenanceWindow { /** @@ -366,43 +353,110 @@ export interface MaintenanceWindow { } /** - * An interface representing ServerPropertiesDelegatedSubnetArguments. + * Identity for the resource. */ -export interface ServerPropertiesDelegatedSubnetArguments { +export interface Identity { /** - * delegated subnet arm resource id. + * The principal ID of resource identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The tenant ID of resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The identity type. Possible values include: 'SystemAssigned' */ - subnetArmResourceId?: string; + type?: ResourceIdentityType; } /** - * An interface representing ServerPropertiesPrivateDnsZoneArguments. + * Sku information related properties of a server. */ -export interface ServerPropertiesPrivateDnsZoneArguments { +export interface Sku { /** - * private dns zone arm resource id. + * The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. */ - privateDnsZoneArmResourceId?: string; + name: string; + /** + * The tier of the particular SKU, e.g. Burstable. Possible values include: 'Burstable', + * 'GeneralPurpose', 'MemoryOptimized' + */ + tier: SkuTier; } /** - * Identity for the resource. + * Metadata pertaining to creation and last modification of the resource. */ -export interface Identity { +export interface SystemData { /** - * The principal ID of resource identity. + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + +/** + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource + */ +export interface Resource extends BaseResource { + /** + * 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 principalId?: string; + readonly id?: string; /** - * The tenant ID of resource. + * The name of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly tenantId?: string; + readonly name?: string; /** - * The identity type. Possible values include: 'SystemAssigned' + * 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.** */ - type?: ResourceIdentityType; + readonly type?: string; +} + +/** + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource + */ +export interface TrackedResource extends Resource { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * The geo-location where the resource lives + */ + location: string; } /** @@ -427,89 +481,73 @@ export interface Server extends TrackedResource { */ administratorLoginPassword?: string; /** - * PostgreSQL Server version. Possible values include: '12', '11' + * PostgreSQL Server version. Possible values include: '13', '12', '11' */ version?: ServerVersion; /** - * A state of a server that is visible to user. Possible values include: 'Ready', 'Dropping', - * 'Disabled', 'Starting', 'Stopping', 'Stopped', 'Updating' + * The minor version of the server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: ServerState; + readonly minorVersion?: string; /** - * A state of a HA server that is visible to user. Possible values include: 'NotEnabled', - * 'CreatingStandby', 'ReplicatingData', 'FailingOver', 'Healthy', 'RemovingStandby' + * A state of a server that is visible to user. Possible values include: 'Ready', 'Dropping', + * 'Disabled', 'Starting', 'Stopping', 'Stopped', 'Updating' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly haState?: ServerHAState; + readonly state?: ServerState; /** * The fully qualified domain name of a server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly fullyQualifiedDomainName?: string; /** - * The display name of a server. - */ - displayName?: string; - /** - * Storage profile of a server. - */ - storageProfile?: StorageProfile; - /** - * public network access is enabled or not. Possible values include: 'Enabled', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage properties of a server. */ - readonly publicNetworkAccess?: ServerPublicNetworkAccessState; + storage?: Storage; /** - * Maintenance window of a server. + * Backup properties of a server. */ - maintenanceWindow?: MaintenanceWindow; + backup?: Backup; /** - * stand by count value can be either enabled or disabled. Possible values include: 'Enabled', - * 'Disabled' + * Network properties of a server. */ - haEnabled?: HAEnabledEnum; + network?: Network; /** - * The source PostgreSQL server name to restore from. + * High availability properties of a server. */ - sourceServerName?: string; + highAvailability?: HighAvailability; /** - * The subscription id of source PostgreSQL server name to restore from. + * Maintenance window properties of a server. */ - sourceSubscriptionId?: string; + maintenanceWindow?: MaintenanceWindow; /** - * The resource group name of source PostgreSQL server name to restore from. + * The source server resource ID to restore from. It's required when 'createMode' is + * 'PointInTimeRestore'. */ - sourceResourceGroupName?: string; + sourceServerResourceId?: string; /** - * Restore point creation time (ISO8601 format), specifying the time to restore from. + * Restore point creation time (ISO8601 format), specifying the time to restore from. It's + * required when 'createMode' is 'PointInTimeRestore'. */ pointInTimeUTC?: Date; /** - * availability Zone information of the server. + * availability zone information of the server. */ availabilityZone?: string; /** - * availability Zone information of the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly standbyAvailabilityZone?: string; - /** - * Status showing whether the data encryption is enabled with customer-managed keys. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly byokEnforcement?: string; - delegatedSubnetArguments?: ServerPropertiesDelegatedSubnetArguments; - privateDnsZoneArguments?: ServerPropertiesPrivateDnsZoneArguments; - /** - * The mode to create a new PostgreSQL server. Possible values include: 'Default', - * 'PointInTimeRestore', 'GeoRestore' + * The mode to create a new PostgreSQL server. Possible values include: 'Default', 'Create', + * 'Update', 'PointInTimeRestore' */ createMode?: CreateMode; /** * Application-specific metadata in the form of key-value pairs. */ serverTags?: { [propertyName: string]: 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; } /** @@ -529,24 +567,39 @@ export interface ServerForUpdate { */ administratorLoginPassword?: string; /** - * Storage profile of a server. + * Storage properties of a server. */ - storageProfile?: StorageProfile; + storage?: Storage; /** - * stand by count value can be either enabled or disabled. Possible values include: 'Enabled', - * 'Disabled' + * Backup properties of a server. */ - haEnabled?: HAEnabledEnum; + backup?: Backup; /** - * Maintenance window of a server. + * High availability properties of a server. + */ + highAvailability?: HighAvailability; + /** + * Maintenance window properties of a server. */ maintenanceWindow?: MaintenanceWindow; + /** + * The mode to update a new PostgreSQL server. Possible values include: 'Default', 'Update' + */ + createMode?: CreateModeForUpdate; /** * Application-specific metadata in the form of key-value pairs. */ tags?: { [propertyName: string]: string }; } +/** + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource + */ +export interface ProxyResource extends Resource { +} + /** * Represents a server firewall rule. */ @@ -559,6 +612,11 @@ export interface FirewallRule extends ProxyResource { * The end IP address of the server firewall rule. Must be IPv4 format. */ endIpAddress: 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; } /** @@ -594,6 +652,11 @@ export interface Configuration extends ProxyResource { * Source of the configuration. */ source?: 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; } /** @@ -704,6 +767,81 @@ export interface NameAvailability { type?: string; } +/** + * Represents server restart parameters. + */ +export interface RestartParameter { + /** + * Indicates whether to restart the server with failover. + */ + restartWithFailover?: boolean; + /** + * Failover mode. + */ + failoverMode?: string; +} + +/** + * The resource management error additional info. + */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} + +/** + * 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 ErrorResponse { + /** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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?: ErrorResponse[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource + */ +export interface AzureEntityResource extends Resource { + /** + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; +} + /** * An interface representing ResourceModelWithAllowedPropertySetIdentity. */ @@ -808,22 +946,49 @@ export interface ResourceModelWithAllowedPropertySet extends BaseResource { } /** - * An interface representing PostgreSQLFlexibleManagementClientOptions. + * Represents a Database. */ -export interface PostgreSQLFlexibleManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface Database extends ProxyResource { + /** + * The charset of the database. + */ + charset?: string; + /** + * The collation of the database. + */ + collation?: 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; } /** - * @interface - * A List of databases. - * @extends Array + * Optional Parameters. */ -export interface DatabaseListResult extends Array { +export interface ServersRestartOptionalParams extends msRest.RequestOptionsBase { /** - * The link used to get the next page of databases. + * The parameters for restarting a server. */ - nextLink?: string; + parameters?: RestartParameter; +} + +/** + * Optional Parameters. + */ +export interface ServersBeginRestartOptionalParams extends msRest.RequestOptionsBase { + /** + * The parameters for restarting a server. + */ + parameters?: RestartParameter; +} + +/** + * An interface representing PostgreSQLManagementClientOptions. + */ +export interface PostgreSQLManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; } /** @@ -876,20 +1041,24 @@ export interface CapabilitiesListResult extends Array { } /** - * Defines values for SkuTier. - * Possible values include: 'Burstable', 'GeneralPurpose', 'MemoryOptimized' - * @readonly - * @enum {string} + * @interface + * A List of databases. + * @extends Array */ -export type SkuTier = 'Burstable' | 'GeneralPurpose' | 'MemoryOptimized'; +export interface DatabaseListResult extends Array { + /** + * The link used to get the next page of databases. + */ + nextLink?: string; +} /** * Defines values for ServerVersion. - * Possible values include: '12', '11' + * Possible values include: '13', '12', '11' * @readonly * @enum {string} */ -export type ServerVersion = '12' | '11'; +export type ServerVersion = '13' | '12' | '11'; /** * Defines values for ServerState. @@ -901,45 +1070,45 @@ export type ServerVersion = '12' | '11'; export type ServerState = 'Ready' | 'Dropping' | 'Disabled' | 'Starting' | 'Stopping' | 'Stopped' | 'Updating'; /** - * Defines values for ServerHAState. - * Possible values include: 'NotEnabled', 'CreatingStandby', 'ReplicatingData', 'FailingOver', - * 'Healthy', 'RemovingStandby' + * Defines values for GeoRedundantBackupEnum. + * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type ServerHAState = 'NotEnabled' | 'CreatingStandby' | 'ReplicatingData' | 'FailingOver' | 'Healthy' | 'RemovingStandby'; +export type GeoRedundantBackupEnum = 'Enabled' | 'Disabled'; /** - * Defines values for GeoRedundantBackupOption. + * Defines values for ServerPublicNetworkAccessState. * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type GeoRedundantBackupOption = 'Enabled' | 'Disabled'; +export type ServerPublicNetworkAccessState = 'Enabled' | 'Disabled'; /** - * Defines values for ServerPublicNetworkAccessState. - * Possible values include: 'Enabled', 'Disabled' + * Defines values for HighAvailabilityMode. + * Possible values include: 'Disabled', 'ZoneRedundant' * @readonly * @enum {string} */ -export type ServerPublicNetworkAccessState = 'Enabled' | 'Disabled'; +export type HighAvailabilityMode = 'Disabled' | 'ZoneRedundant'; /** - * Defines values for HAEnabledEnum. - * Possible values include: 'Enabled', 'Disabled' + * Defines values for ServerHAState. + * Possible values include: 'NotEnabled', 'CreatingStandby', 'ReplicatingData', 'FailingOver', + * 'Healthy', 'RemovingStandby' * @readonly * @enum {string} */ -export type HAEnabledEnum = 'Enabled' | 'Disabled'; +export type ServerHAState = 'NotEnabled' | 'CreatingStandby' | 'ReplicatingData' | 'FailingOver' | 'Healthy' | 'RemovingStandby'; /** * Defines values for CreateMode. - * Possible values include: 'Default', 'PointInTimeRestore', 'GeoRestore' + * Possible values include: 'Default', 'Create', 'Update', 'PointInTimeRestore' * @readonly * @enum {string} */ -export type CreateMode = 'Default' | 'PointInTimeRestore' | 'GeoRestore'; +export type CreateMode = 'Default' | 'Create' | 'Update' | 'PointInTimeRestore'; /** * Defines values for ResourceIdentityType. @@ -949,6 +1118,30 @@ export type CreateMode = 'Default' | 'PointInTimeRestore' | 'GeoRestore'; */ export type ResourceIdentityType = 'SystemAssigned'; +/** + * Defines values for SkuTier. + * Possible values include: 'Burstable', 'GeneralPurpose', 'MemoryOptimized' + * @readonly + * @enum {string} + */ +export type SkuTier = 'Burstable' | 'GeneralPurpose' | 'MemoryOptimized'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for CreateModeForUpdate. + * Possible values include: 'Default', 'Update' + * @readonly + * @enum {string} + */ +export type CreateModeForUpdate = 'Default' | 'Update'; + /** * Defines values for ConfigurationDataType. * Possible values include: 'Boolean', 'Numeric', 'Integer', 'Enumeration' @@ -965,18 +1158,10 @@ export type ConfigurationDataType = 'Boolean' | 'Numeric' | 'Integer' | 'Enumera */ export type OperationOrigin = 'NotSpecified' | 'user' | 'system'; -/** - * Defines values for Body. - * Possible values include: 'PostgreSQL', 'PostgreSQLCitus', 'MySQL', 'MariaDb', 'Oracle' - * @readonly - * @enum {string} - */ -export type Body = 'PostgreSQL' | 'PostgreSQLCitus' | 'MySQL' | 'MariaDb' | 'Oracle'; - /** * Contains response data for the create operation. */ -export type DatabasesCreateResponse = Database & { +export type ServersCreateResponse = Server & { /** * The underlying HTTP response. */ @@ -989,14 +1174,14 @@ export type DatabasesCreateResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: Server; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type DatabasesGetResponse = Database & { +export type ServersUpdateResponse = Server & { /** * The underlying HTTP response. */ @@ -1009,14 +1194,14 @@ export type DatabasesGetResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: Server; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the get operation. */ -export type DatabasesListByServerResponse = DatabaseListResult & { +export type ServersGetResponse = Server & { /** * The underlying HTTP response. */ @@ -1029,14 +1214,14 @@ export type DatabasesListByServerResponse = DatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseListResult; + parsedBody: Server; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the listByResourceGroup operation. */ -export type DatabasesBeginCreateResponse = Database & { +export type ServersListByResourceGroupResponse = ServerListResult & { /** * The underlying HTTP response. */ @@ -1049,14 +1234,14 @@ export type DatabasesBeginCreateResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: ServerListResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the list operation. */ -export type DatabasesListByServerNextResponse = DatabaseListResult & { +export type ServersListResponse = ServerListResult & { /** * The underlying HTTP response. */ @@ -1069,19 +1254,34 @@ export type DatabasesListByServerNextResponse = DatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseListResult; + parsedBody: ServerListResult; }; }; /** - * Contains response data for the execute operation. + * Contains response data for the beginCreate operation. */ -export type GetPrivateDnsZoneSuffixExecuteResponse = { +export type ServersBeginCreateResponse = Server & { /** - * The parsed response body. + * The underlying HTTP response. */ - body: string; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Server; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type ServersBeginUpdateResponse = Server & { /** * The underlying HTTP response. */ @@ -1094,14 +1294,14 @@ export type GetPrivateDnsZoneSuffixExecuteResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: string; + parsedBody: Server; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ServersCreateResponse = Server & { +export type ServersListByResourceGroupNextResponse = ServerListResult & { /** * The underlying HTTP response. */ @@ -1114,14 +1314,14 @@ export type ServersCreateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: ServerListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type ServersUpdateResponse = Server & { +export type ServersListNextResponse = ServerListResult & { /** * The underlying HTTP response. */ @@ -1134,14 +1334,14 @@ export type ServersUpdateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: ServerListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ServersGetResponse = Server & { +export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { /** * The underlying HTTP response. */ @@ -1154,14 +1354,14 @@ export type ServersGetResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: FirewallRule; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type ServersListByResourceGroupResponse = ServerListResult & { +export type FirewallRulesGetResponse = FirewallRule & { /** * The underlying HTTP response. */ @@ -1174,14 +1374,14 @@ export type ServersListByResourceGroupResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: FirewallRule; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByServer operation. */ -export type ServersListResponse = ServerListResult & { +export type FirewallRulesListByServerResponse = FirewallRuleListResult & { /** * The underlying HTTP response. */ @@ -1194,14 +1394,14 @@ export type ServersListResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: FirewallRuleListResult; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServersBeginCreateResponse = Server & { +export type FirewallRulesBeginCreateOrUpdateResponse = FirewallRule & { /** * The underlying HTTP response. */ @@ -1214,14 +1414,14 @@ export type ServersBeginCreateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: FirewallRule; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type ServersBeginUpdateResponse = Server & { +export type FirewallRulesListByServerNextResponse = FirewallRuleListResult & { /** * The underlying HTTP response. */ @@ -1234,14 +1434,14 @@ export type ServersBeginUpdateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: FirewallRuleListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listByServer operation. */ -export type ServersListByResourceGroupNextResponse = ServerListResult & { +export type ConfigurationsListByServerResponse = ConfigurationListResult & { /** * The underlying HTTP response. */ @@ -1254,14 +1454,14 @@ export type ServersListByResourceGroupNextResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: ConfigurationListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type ServersListNextResponse = ServerListResult & { +export type ConfigurationsGetResponse = Configuration & { /** * The underlying HTTP response. */ @@ -1274,14 +1474,14 @@ export type ServersListNextResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: Configuration; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { +export type ConfigurationsUpdateResponse = Configuration & { /** * The underlying HTTP response. */ @@ -1294,14 +1494,14 @@ export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRule; + parsedBody: Configuration; }; }; /** - * Contains response data for the get operation. + * Contains response data for the put operation. */ -export type FirewallRulesGetResponse = FirewallRule & { +export type ConfigurationsPutResponse = Configuration & { /** * The underlying HTTP response. */ @@ -1314,14 +1514,14 @@ export type FirewallRulesGetResponse = FirewallRule & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRule; + parsedBody: Configuration; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the beginUpdate operation. */ -export type FirewallRulesListByServerResponse = FirewallRuleListResult & { +export type ConfigurationsBeginUpdateResponse = Configuration & { /** * The underlying HTTP response. */ @@ -1334,14 +1534,14 @@ export type FirewallRulesListByServerResponse = FirewallRuleListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRuleListResult; + parsedBody: Configuration; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginPut operation. */ -export type FirewallRulesBeginCreateOrUpdateResponse = FirewallRule & { +export type ConfigurationsBeginPutResponse = Configuration & { /** * The underlying HTTP response. */ @@ -1354,14 +1554,14 @@ export type FirewallRulesBeginCreateOrUpdateResponse = FirewallRule & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRule; + parsedBody: Configuration; }; }; /** * Contains response data for the listByServerNext operation. */ -export type FirewallRulesListByServerNextResponse = FirewallRuleListResult & { +export type ConfigurationsListByServerNextResponse = ConfigurationListResult & { /** * The underlying HTTP response. */ @@ -1374,14 +1574,14 @@ export type FirewallRulesListByServerNextResponse = FirewallRuleListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRuleListResult; + parsedBody: ConfigurationListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the execute operation. */ -export type ConfigurationsListByServerResponse = ConfigurationListResult & { +export type CheckNameAvailabilityExecuteResponse = NameAvailability & { /** * The underlying HTTP response. */ @@ -1394,14 +1594,14 @@ export type ConfigurationsListByServerResponse = ConfigurationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ConfigurationListResult; + parsedBody: NameAvailability; }; }; /** - * Contains response data for the get operation. + * Contains response data for the execute operation. */ -export type ConfigurationsGetResponse = Configuration & { +export type LocationBasedCapabilitiesExecuteResponse = CapabilitiesListResult & { /** * The underlying HTTP response. */ @@ -1414,14 +1614,14 @@ export type ConfigurationsGetResponse = Configuration & { /** * The response body as parsed JSON or XML */ - parsedBody: Configuration; + parsedBody: CapabilitiesListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the executeNext operation. */ -export type ConfigurationsUpdateResponse = Configuration & { +export type LocationBasedCapabilitiesExecuteNextResponse = CapabilitiesListResult & { /** * The underlying HTTP response. */ @@ -1434,14 +1634,14 @@ export type ConfigurationsUpdateResponse = Configuration & { /** * The response body as parsed JSON or XML */ - parsedBody: Configuration; + parsedBody: CapabilitiesListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the execute operation. */ -export type ConfigurationsBeginUpdateResponse = Configuration & { +export type VirtualNetworkSubnetUsageExecuteResponse = VirtualNetworkSubnetUsageResult & { /** * The underlying HTTP response. */ @@ -1454,14 +1654,14 @@ export type ConfigurationsBeginUpdateResponse = Configuration & { /** * The response body as parsed JSON or XML */ - parsedBody: Configuration; + parsedBody: VirtualNetworkSubnetUsageResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the list operation. */ -export type ConfigurationsListByServerNextResponse = ConfigurationListResult & { +export type OperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -1474,14 +1674,14 @@ export type ConfigurationsListByServerNextResponse = ConfigurationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ConfigurationListResult; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the execute operation. + * Contains response data for the create operation. */ -export type CheckNameAvailabilityExecuteResponse = NameAvailability & { +export type DatabasesCreateResponse = Database & { /** * The underlying HTTP response. */ @@ -1494,14 +1694,14 @@ export type CheckNameAvailabilityExecuteResponse = NameAvailability & { /** * The response body as parsed JSON or XML */ - parsedBody: NameAvailability; + parsedBody: Database; }; }; /** - * Contains response data for the execute operation. + * Contains response data for the get operation. */ -export type LocationBasedCapabilitiesExecuteResponse = CapabilitiesListResult & { +export type DatabasesGetResponse = Database & { /** * The underlying HTTP response. */ @@ -1514,14 +1714,14 @@ export type LocationBasedCapabilitiesExecuteResponse = CapabilitiesListResult & /** * The response body as parsed JSON or XML */ - parsedBody: CapabilitiesListResult; + parsedBody: Database; }; }; /** - * Contains response data for the executeNext operation. + * Contains response data for the listByServer operation. */ -export type LocationBasedCapabilitiesExecuteNextResponse = CapabilitiesListResult & { +export type DatabasesListByServerResponse = DatabaseListResult & { /** * The underlying HTTP response. */ @@ -1534,14 +1734,14 @@ export type LocationBasedCapabilitiesExecuteNextResponse = CapabilitiesListResul /** * The response body as parsed JSON or XML */ - parsedBody: CapabilitiesListResult; + parsedBody: DatabaseListResult; }; }; /** - * Contains response data for the execute operation. + * Contains response data for the beginCreate operation. */ -export type VirtualNetworkSubnetUsageExecuteResponse = VirtualNetworkSubnetUsageResult & { +export type DatabasesBeginCreateResponse = Database & { /** * The underlying HTTP response. */ @@ -1554,14 +1754,14 @@ export type VirtualNetworkSubnetUsageExecuteResponse = VirtualNetworkSubnetUsage /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkSubnetUsageResult; + parsedBody: Database; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByServerNext operation. */ -export type RecoverableServersGetResponse = RecoverableServerResource & { +export type DatabasesListByServerNextResponse = DatabaseListResult & { /** * The underlying HTTP response. */ @@ -1574,14 +1774,19 @@ export type RecoverableServersGetResponse = RecoverableServerResource & { /** * The response body as parsed JSON or XML */ - parsedBody: RecoverableServerResource; + parsedBody: DatabaseListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the execute operation. */ -export type OperationsListResponse = OperationListResult & { +export type GetPrivateDnsZoneSuffixExecuteResponse = { + /** + * The parsed response body. + */ + body: string; + /** * The underlying HTTP response. */ @@ -1594,6 +1799,6 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: string; }; }; diff --git a/sdk/postgresql/arm-postgresql-flexible/src/models/locationBasedCapabilitiesMappers.ts b/sdk/postgresql/arm-postgresql-flexible/src/models/locationBasedCapabilitiesMappers.ts index d8ca8f65034d..731cba513de0 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/models/locationBasedCapabilitiesMappers.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/models/locationBasedCapabilitiesMappers.ts @@ -12,7 +12,9 @@ export { CloudError, ErrorAdditionalInfo, ErrorResponse, - ServerEditionCapability, + FlexibleServerEditionCapability, + HyperscaleNodeEditionCapability, + NodeTypeCapability, ServerVersionCapability, StorageEditionCapability, StorageMBCapability, diff --git a/sdk/postgresql/arm-postgresql-flexible/src/models/mappers.ts b/sdk/postgresql/arm-postgresql-flexible/src/models/mappers.ts index b1e27facb697..0069331612de 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/models/mappers.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/models/mappers.ts @@ -12,268 +12,6 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const ProxyResource: msRest.CompositeMapper = { - serializedName: "ProxyResource", - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const Database: msRest.CompositeMapper = { - serializedName: "Database", - type: { - name: "Composite", - className: "Database", - modelProperties: { - ...ProxyResource.type.modelProperties, - charset: { - serializedName: "properties.charset", - type: { - name: "String" - } - }, - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - } - } - } -}; - -export const ErrorAdditionalInfo: msRest.CompositeMapper = { - serializedName: "ErrorAdditionalInfo", - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - modelProperties: { - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - info: { - readOnly: true, - serializedName: "info", - type: { - name: "Object" - } - } - } - } -}; - -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - code: { - readOnly: true, - serializedName: "code", - type: { - name: "String" - } - }, - message: { - readOnly: true, - serializedName: "message", - type: { - name: "String" - } - }, - target: { - readOnly: true, - serializedName: "target", - type: { - name: "String" - } - }, - details: { - readOnly: true, - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorResponse" - } - } - } - }, - additionalInfo: { - readOnly: true, - serializedName: "additionalInfo", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } -}; - -export const TrackedResource: msRest.CompositeMapper = { - serializedName: "TrackedResource", - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const AzureEntityResource: msRest.CompositeMapper = { - serializedName: "AzureEntityResource", - type: { - name: "Composite", - className: "AzureEntityResource", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - readOnly: true, - serializedName: "etag", - type: { - name: "String" - } - } - } - } -}; - -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", - type: { - name: "Composite", - className: "Sku", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - required: true, - serializedName: "tier", - type: { - name: "String" - } - } - } - } -}; - -export const RecoverableServerResource: msRest.CompositeMapper = { - serializedName: "RecoverableServerResource", - type: { - name: "Composite", - className: "RecoverableServerResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - availabilityZone: { - readOnly: true, - serializedName: "properties.availabilityZone", - type: { - name: "String" - } - }, - serverEdition: { - readOnly: true, - serializedName: "properties.serverEdition", - type: { - name: "String" - } - }, - version: { - readOnly: true, - serializedName: "properties.version", - type: { - name: "String" - } - } - } - } -}; - export const VirtualNetworkSubnetUsageParameter: msRest.CompositeMapper = { serializedName: "VirtualNetworkSubnetUsageParameter", type: { @@ -363,6 +101,13 @@ export const StorageMBCapability: msRest.CompositeMapper = { type: { name: "Number" } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } } } } @@ -401,6 +146,13 @@ export const VcoreCapability: msRest.CompositeMapper = { type: { name: "Number" } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } } } } @@ -431,6 +183,13 @@ export const ServerVersionCapability: msRest.CompositeMapper = { } } } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } } } } @@ -440,7 +199,75 @@ export const StorageEditionCapability: msRest.CompositeMapper = { serializedName: "StorageEditionCapability", type: { name: "Composite", - className: "StorageEditionCapability", + className: "StorageEditionCapability", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + supportedStorageMB: { + readOnly: true, + serializedName: "supportedStorageMB", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageMBCapability" + } + } + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const NodeTypeCapability: msRest.CompositeMapper = { + serializedName: "NodeTypeCapability", + type: { + name: "Composite", + className: "NodeTypeCapability", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + nodeType: { + readOnly: true, + serializedName: "nodeType", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const FlexibleServerEditionCapability: msRest.CompositeMapper = { + serializedName: "FlexibleServerEditionCapability", + type: { + name: "Composite", + className: "FlexibleServerEditionCapability", modelProperties: { name: { readOnly: true, @@ -449,28 +276,48 @@ export const StorageEditionCapability: msRest.CompositeMapper = { name: "String" } }, - supportedStorageMB: { + supportedStorageEditions: { readOnly: true, - serializedName: "supportedStorageMB", + serializedName: "supportedStorageEditions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageMBCapability" + className: "StorageEditionCapability" + } + } + } + }, + supportedServerVersions: { + readOnly: true, + serializedName: "supportedServerVersions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVersionCapability" } } } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } } } } }; -export const ServerEditionCapability: msRest.CompositeMapper = { - serializedName: "ServerEditionCapability", +export const HyperscaleNodeEditionCapability: msRest.CompositeMapper = { + serializedName: "HyperscaleNodeEditionCapability", type: { name: "Composite", - className: "ServerEditionCapability", + className: "HyperscaleNodeEditionCapability", modelProperties: { name: { readOnly: true, @@ -504,6 +351,26 @@ export const ServerEditionCapability: msRest.CompositeMapper = { } } } + }, + supportedNodeTypes: { + readOnly: true, + serializedName: "supportedNodeTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NodeTypeCapability" + } + } + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } } } } @@ -522,6 +389,27 @@ export const CapabilityProperties: msRest.CompositeMapper = { name: "String" } }, + geoBackupSupported: { + readOnly: true, + serializedName: "geoBackupSupported", + type: { + name: "Boolean" + } + }, + zoneRedundantHaSupported: { + readOnly: true, + serializedName: "zoneRedundantHaSupported", + type: { + name: "Boolean" + } + }, + zoneRedundantHaAndGeoBackupSupported: { + readOnly: true, + serializedName: "zoneRedundantHaAndGeoBackupSupported", + type: { + name: "Boolean" + } + }, supportedFlexibleServerEditions: { readOnly: true, serializedName: "supportedFlexibleServerEditions", @@ -530,29 +418,59 @@ export const CapabilityProperties: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerEditionCapability" + className: "FlexibleServerEditionCapability" + } + } + } + }, + supportedHyperscaleNodeEditions: { + readOnly: true, + serializedName: "supportedHyperscaleNodeEditions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HyperscaleNodeEditionCapability" } } } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } } } } }; -export const StorageProfile: msRest.CompositeMapper = { - serializedName: "StorageProfile", +export const Storage: msRest.CompositeMapper = { + serializedName: "Storage", type: { name: "Composite", - className: "StorageProfile", + className: "Storage", modelProperties: { - backupRetentionDays: { - serializedName: "backupRetentionDays", + storageSizeGB: { + serializedName: "storageSizeGB", type: { name: "Number" } - }, - storageMB: { - serializedName: "storageMB", + } + } + } +}; + +export const Backup: msRest.CompositeMapper = { + serializedName: "Backup", + type: { + name: "Composite", + className: "Backup", + modelProperties: { + backupRetentionDays: { + serializedName: "backupRetentionDays", type: { name: "Number" } @@ -562,6 +480,71 @@ export const StorageProfile: msRest.CompositeMapper = { type: { name: "String" } + }, + earliestRestoreDate: { + readOnly: true, + serializedName: "earliestRestoreDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const Network: msRest.CompositeMapper = { + serializedName: "Network", + type: { + name: "Composite", + className: "Network", + modelProperties: { + publicNetworkAccess: { + readOnly: true, + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + }, + delegatedSubnetResourceId: { + serializedName: "delegatedSubnetResourceId", + type: { + name: "String" + } + }, + privateDnsZoneArmResourceId: { + serializedName: "privateDnsZoneArmResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const HighAvailability: msRest.CompositeMapper = { + serializedName: "HighAvailability", + type: { + name: "Composite", + className: "HighAvailability", + modelProperties: { + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + state: { + readOnly: true, + serializedName: "state", + type: { + name: "String" + } + }, + standbyAvailabilityZone: { + serializedName: "standbyAvailabilityZone", + type: { + name: "String" + } } } } @@ -601,30 +584,55 @@ export const MaintenanceWindow: msRest.CompositeMapper = { } }; -export const ServerPropertiesDelegatedSubnetArguments: msRest.CompositeMapper = { - serializedName: "ServerProperties_delegatedSubnetArguments", +export const Identity: msRest.CompositeMapper = { + serializedName: "Identity", type: { name: "Composite", - className: "ServerPropertiesDelegatedSubnetArguments", + className: "Identity", modelProperties: { - subnetArmResourceId: { - serializedName: "subnetArmResourceId", + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", type: { name: "String" } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned" + ] + } } } } }; -export const ServerPropertiesPrivateDnsZoneArguments: msRest.CompositeMapper = { - serializedName: "ServerProperties_privateDnsZoneArguments", +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", type: { name: "Composite", - className: "ServerPropertiesPrivateDnsZoneArguments", + className: "Sku", modelProperties: { - privateDnsZoneArmResourceId: { - serializedName: "privateDnsZoneArmResourceId", + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + required: true, + serializedName: "tier", type: { name: "String" } @@ -633,33 +641,106 @@ export const ServerPropertiesPrivateDnsZoneArguments: msRest.CompositeMapper = { } }; -export const Identity: msRest.CompositeMapper = { - serializedName: "Identity", +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", type: { name: "Composite", - className: "Identity", + className: "SystemData", modelProperties: { - principalId: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { readOnly: true, - serializedName: "principalId", + serializedName: "id", type: { name: "String" } }, - tenantId: { + name: { readOnly: true, - serializedName: "tenantId", + serializedName: "name", type: { name: "String" } }, type: { + readOnly: true, serializedName: "type", type: { - name: "Enum", - allowedValues: [ - "SystemAssigned" - ] + name: "String" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" } } } @@ -705,6 +786,13 @@ export const Server: msRest.CompositeMapper = { name: "String" } }, + minorVersion: { + readOnly: true, + serializedName: "properties.minorVersion", + type: { + name: "String" + } + }, state: { readOnly: true, serializedName: "properties.state", @@ -712,38 +800,39 @@ export const Server: msRest.CompositeMapper = { name: "String" } }, - haState: { + fullyQualifiedDomainName: { readOnly: true, - serializedName: "properties.haState", + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } }, - fullyQualifiedDomainName: { - readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", + storage: { + serializedName: "properties.storage", type: { - name: "String" + name: "Composite", + className: "Storage" } }, - displayName: { - serializedName: "properties.displayName", + backup: { + serializedName: "properties.backup", type: { - name: "String" + name: "Composite", + className: "Backup" } }, - storageProfile: { - serializedName: "properties.storageProfile", + network: { + serializedName: "properties.network", type: { name: "Composite", - className: "StorageProfile" + className: "Network" } }, - publicNetworkAccess: { - readOnly: true, - serializedName: "properties.publicNetworkAccess", + highAvailability: { + serializedName: "properties.highAvailability", type: { - name: "String" + name: "Composite", + className: "HighAvailability" } }, maintenanceWindow: { @@ -753,30 +842,8 @@ export const Server: msRest.CompositeMapper = { className: "MaintenanceWindow" } }, - haEnabled: { - serializedName: "properties.haEnabled", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - sourceServerName: { - serializedName: "properties.sourceServerName", - type: { - name: "String" - } - }, - sourceSubscriptionId: { - serializedName: "properties.sourceSubscriptionId", - type: { - name: "String" - } - }, - sourceResourceGroupName: { - serializedName: "properties.sourceResourceGroupName", + sourceServerResourceId: { + serializedName: "properties.sourceServerResourceId", type: { name: "String" } @@ -793,34 +860,6 @@ export const Server: msRest.CompositeMapper = { name: "String" } }, - standbyAvailabilityZone: { - readOnly: true, - serializedName: "properties.standbyAvailabilityZone", - type: { - name: "String" - } - }, - byokEnforcement: { - readOnly: true, - serializedName: "properties.byokEnforcement", - type: { - name: "String" - } - }, - delegatedSubnetArguments: { - serializedName: "properties.delegatedSubnetArguments", - type: { - name: "Composite", - className: "ServerPropertiesDelegatedSubnetArguments" - } - }, - privateDnsZoneArguments: { - serializedName: "properties.privateDnsZoneArguments", - type: { - name: "Composite", - className: "ServerPropertiesPrivateDnsZoneArguments" - } - }, createMode: { serializedName: "properties.createMode", type: { @@ -837,6 +876,14 @@ export const Server: msRest.CompositeMapper = { } } } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -867,21 +914,25 @@ export const ServerForUpdate: msRest.CompositeMapper = { name: "String" } }, - storageProfile: { - serializedName: "properties.storageProfile", + storage: { + serializedName: "properties.storage", type: { name: "Composite", - className: "StorageProfile" + className: "Storage" } }, - haEnabled: { - serializedName: "properties.haEnabled", + backup: { + serializedName: "properties.backup", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Composite", + className: "Backup" + } + }, + highAvailability: { + serializedName: "properties.highAvailability", + type: { + name: "Composite", + className: "HighAvailability" } }, maintenanceWindow: { @@ -891,6 +942,12 @@ export const ServerForUpdate: msRest.CompositeMapper = { className: "MaintenanceWindow" } }, + createMode: { + serializedName: "properties.createMode", + type: { + name: "String" + } + }, tags: { serializedName: "tags", type: { @@ -906,6 +963,17 @@ export const ServerForUpdate: msRest.CompositeMapper = { } }; +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const FirewallRule: msRest.CompositeMapper = { serializedName: "FirewallRule", type: { @@ -932,6 +1000,14 @@ export const FirewallRule: msRest.CompositeMapper = { type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -983,6 +1059,14 @@ export const Configuration: msRest.CompositeMapper = { type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -1161,6 +1245,127 @@ export const NameAvailability: msRest.CompositeMapper = { } }; +export const RestartParameter: msRest.CompositeMapper = { + serializedName: "RestartParameter", + type: { + name: "Composite", + className: "RestartParameter", + modelProperties: { + restartWithFailover: { + serializedName: "restartWithFailover", + type: { + name: "Boolean" + } + }, + failoverMode: { + serializedName: "failoverMode", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + }, + details: { + readOnly: true, + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const ResourceModelWithAllowedPropertySetIdentity: msRest.CompositeMapper = { serializedName: "ResourceModelWithAllowedPropertySet_identity", type: { @@ -1328,29 +1533,32 @@ export const ResourceModelWithAllowedPropertySet: msRest.CompositeMapper = { } }; -export const DatabaseListResult: msRest.CompositeMapper = { - serializedName: "DatabaseListResult", +export const Database: msRest.CompositeMapper = { + serializedName: "Database", type: { name: "Composite", - className: "DatabaseListResult", + className: "Database", modelProperties: { - value: { - serializedName: "", + ...ProxyResource.type.modelProperties, + charset: { + serializedName: "properties.charset", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Database" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + collation: { + serializedName: "properties.collation", type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -1469,3 +1677,31 @@ export const CapabilitiesListResult: msRest.CompositeMapper = { } } }; + +export const DatabaseListResult: msRest.CompositeMapper = { + serializedName: "DatabaseListResult", + type: { + name: "Composite", + className: "DatabaseListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Database" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/postgresql/arm-postgresql-flexible/src/models/parameters.ts b/sdk/postgresql/arm-postgresql-flexible/src/models/parameters.ts index c8fe4a8e2b16..de9e3c42451a 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/models/parameters.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/models/parameters.ts @@ -19,43 +19,11 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; -export const apiVersion0: msRest.OperationQueryParameter = { +export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2020-11-05-preview', - constraints: { - MinLength: 1 - }, - type: { - name: "String" - } - } -}; -export const apiVersion1: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2021-03-31-privatepreview', - constraints: { - MinLength: 1 - }, - type: { - name: "String" - } - } -}; -export const apiVersion2: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2021-04-10-privatepreview', constraints: { MinLength: 1 }, @@ -122,8 +90,7 @@ export const resourceGroupName: msRest.OperationURLParameter = { serializedName: "resourceGroupName", constraints: { MaxLength: 90, - MinLength: 1, - Pattern: /^[-\w\._\(\)]+$/ + MinLength: 1 }, type: { name: "String" diff --git a/sdk/postgresql/arm-postgresql-flexible/src/models/recoverableServersMappers.ts b/sdk/postgresql/arm-postgresql-flexible/src/models/recoverableServersMappers.ts deleted file mode 100644 index 217f16cfbb31..000000000000 --- a/sdk/postgresql/arm-postgresql-flexible/src/models/recoverableServersMappers.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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 { - AzureEntityResource, - BaseResource, - CloudError, - Configuration, - Database, - ErrorAdditionalInfo, - ErrorResponse, - FirewallRule, - Identity, - MaintenanceWindow, - Plan, - ProxyResource, - RecoverableServerResource, - Resource, - ResourceModelWithAllowedPropertySet, - ResourceModelWithAllowedPropertySetIdentity, - ResourceModelWithAllowedPropertySetPlan, - ResourceModelWithAllowedPropertySetSku, - Server, - ServerPropertiesDelegatedSubnetArguments, - ServerPropertiesPrivateDnsZoneArguments, - Sku, - StorageProfile, - TrackedResource -} from "../models/mappers"; diff --git a/sdk/postgresql/arm-postgresql-flexible/src/models/serversMappers.ts b/sdk/postgresql/arm-postgresql-flexible/src/models/serversMappers.ts index c9df4ef13453..121df0cf53d1 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/models/serversMappers.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/models/serversMappers.ts @@ -8,6 +8,7 @@ export { AzureEntityResource, + Backup, BaseResource, CloudError, Configuration, @@ -15,22 +16,23 @@ export { ErrorAdditionalInfo, ErrorResponse, FirewallRule, + HighAvailability, Identity, MaintenanceWindow, + Network, Plan, ProxyResource, - RecoverableServerResource, Resource, ResourceModelWithAllowedPropertySet, ResourceModelWithAllowedPropertySetIdentity, ResourceModelWithAllowedPropertySetPlan, ResourceModelWithAllowedPropertySetSku, + RestartParameter, Server, ServerForUpdate, ServerListResult, - ServerPropertiesDelegatedSubnetArguments, - ServerPropertiesPrivateDnsZoneArguments, Sku, - StorageProfile, + Storage, + SystemData, TrackedResource } from "../models/mappers"; diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/checkNameAvailability.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/checkNameAvailability.ts index 71b920982dc2..b91464de1da5 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/checkNameAvailability.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/operations/checkNameAvailability.ts @@ -11,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/checkNameAvailabilityMappers"; import * as Parameters from "../models/parameters"; -import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexibleManagementClientContext"; +import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext"; /** Class representing a CheckNameAvailability. */ export class CheckNameAvailability { - private readonly client: PostgreSQLFlexibleManagementClientContext; + private readonly client: PostgreSQLManagementClientContext; /** * Create a CheckNameAvailability. - * @param {PostgreSQLFlexibleManagementClientContext} client Reference to the service client. + * @param {PostgreSQLManagementClientContext} client Reference to the service client. */ - constructor(client: PostgreSQLFlexibleManagementClientContext) { + constructor(client: PostgreSQLManagementClientContext) { this.client = client; } @@ -66,7 +66,7 @@ const executeOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/configurations.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/configurations.ts index 261b32a55323..3c43d0482b49 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/configurations.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/operations/configurations.ts @@ -12,17 +12,17 @@ import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/configurationsMappers"; import * as Parameters from "../models/parameters"; -import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexibleManagementClientContext"; +import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext"; /** Class representing a Configurations. */ export class Configurations { - private readonly client: PostgreSQLFlexibleManagementClientContext; + private readonly client: PostgreSQLManagementClientContext; /** * Create a Configurations. - * @param {PostgreSQLFlexibleManagementClientContext} client Reference to the service client. + * @param {PostgreSQLManagementClientContext} client Reference to the service client. */ - constructor(client: PostgreSQLFlexibleManagementClientContext) { + constructor(client: PostgreSQLManagementClientContext) { this.client = client; } @@ -108,6 +108,20 @@ export class Configurations { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Updates a configuration of a server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param configurationName The name of the server configuration. + * @param parameters The required parameters for updating a server configuration. + * @param [options] The optional parameters + * @returns Promise + */ + put(resourceGroupName: string, serverName: string, configurationName: string, parameters: Models.Configuration, options?: msRest.RequestOptionsBase): Promise { + return this.beginPut(resourceGroupName,serverName,configurationName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Updates a configuration of a server. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -130,6 +144,28 @@ export class Configurations { options); } + /** + * Updates a configuration of a server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param configurationName The name of the server configuration. + * @param parameters The required parameters for updating a server configuration. + * @param [options] The optional parameters + * @returns Promise + */ + beginPut(resourceGroupName: string, serverName: string, configurationName: string, parameters: Models.Configuration, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + configurationName, + parameters, + options + }, + beginPutOperationSpec, + options); + } + /** * List all the configurations in a given server. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -170,7 +206,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -196,7 +232,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.configurationName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -222,7 +258,41 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.configurationName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Configuration, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Configuration + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginPutOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.configurationName + ], + queryParameters: [ + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -254,7 +324,7 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/databases.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/databases.ts index b9da26173ca5..92c5fdc95bd9 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/databases.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/operations/databases.ts @@ -12,17 +12,17 @@ import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/databasesMappers"; import * as Parameters from "../models/parameters"; -import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexibleManagementClientContext"; +import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext"; /** Class representing a Databases. */ export class Databases { - private readonly client: PostgreSQLFlexibleManagementClientContext; + private readonly client: PostgreSQLManagementClientContext; /** * Create a Databases. - * @param {PostgreSQLFlexibleManagementClientContext} client Reference to the service client. + * @param {PostgreSQLManagementClientContext} client Reference to the service client. */ - constructor(client: PostgreSQLFlexibleManagementClientContext) { + constructor(client: PostgreSQLManagementClientContext) { this.client = client; } @@ -204,7 +204,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -229,7 +229,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -255,7 +255,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -292,7 +292,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -316,7 +316,7 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/firewallRules.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/firewallRules.ts index a6496e4ba501..82417e785e5b 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/firewallRules.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/operations/firewallRules.ts @@ -12,17 +12,17 @@ import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/firewallRulesMappers"; import * as Parameters from "../models/parameters"; -import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexibleManagementClientContext"; +import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext"; /** Class representing a FirewallRules. */ export class FirewallRules { - private readonly client: PostgreSQLFlexibleManagementClientContext; + private readonly client: PostgreSQLManagementClientContext; /** * Create a FirewallRules. - * @param {PostgreSQLFlexibleManagementClientContext} client Reference to the service client. + * @param {PostgreSQLManagementClientContext} client Reference to the service client. */ - constructor(client: PostgreSQLFlexibleManagementClientContext) { + constructor(client: PostgreSQLManagementClientContext) { this.client = client; } @@ -204,7 +204,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.firewallRuleName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -229,7 +229,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -255,7 +255,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.firewallRuleName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -292,7 +292,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.firewallRuleName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -316,7 +316,7 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/getPrivateDnsZoneSuffix.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/getPrivateDnsZoneSuffix.ts index 9bcd159b7cd9..cf523a0e02fd 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/getPrivateDnsZoneSuffix.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/operations/getPrivateDnsZoneSuffix.ts @@ -11,45 +11,38 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/getPrivateDnsZoneSuffixMappers"; import * as Parameters from "../models/parameters"; -import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexibleManagementClientContext"; +import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext"; /** Class representing a GetPrivateDnsZoneSuffix. */ export class GetPrivateDnsZoneSuffix { - private readonly client: PostgreSQLFlexibleManagementClientContext; + private readonly client: PostgreSQLManagementClientContext; /** * Create a GetPrivateDnsZoneSuffix. - * @param {PostgreSQLFlexibleManagementClientContext} client Reference to the service client. + * @param {PostgreSQLManagementClientContext} client Reference to the service client. */ - constructor(client: PostgreSQLFlexibleManagementClientContext) { + constructor(client: PostgreSQLManagementClientContext) { this.client = client; } /** * Get private DNS zone suffix in the cloud - * @param body The required parameters for getting private DNS zone suffix based on server type. - * Possible values include: 'PostgreSQL', 'PostgreSQLCitus', 'MySQL', 'MariaDb', 'Oracle' * @param [options] The optional parameters * @returns Promise */ - execute(body: Models.Body, options?: msRest.RequestOptionsBase): Promise; + execute(options?: msRest.RequestOptionsBase): Promise; /** - * @param body The required parameters for getting private DNS zone suffix based on server type. - * Possible values include: 'PostgreSQL', 'PostgreSQLCitus', 'MySQL', 'MariaDb', 'Oracle' * @param callback The callback */ - execute(body: Models.Body, callback: msRest.ServiceCallback): void; + execute(callback: msRest.ServiceCallback): void; /** - * @param body The required parameters for getting private DNS zone suffix based on server type. - * Possible values include: 'PostgreSQL', 'PostgreSQLCitus', 'MySQL', 'MariaDb', 'Oracle' * @param options The optional parameters * @param callback The callback */ - execute(body: Models.Body, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - execute(body: Models.Body, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + execute(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + execute(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - body, options }, executeOperationSpec, @@ -61,26 +54,13 @@ export class GetPrivateDnsZoneSuffix { const serializer = new msRest.Serializer(Mappers); const executeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/getPrivateDnsZoneSuffix", - urlParameters: [ - Parameters.subscriptionId - ], + path: "providers/Microsoft.DBForPostgreSql/getPrivateDnsZoneSuffix", queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "body", - mapper: { - required: true, - serializedName: "body", - type: { - name: "String" - } - } - }, responses: { 200: { bodyMapper: { diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/index.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/index.ts index 5054eefb8e76..7f293c100d11 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/index.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/operations/index.ts @@ -7,13 +7,12 @@ * regenerated. */ -export * from "./databases"; -export * from "./getPrivateDnsZoneSuffix"; export * from "./servers"; export * from "./firewallRules"; export * from "./configurations"; export * from "./checkNameAvailability"; export * from "./locationBasedCapabilities"; export * from "./virtualNetworkSubnetUsage"; -export * from "./recoverableServers"; export * from "./operations"; +export * from "./databases"; +export * from "./getPrivateDnsZoneSuffix"; diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/locationBasedCapabilities.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/locationBasedCapabilities.ts index c49fae36be76..0bafacc33c84 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/locationBasedCapabilities.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/operations/locationBasedCapabilities.ts @@ -11,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/locationBasedCapabilitiesMappers"; import * as Parameters from "../models/parameters"; -import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexibleManagementClientContext"; +import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext"; /** Class representing a LocationBasedCapabilities. */ export class LocationBasedCapabilities { - private readonly client: PostgreSQLFlexibleManagementClientContext; + private readonly client: PostgreSQLManagementClientContext; /** * Create a LocationBasedCapabilities. - * @param {PostgreSQLFlexibleManagementClientContext} client Reference to the service client. + * @param {PostgreSQLManagementClientContext} client Reference to the service client. */ - constructor(client: PostgreSQLFlexibleManagementClientContext) { + constructor(client: PostgreSQLManagementClientContext) { this.client = client; } @@ -92,7 +92,7 @@ const executeOperationSpec: msRest.OperationSpec = { Parameters.locationName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -116,7 +116,7 @@ const executeNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/operations.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/operations.ts index 18a4e9afcf7a..155dbe32fe3d 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/operations.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/operations/operations.ts @@ -11,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/operationsMappers"; import * as Parameters from "../models/parameters"; -import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexibleManagementClientContext"; +import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext"; /** Class representing a Operations. */ export class Operations { - private readonly client: PostgreSQLFlexibleManagementClientContext; + private readonly client: PostgreSQLManagementClientContext; /** * Create a Operations. - * @param {PostgreSQLFlexibleManagementClientContext} client Reference to the service client. + * @param {PostgreSQLManagementClientContext} client Reference to the service client. */ - constructor(client: PostgreSQLFlexibleManagementClientContext) { + constructor(client: PostgreSQLManagementClientContext) { this.client = client; } @@ -56,7 +56,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.DBForPostgreSql/operations", queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/recoverableServers.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/recoverableServers.ts deleted file mode 100644 index c16fbcd8f046..000000000000 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/recoverableServers.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* - * 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/recoverableServersMappers"; -import * as Parameters from "../models/parameters"; -import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexibleManagementClientContext"; - -/** Class representing a RecoverableServers. */ -export class RecoverableServers { - private readonly client: PostgreSQLFlexibleManagementClientContext; - - /** - * Create a RecoverableServers. - * @param {PostgreSQLFlexibleManagementClientContext} client Reference to the service client. - */ - constructor(client: PostgreSQLFlexibleManagementClientContext) { - this.client = client; - } - - /** - * Gets a recoverable PostgreSQL Server. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serverName The name of the server. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serverName The name of the server. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/servers/{serverName}/recoverableServers", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RecoverableServerResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/servers.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/servers.ts index 543bbb2695ba..03f8a8b190f3 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/servers.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/operations/servers.ts @@ -12,17 +12,17 @@ import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/serversMappers"; import * as Parameters from "../models/parameters"; -import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexibleManagementClientContext"; +import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext"; /** Class representing a Servers. */ export class Servers { - private readonly client: PostgreSQLFlexibleManagementClientContext; + private readonly client: PostgreSQLManagementClientContext; /** * Create a Servers. - * @param {PostgreSQLFlexibleManagementClientContext} client Reference to the service client. + * @param {PostgreSQLManagementClientContext} client Reference to the service client. */ - constructor(client: PostgreSQLFlexibleManagementClientContext) { + constructor(client: PostgreSQLManagementClientContext) { this.client = client; } @@ -156,7 +156,7 @@ export class Servers { * @param [options] The optional parameters * @returns Promise */ - restart(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + restart(resourceGroupName: string, serverName: string, options?: Models.ServersRestartOptionalParams): Promise { return this.beginRestart(resourceGroupName,serverName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -251,7 +251,7 @@ export class Servers { * @param [options] The optional parameters * @returns Promise */ - beginRestart(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + beginRestart(resourceGroupName: string, serverName: string, options?: Models.ServersBeginRestartOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -366,7 +366,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -390,7 +390,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -413,7 +413,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -438,7 +438,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -474,7 +474,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -507,7 +507,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -532,11 +532,18 @@ const beginRestartOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.RestartParameter + }, responses: { 200: {}, 202: {}, @@ -556,7 +563,7 @@ const beginStartOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -580,7 +587,7 @@ const beginStopOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -603,7 +610,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -627,7 +634,7 @@ const listNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/postgresql/arm-postgresql-flexible/src/operations/virtualNetworkSubnetUsage.ts b/sdk/postgresql/arm-postgresql-flexible/src/operations/virtualNetworkSubnetUsage.ts index 3e8948a2ef7c..dbd7f7574e1f 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/operations/virtualNetworkSubnetUsage.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/operations/virtualNetworkSubnetUsage.ts @@ -11,17 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/virtualNetworkSubnetUsageMappers"; import * as Parameters from "../models/parameters"; -import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexibleManagementClientContext"; +import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext"; /** Class representing a VirtualNetworkSubnetUsage. */ export class VirtualNetworkSubnetUsage { - private readonly client: PostgreSQLFlexibleManagementClientContext; + private readonly client: PostgreSQLManagementClientContext; /** * Create a VirtualNetworkSubnetUsage. - * @param {PostgreSQLFlexibleManagementClientContext} client Reference to the service client. + * @param {PostgreSQLManagementClientContext} client Reference to the service client. */ - constructor(client: PostgreSQLFlexibleManagementClientContext) { + constructor(client: PostgreSQLManagementClientContext) { this.client = client; } @@ -68,7 +68,7 @@ const executeOperationSpec: msRest.OperationSpec = { Parameters.locationName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/postgresql/arm-postgresql-flexible/src/postgreSQLFlexibleManagementClient.ts b/sdk/postgresql/arm-postgresql-flexible/src/postgreSQLManagementClient.ts similarity index 79% rename from sdk/postgresql/arm-postgresql-flexible/src/postgreSQLFlexibleManagementClient.ts rename to sdk/postgresql/arm-postgresql-flexible/src/postgreSQLManagementClient.ts index 529b1972dc75..15926bf7b757 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/postgreSQLFlexibleManagementClient.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/postgreSQLManagementClient.ts @@ -12,24 +12,23 @@ import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; -import { PostgreSQLFlexibleManagementClientContext } from "./postgreSQLFlexibleManagementClientContext"; +import { PostgreSQLManagementClientContext } from "./postgreSQLManagementClientContext"; -class PostgreSQLFlexibleManagementClient extends PostgreSQLFlexibleManagementClientContext { +class PostgreSQLManagementClient extends PostgreSQLManagementClientContext { // Operation groups - databases: operations.Databases; - getPrivateDnsZoneSuffix: operations.GetPrivateDnsZoneSuffix; servers: operations.Servers; firewallRules: operations.FirewallRules; configurations: operations.Configurations; checkNameAvailability: operations.CheckNameAvailability; locationBasedCapabilities: operations.LocationBasedCapabilities; virtualNetworkSubnetUsage: operations.VirtualNetworkSubnetUsage; - recoverableServers: operations.RecoverableServers; operations: operations.Operations; + databases: operations.Databases; + getPrivateDnsZoneSuffix: operations.GetPrivateDnsZoneSuffix; /** - * Initializes a new instance of the PostgreSQLFlexibleManagementClient class. + * Initializes a new instance of the PostgreSQLManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. Credentials * implementing the TokenCredential interface from the @azure/identity package are recommended. For * more information about these credentials, see @@ -39,27 +38,26 @@ class PostgreSQLFlexibleManagementClient extends PostgreSQLFlexibleManagementCli * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PostgreSQLFlexibleManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PostgreSQLManagementClientOptions) { super(credentials, subscriptionId, options); - this.databases = new operations.Databases(this); - this.getPrivateDnsZoneSuffix = new operations.GetPrivateDnsZoneSuffix(this); this.servers = new operations.Servers(this); this.firewallRules = new operations.FirewallRules(this); this.configurations = new operations.Configurations(this); this.checkNameAvailability = new operations.CheckNameAvailability(this); this.locationBasedCapabilities = new operations.LocationBasedCapabilities(this); this.virtualNetworkSubnetUsage = new operations.VirtualNetworkSubnetUsage(this); - this.recoverableServers = new operations.RecoverableServers(this); this.operations = new operations.Operations(this); + this.databases = new operations.Databases(this); + this.getPrivateDnsZoneSuffix = new operations.GetPrivateDnsZoneSuffix(this); } } // Operation Specifications export { - PostgreSQLFlexibleManagementClient, - PostgreSQLFlexibleManagementClientContext, - Models as PostgreSQLFlexibleManagementModels, - Mappers as PostgreSQLFlexibleManagementMappers + PostgreSQLManagementClient, + PostgreSQLManagementClientContext, + Models as PostgreSQLManagementModels, + Mappers as PostgreSQLManagementMappers }; export * from "./operations"; diff --git a/sdk/postgresql/arm-postgresql-flexible/src/postgreSQLFlexibleManagementClientContext.ts b/sdk/postgresql/arm-postgresql-flexible/src/postgreSQLManagementClientContext.ts similarity index 89% rename from sdk/postgresql/arm-postgresql-flexible/src/postgreSQLFlexibleManagementClientContext.ts rename to sdk/postgresql/arm-postgresql-flexible/src/postgreSQLManagementClientContext.ts index b68ccae65c85..5366ffd5f270 100644 --- a/sdk/postgresql/arm-postgresql-flexible/src/postgreSQLFlexibleManagementClientContext.ts +++ b/sdk/postgresql/arm-postgresql-flexible/src/postgreSQLManagementClientContext.ts @@ -13,14 +13,15 @@ import * as msRestAzure from "@azure/ms-rest-azure-js"; import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-postgresql-flexible"; -const packageVersion = "1.0.0"; +const packageVersion = "3.0.0"; -export class PostgreSQLFlexibleManagementClientContext extends msRestAzure.AzureServiceClient { +export class PostgreSQLManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials | TokenCredential; + apiVersion?: string; subscriptionId: string; /** - * Initializes a new instance of the PostgreSQLFlexibleManagementClient class. + * Initializes a new instance of the PostgreSQLManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. Credentials * implementing the TokenCredential interface from the @azure/identity package are recommended. For * more information about these credentials, see @@ -30,7 +31,7 @@ export class PostgreSQLFlexibleManagementClientContext extends msRestAzure.Azure * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PostgreSQLFlexibleManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PostgreSQLManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -48,6 +49,7 @@ export class PostgreSQLFlexibleManagementClientContext extends msRestAzure.Azure super(credentials, options); + this.apiVersion = '2021-06-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/postgresql/arm-postgresql/README.md b/sdk/postgresql/arm-postgresql/README.md index 4894053e5749..70ce548880f8 100644 --- a/sdk/postgresql/arm-postgresql/README.md +++ b/sdk/postgresql/arm-postgresql/README.md @@ -1,93 +1,103 @@ ## Azure PostgreSQLManagementClient SDK for JavaScript -This package contains an isomorphic SDK for PostgreSQLManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PostgreSQLManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-postgresql` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-postgresql +npm install --save @azure/arm-postgresql @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. + ### How to use -#### nodejs - client creation and get servers as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get servers as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { PostgreSQLManagementClient } = require("@azure/arm-postgresql"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new PostgreSQLManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const serverName = "testserverName"; - client.servers.get(resourceGroupName, serverName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new PostgreSQLManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const serverName = "testserverName"; +client.servers.get(resourceGroupName, serverName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get servers as an example written in JavaScript. +#### browser - Authentication, client creation, and get servers as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-postgresql sample - - + diff --git a/sdk/postgresql/arm-postgresql/package.json b/sdk/postgresql/arm-postgresql/package.json index 985360d5fddb..2d8d44c2fba5 100644 --- a/sdk/postgresql/arm-postgresql/package.json +++ b/sdk/postgresql/arm-postgresql/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-postgresql", "author": "Microsoft Corporation", "description": "PostgreSQLManagementClient Library with typescript type definitions for node.js and browser.", - "version": "5.0.0", + "version": "5.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/postgreSQLManagementClient.js", "types": "./esm/postgreSQLManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/postgresql/arm-postgresql/src/postgreSQLManagementClient.ts b/sdk/postgresql/arm-postgresql/src/postgreSQLManagementClient.ts index 3ce93955ee2c..6d38dc58f05b 100644 --- a/sdk/postgresql/arm-postgresql/src/postgreSQLManagementClient.ts +++ b/sdk/postgresql/arm-postgresql/src/postgreSQLManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -37,11 +38,16 @@ class PostgreSQLManagementClient extends PostgreSQLManagementClientContext { /** * Initializes a new instance of the PostgreSQLManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PostgreSQLManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PostgreSQLManagementClientOptions) { super(credentials, subscriptionId, options); this.servers = new operations.Servers(this); this.replicas = new operations.Replicas(this); diff --git a/sdk/postgresql/arm-postgresql/src/postgreSQLManagementClientContext.ts b/sdk/postgresql/arm-postgresql/src/postgreSQLManagementClientContext.ts index 7d2c5bb72738..63ae6996dc86 100644 --- a/sdk/postgresql/arm-postgresql/src/postgreSQLManagementClientContext.ts +++ b/sdk/postgresql/arm-postgresql/src/postgreSQLManagementClientContext.ts @@ -9,22 +9,28 @@ 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"; const packageName = "@azure/arm-postgresql"; -const packageVersion = "5.0.0"; +const packageVersion = "5.1.0"; export class PostgreSQLManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; /** * Initializes a new instance of the PostgreSQLManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PostgreSQLManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PostgreSQLManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/powerbidedicated/arm-powerbidedicated/README.md b/sdk/powerbidedicated/arm-powerbidedicated/README.md index e213b7d8b506..350863bc9ba0 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/README.md +++ b/sdk/powerbidedicated/arm-powerbidedicated/README.md @@ -1,94 +1,103 @@ ## Azure PowerBIDedicatedManagementClient SDK for JavaScript -This package contains an isomorphic SDK for PowerBIDedicatedManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PowerBIDedicatedManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-powerbidedicated` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-powerbidedicated +npm install --save @azure/arm-powerbidedicated @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. + ### How to use -#### nodejs - Authentication, client creation and getDetails capacities as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and getDetails capacities as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { PowerBIDedicatedManagementClient, PowerBIDedicatedManagementModels, PowerBIDedicatedManagementMappers } from "@azure/arm-powerbidedicated"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { PowerBIDedicatedManagementClient } = require("@azure/arm-powerbidedicated"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new PowerBIDedicatedManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const dedicatedCapacityName = "testdedicatedCapacityName"; - client.capacities.getDetails(resourceGroupName, dedicatedCapacityName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new PowerBIDedicatedManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const dedicatedCapacityName = "testdedicatedCapacityName"; +client.capacities.getDetails(resourceGroupName, dedicatedCapacityName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and getDetails capacities as an example written in JavaScript. +#### browser - Authentication, client creation, and getDetails capacities as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-powerbidedicated sample - - + diff --git a/sdk/powerbidedicated/arm-powerbidedicated/package.json b/sdk/powerbidedicated/arm-powerbidedicated/package.json index e9e3e8b3365b..4dc75966af4b 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/package.json +++ b/sdk/powerbidedicated/arm-powerbidedicated/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-powerbidedicated", "author": "Microsoft Corporation", "description": "PowerBIDedicatedManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.0.0", + "version": "2.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/powerBIDedicatedManagementClient.js", "types": "./esm/powerBIDedicatedManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClient.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClient.ts index 33c72336bac6..eb7fcf046832 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClient.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,12 +23,17 @@ class PowerBIDedicatedManagementClient extends PowerBIDedicatedManagementClientC /** * Initializes a new instance of the PowerBIDedicatedManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 A unique identifier for a Microsoft Azure subscription. The subscription * ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PowerBIDedicatedManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PowerBIDedicatedManagementClientOptions) { super(credentials, subscriptionId, options); this.capacities = new operations.Capacities(this); this.operations = new operations.Operations(this); diff --git a/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClientContext.ts b/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClientContext.ts index 8c2c324a10d1..0a9f748e5175 100644 --- a/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClientContext.ts +++ b/sdk/powerbidedicated/arm-powerbidedicated/src/powerBIDedicatedManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-powerbidedicated"; -const packageVersion = "2.0.0"; +const packageVersion = "2.1.0"; export class PowerBIDedicatedManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the PowerBIDedicatedManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 A unique identifier for a Microsoft Azure subscription. The subscription * ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PowerBIDedicatedManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PowerBIDedicatedManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/powerbiembedded/arm-powerbiembedded/README.md b/sdk/powerbiembedded/arm-powerbiembedded/README.md index 9213827f768a..ac3cb55a27d4 100644 --- a/sdk/powerbiembedded/arm-powerbiembedded/README.md +++ b/sdk/powerbiembedded/arm-powerbiembedded/README.md @@ -1,93 +1,103 @@ ## Azure PowerBIEmbeddedManagementClient SDK for JavaScript -This package contains an isomorphic SDK for PowerBIEmbeddedManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PowerBIEmbeddedManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-powerbiembedded +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-powerbiembedded` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-powerbiembedded @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. + ### How to use -#### nodejs - Authentication, client creation and getByName workspaceCollections as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and getByName workspaceCollections as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { PowerBIEmbeddedManagementClient, PowerBIEmbeddedManagementModels, PowerBIEmbeddedManagementMappers } from "@azure/arm-powerbiembedded"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { PowerBIEmbeddedManagementClient } = require("@azure/arm-powerbiembedded"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new PowerBIEmbeddedManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const workspaceCollectionName = "testworkspaceCollectionName"; - client.workspaceCollections.getByName(resourceGroupName, workspaceCollectionName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new PowerBIEmbeddedManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const workspaceCollectionName = "testworkspaceCollectionName"; +client.workspaceCollections.getByName(resourceGroupName, workspaceCollectionName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and getByName workspaceCollections as an example written in JavaScript. +#### browser - Authentication, client creation, and getByName workspaceCollections as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-powerbiembedded sample - - + @@ -99,5 +109,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fpowerbiembedded%2Farm-powerbiembedded%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/powerbiembedded/arm-powerbiembedded/README.png) diff --git a/sdk/powerbiembedded/arm-powerbiembedded/package.json b/sdk/powerbiembedded/arm-powerbiembedded/package.json index e4ca4e96d3d9..16accacf4be4 100644 --- a/sdk/powerbiembedded/arm-powerbiembedded/package.json +++ b/sdk/powerbiembedded/arm-powerbiembedded/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-powerbiembedded", "author": "Microsoft Corporation", "description": "PowerBIEmbeddedManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.2.0", + "version": "1.3.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/powerBIEmbeddedManagementClient.js", "types": "./esm/powerBIEmbeddedManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/powerbiembedded/arm-powerbiembedded/src/powerBIEmbeddedManagementClient.ts b/sdk/powerbiembedded/arm-powerbiembedded/src/powerBIEmbeddedManagementClient.ts index a7d1e269bc37..3865970e8d99 100644 --- a/sdk/powerbiembedded/arm-powerbiembedded/src/powerBIEmbeddedManagementClient.ts +++ b/sdk/powerbiembedded/arm-powerbiembedded/src/powerBIEmbeddedManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -23,12 +24,17 @@ class PowerBIEmbeddedManagementClient extends PowerBIEmbeddedManagementClientCon /** * Initializes a new instance of the PowerBIEmbeddedManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify a Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PowerBIEmbeddedManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PowerBIEmbeddedManagementClientOptions) { super(credentials, subscriptionId, options); this.workspaceCollections = new operations.WorkspaceCollections(this); this.workspaces = new operations.Workspaces(this); diff --git a/sdk/powerbiembedded/arm-powerbiembedded/src/powerBIEmbeddedManagementClientContext.ts b/sdk/powerbiembedded/arm-powerbiembedded/src/powerBIEmbeddedManagementClientContext.ts index d2974390607f..7492af897c70 100644 --- a/sdk/powerbiembedded/arm-powerbiembedded/src/powerBIEmbeddedManagementClientContext.ts +++ b/sdk/powerbiembedded/arm-powerbiembedded/src/powerBIEmbeddedManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-powerbiembedded"; -const packageVersion = "0.1.0"; +const packageVersion = "1.3.0"; export class PowerBIEmbeddedManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the PowerBIEmbeddedManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify a Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PowerBIEmbeddedManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PowerBIEmbeddedManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/privatedns/arm-privatedns/README.md b/sdk/privatedns/arm-privatedns/README.md index 855aceddf7bb..c707eccceb75 100644 --- a/sdk/privatedns/arm-privatedns/README.md +++ b/sdk/privatedns/arm-privatedns/README.md @@ -1,94 +1,103 @@ ## Azure PrivateDnsManagementClient SDK for JavaScript -This package contains an isomorphic SDK for PrivateDnsManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for PrivateDnsManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-privatedns` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-privatedns +npm install --save @azure/arm-privatedns @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. + ### How to use -#### nodejs - Authentication, client creation and get privateZones as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get privateZones as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { PrivateDnsManagementClient, PrivateDnsManagementModels, PrivateDnsManagementMappers } from "@azure/arm-privatedns"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { PrivateDnsManagementClient } = require("@azure/arm-privatedns"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new PrivateDnsManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const privateZoneName = "testprivateZoneName"; - client.privateZones.get(resourceGroupName, privateZoneName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new PrivateDnsManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const privateZoneName = "testprivateZoneName"; +client.privateZones.get(resourceGroupName, privateZoneName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get privateZones as an example written in JavaScript. +#### browser - Authentication, client creation, and get privateZones as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-privatedns sample - - + diff --git a/sdk/privatedns/arm-privatedns/package.json b/sdk/privatedns/arm-privatedns/package.json index ce01d91428f5..adca1240dfb9 100644 --- a/sdk/privatedns/arm-privatedns/package.json +++ b/sdk/privatedns/arm-privatedns/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-privatedns", "author": "Microsoft Corporation", "description": "PrivateDnsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.0.0", + "version": "2.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/privateDnsManagementClient.js", "types": "./esm/privateDnsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/privatedns/arm-privatedns/src/privateDnsManagementClient.ts b/sdk/privatedns/arm-privatedns/src/privateDnsManagementClient.ts index 7f3f6ceb4d13..17ca442b2bc3 100644 --- a/sdk/privatedns/arm-privatedns/src/privateDnsManagementClient.ts +++ b/sdk/privatedns/arm-privatedns/src/privateDnsManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -23,12 +24,17 @@ class PrivateDnsManagementClient extends PrivateDnsManagementClientContext { /** * Initializes a new instance of the PrivateDnsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PrivateDnsManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PrivateDnsManagementClientOptions) { super(credentials, subscriptionId, options); this.privateZones = new operations.PrivateZones(this); this.virtualNetworkLinks = new operations.VirtualNetworkLinks(this); diff --git a/sdk/privatedns/arm-privatedns/src/privateDnsManagementClientContext.ts b/sdk/privatedns/arm-privatedns/src/privateDnsManagementClientContext.ts index 70b7dda90690..353a94c15772 100644 --- a/sdk/privatedns/arm-privatedns/src/privateDnsManagementClientContext.ts +++ b/sdk/privatedns/arm-privatedns/src/privateDnsManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-privatedns"; -const packageVersion = "2.0.0"; +const packageVersion = "2.1.0"; export class PrivateDnsManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the PrivateDnsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PrivateDnsManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.PrivateDnsManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/recoveryservices/arm-recoveryservices/README.md b/sdk/recoveryservices/arm-recoveryservices/README.md index 54336c35cd94..ab315519a42c 100644 --- a/sdk/recoveryservices/arm-recoveryservices/README.md +++ b/sdk/recoveryservices/arm-recoveryservices/README.md @@ -1,93 +1,103 @@ ## Azure RecoveryServicesClient SDK for JavaScript -This package contains an isomorphic SDK for RecoveryServicesClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for RecoveryServicesClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-recoveryservices` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-recoveryservices +npm install --save @azure/arm-recoveryservices @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. + ### How to use -#### nodejs - client creation and list replicationUsages as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list replicationUsages as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { RecoveryServicesClient } = require("@azure/arm-recoveryservices"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new RecoveryServicesClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const vaultName = "testvaultName"; - client.replicationUsages.list(resourceGroupName, vaultName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new RecoveryServicesClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const vaultName = "testvaultName"; +client.replicationUsages.list(resourceGroupName, vaultName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list replicationUsages as an example written in JavaScript. +#### browser - Authentication, client creation, and list replicationUsages as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-recoveryservices sample - - + diff --git a/sdk/recoveryservices/arm-recoveryservices/package.json b/sdk/recoveryservices/arm-recoveryservices/package.json index 20376606d69b..1ecba9962174 100644 --- a/sdk/recoveryservices/arm-recoveryservices/package.json +++ b/sdk/recoveryservices/arm-recoveryservices/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-recoveryservices", "author": "Microsoft Corporation", "description": "RecoveryServicesClient Library with typescript type definitions for node.js and browser.", - "version": "4.1.0", + "version": "4.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/recoveryServicesClient.js", "types": "./esm/recoveryServicesClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts index 7e1df780c2ed..d15c270d9e32 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -28,11 +29,16 @@ class RecoveryServicesClient extends RecoveryServicesClientContext { /** * Initializes a new instance of the RecoveryServicesClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RecoveryServicesClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RecoveryServicesClientOptions) { super(credentials, subscriptionId, options); this.vaultCertificates = new operations.VaultCertificates(this); this.registeredIdentities = new operations.RegisteredIdentities(this); diff --git a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts index 01afef1bd386..9d0b92a7d8d7 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-recoveryservices"; -const packageVersion = "4.1.0"; +const packageVersion = "4.2.0"; export class RecoveryServicesClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the RecoveryServicesClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RecoveryServicesClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RecoveryServicesClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE.txt b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE.txt index a70e8cf66038..2d3163745319 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE.txt +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 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/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/README.md b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/README.md index 330bfc2c296c..2713d36ab7a0 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/README.md +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/README.md @@ -1,89 +1,97 @@ ## Azure SiteRecoveryManagementClient SDK for JavaScript -This package contains an isomorphic SDK for SiteRecoveryManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for SiteRecoveryManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-recoveryservices-siterecovery` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-recoveryservices-siterecovery @azure/identity ``` -npm install @azure/arm-recoveryservices-siterecovery -``` +> **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. ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -``` -npm install @azure/ms-rest-nodeauth -``` +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 operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { SiteRecoveryManagementClient, SiteRecoveryManagementModels, SiteRecoveryManagementMappers } from "@azure/arm-recoveryservices-siterecovery"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { SiteRecoveryManagementClient } = require("@azure/arm-recoveryservices-siterecovery"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SiteRecoveryManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SiteRecoveryManagementClient(creds, subscriptionId); +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-recoveryservices-siterecovery sample - - + @@ -95,5 +103,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Frecoveryservicessiterecovery%2Farm-recoveryservices-siterecovery%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/README.png) diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/package.json b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/package.json index 1376d42c7006..033c4a126636 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/package.json +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/package.json @@ -2,11 +2,12 @@ "name": "@azure/arm-recoveryservices-siterecovery", "author": "Microsoft Corporation", "description": "SiteRecoveryManagementClient Library with typescript type definitions for node.js and browser.", - "version": "3.2.0", + "version": "3.3.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +21,19 @@ "module": "./esm/siteRecoveryManagementClient.js", "types": "./esm/siteRecoveryManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.6.0", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/main/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery", "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", @@ -43,6 +45,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/rollup.config.js b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/rollup.config.js index 9c289477ee2a..19fc834e5e7b 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/rollup.config.js +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/siteRecoveryManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/siteRecoveryManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-recoveryservices-siterecovery.js", format: "umd", @@ -15,17 +21,17 @@ 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts index bc6c2955108e..ab342429585d 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/index.ts @@ -1,11 +1,9 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,34 +11,156 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; +/** + * A2A disk input details. + */ +export interface A2AVmDiskInputDetails { + /** + * The disk Uri. + */ + diskUri: string; + /** + * The recovery VHD storage account Id. + */ + recoveryAzureStorageAccountId: string; + /** + * The primary staging storage account Id. + */ + primaryStagingAzureStorageAccountId: string; +} + +/** + * Disk Encryption Key Information (BitLocker Encryption Key (BEK) on Windows). + */ +export interface DiskEncryptionKeyInfo { + /** + * The secret url / identifier. + */ + secretIdentifier?: string; + /** + * The KeyVault resource ARM id for secret. + */ + keyVaultResourceArmId?: string; +} + +/** + * Key Encryption Key (KEK) information. + */ +export interface KeyEncryptionKeyInfo { + /** + * The key URL / identifier. + */ + keyIdentifier?: string; + /** + * The KeyVault resource ARM Id for key. + */ + keyVaultResourceArmId?: string; +} + +/** + * Recovery disk encryption info (BEK and KEK). + */ +export interface DiskEncryptionInfo { + /** + * The recovery KeyVault reference for secret. + */ + diskEncryptionKeyInfo?: DiskEncryptionKeyInfo; + /** + * The recovery KeyVault reference for key. + */ + keyEncryptionKeyInfo?: KeyEncryptionKeyInfo; +} + +/** + * A2A managed disk input details. + */ +export interface A2AVmManagedDiskInputDetails { + /** + * The disk Id. + */ + diskId: string; + /** + * The primary staging storage account Arm Id. + */ + primaryStagingAzureStorageAccountId: string; + /** + * The target resource group Arm Id. + */ + recoveryResourceGroupId: string; + /** + * The replica disk type. Its an optional value and will be same as source disk type if not user + * provided. + */ + recoveryReplicaDiskAccountType?: string; + /** + * The target disk type after failover. Its an optional value and will be same as source disk + * type if not user provided. + */ + recoveryTargetDiskAccountType?: string; + /** + * The recovery disk encryption set Id. + */ + recoveryDiskEncryptionSetId?: string; + /** + * The recovery disk encryption information (for one / single pass flows). + */ + diskEncryptionInfo?: DiskEncryptionInfo; +} + +/** + * Contains the possible cases for AddDisksProviderSpecificInput. + */ +export type AddDisksProviderSpecificInputUnion = AddDisksProviderSpecificInput | A2AAddDisksInput; + +/** + * Add Disks provider specific input. + */ +export interface AddDisksProviderSpecificInput { + /** + * Polymorphic Discriminator + */ + instanceType: "AddDisksProviderSpecificInput"; +} + +/** + * A2A add disk(s) input. + */ +export interface A2AAddDisksInput { + /** + * Polymorphic Discriminator + */ + instanceType: "A2A"; + /** + * The list of vm disk details. + */ + vmDisks?: A2AVmDiskInputDetails[]; + /** + * The list of vm managed disk details. + */ + vmManagedDisks?: A2AVmManagedDiskInputDetails[]; +} /** * Contains the possible cases for ApplyRecoveryPointProviderSpecificInput. */ -export type ApplyRecoveryPointProviderSpecificInputUnion = ApplyRecoveryPointProviderSpecificInput | A2AApplyRecoveryPointInput | HyperVReplicaAzureApplyRecoveryPointInput | InMageAzureV2ApplyRecoveryPointInput; +export type ApplyRecoveryPointProviderSpecificInputUnion = ApplyRecoveryPointProviderSpecificInput | A2AApplyRecoveryPointInput | A2ACrossClusterMigrationApplyRecoveryPointInput | HyperVReplicaAzureApplyRecoveryPointInput | InMageAzureV2ApplyRecoveryPointInput | InMageRcmApplyRecoveryPointInput; /** - * @interface - * An interface representing ApplyRecoveryPointProviderSpecificInput. * Provider specific input for apply recovery point. - * */ export interface ApplyRecoveryPointProviderSpecificInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "ApplyRecoveryPointProviderSpecificInput"; } /** - * @interface - * An interface representing A2AApplyRecoveryPointInput. * ApplyRecoveryPoint input specific to A2A provider. - * */ export interface A2AApplyRecoveryPointInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; } @@ -48,30 +168,24 @@ export interface A2AApplyRecoveryPointInput { /** * Contains the possible cases for ReplicationProviderSpecificContainerCreationInput. */ -export type ReplicationProviderSpecificContainerCreationInputUnion = ReplicationProviderSpecificContainerCreationInput | A2AContainerCreationInput; +export type ReplicationProviderSpecificContainerCreationInputUnion = ReplicationProviderSpecificContainerCreationInput | A2AContainerCreationInput | A2ACrossClusterMigrationContainerCreationInput | VMwareCbtContainerCreationInput; /** - * @interface - * An interface representing ReplicationProviderSpecificContainerCreationInput. * Provider specific input for container creation operation. - * */ export interface ReplicationProviderSpecificContainerCreationInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "ReplicationProviderSpecificContainerCreationInput"; } /** - * @interface - * An interface representing A2AContainerCreationInput. * A2A cloud creation input. - * */ export interface A2AContainerCreationInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; } @@ -79,379 +193,559 @@ export interface A2AContainerCreationInput { /** * Contains the possible cases for ReplicationProviderSpecificContainerMappingInput. */ -export type ReplicationProviderSpecificContainerMappingInputUnion = ReplicationProviderSpecificContainerMappingInput | A2AContainerMappingInput; +export type ReplicationProviderSpecificContainerMappingInputUnion = ReplicationProviderSpecificContainerMappingInput | A2AContainerMappingInput | VMwareCbtContainerMappingInput; /** - * @interface - * An interface representing ReplicationProviderSpecificContainerMappingInput. * Provider specific input for pairing operations. - * */ export interface ReplicationProviderSpecificContainerMappingInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "ReplicationProviderSpecificContainerMappingInput"; } /** - * @interface - * An interface representing A2AContainerMappingInput. * A2A container mapping input. - * */ export interface A2AContainerMappingInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {AgentAutoUpdateStatus} [agentAutoUpdateStatus] A value indicating - * whether the auto update is enabled. Possible values include: 'Disabled', + * A value indicating whether the auto update is enabled. Possible values include: 'Disabled', * 'Enabled' */ agentAutoUpdateStatus?: AgentAutoUpdateStatus; /** - * @member {string} [automationAccountArmId] The automation account arm id. + * The automation account arm id. */ automationAccountArmId?: string; } /** - * @interface - * An interface representing A2AVmDiskInputDetails. - * Azure VM disk input details. - * + * Contains the possible cases for ProtectionProfileCustomDetails. */ -export interface A2AVmDiskInputDetails { +export type ProtectionProfileCustomDetailsUnion = ProtectionProfileCustomDetails | ExistingProtectionProfile | NewProtectionProfile; + +/** + * Protection Profile custom input. + */ +export interface ProtectionProfileCustomDetails { /** - * @member {string} [diskUri] The disk Uri. + * Polymorphic Discriminator */ - diskUri?: string; + resourceType: "ProtectionProfileCustomDetails"; +} + +/** + * Contains the possible cases for StorageAccountCustomDetails. + */ +export type StorageAccountCustomDetailsUnion = StorageAccountCustomDetails | ExistingStorageAccount; + +/** + * Storage account custom input. + */ +export interface StorageAccountCustomDetails { /** - * @member {string} [recoveryAzureStorageAccountId] The recovery VHD storage - * account Id. + * Polymorphic Discriminator */ - recoveryAzureStorageAccountId?: string; + resourceType: "StorageAccountCustomDetails"; +} + +/** + * Contains the possible cases for RecoveryAvailabilitySetCustomDetails. + */ +export type RecoveryAvailabilitySetCustomDetailsUnion = RecoveryAvailabilitySetCustomDetails | ExistingRecoveryAvailabilitySet; + +/** + * Recovery Availability Set custom input. + */ +export interface RecoveryAvailabilitySetCustomDetails { /** - * @member {string} [primaryStagingAzureStorageAccountId] The primary staging - * storage account Id. + * Polymorphic Discriminator */ - primaryStagingAzureStorageAccountId?: string; + resourceType: "RecoveryAvailabilitySetCustomDetails"; } /** - * @interface - * An interface representing A2AVmManagedDiskInputDetails. - * Azure VM managed disk input details. - * + * Contains the possible cases for RecoveryVirtualNetworkCustomDetails. */ -export interface A2AVmManagedDiskInputDetails { +export type RecoveryVirtualNetworkCustomDetailsUnion = RecoveryVirtualNetworkCustomDetails | ExistingRecoveryVirtualNetwork | NewRecoveryVirtualNetwork; + +/** + * Recovery Virtual network custom input. + */ +export interface RecoveryVirtualNetworkCustomDetails { /** - * @member {string} [diskId] The disk Id. + * Polymorphic Discriminator */ - diskId?: string; + resourceType: "RecoveryVirtualNetworkCustomDetails"; +} + +/** + * Contains the possible cases for RecoveryProximityPlacementGroupCustomDetails. + */ +export type RecoveryProximityPlacementGroupCustomDetailsUnion = RecoveryProximityPlacementGroupCustomDetails | ExistingRecoveryProximityPlacementGroup; + +/** + * Recovery Proximity placement group custom input. + */ +export interface RecoveryProximityPlacementGroupCustomDetails { /** - * @member {string} [primaryStagingAzureStorageAccountId] The primary staging - * storage account Arm Id. + * Polymorphic Discriminator */ - primaryStagingAzureStorageAccountId?: string; + resourceType: "RecoveryProximityPlacementGroupCustomDetails"; +} + +/** + * Azure VM unmanaged disk input details. + */ +export interface A2AProtectionIntentDiskInputDetails { /** - * @member {string} [recoveryResourceGroupId] The target resource group Arm - * Id. + * The disk Uri. */ - recoveryResourceGroupId?: string; + diskUri: string; /** - * @member {string} [recoveryReplicaDiskAccountType] The replica disk type. - * Its an optional value and will be same as source disk type if not user - * provided. + * The recovery VHD storage account input. */ - recoveryReplicaDiskAccountType?: string; + recoveryAzureStorageAccountCustomInput?: StorageAccountCustomDetailsUnion; /** - * @member {string} [recoveryTargetDiskAccountType] The target disk type - * after failover. Its an optional value and will be same as source disk type - * if not user provided. + * The primary staging storage account input. */ - recoveryTargetDiskAccountType?: string; + primaryStagingStorageAccountCustomInput?: StorageAccountCustomDetailsUnion; } /** - * @interface - * An interface representing DiskEncryptionKeyInfo. - * Disk Encryption Key Information (BitLocker Encryption Key (BEK) on Windows). - * + * Contains the possible cases for RecoveryResourceGroupCustomDetails. */ -export interface DiskEncryptionKeyInfo { - /** - * @member {string} [secretIdentifier] The secret url / identifier. - */ - secretIdentifier?: string; +export type RecoveryResourceGroupCustomDetailsUnion = RecoveryResourceGroupCustomDetails | ExistingRecoveryRecoveryResourceGroup; + +/** + * Recovery Resource Group custom input. + */ +export interface RecoveryResourceGroupCustomDetails { /** - * @member {string} [keyVaultResourceArmId] The KeyVault resource ARM id for - * secret. + * Polymorphic Discriminator */ - keyVaultResourceArmId?: string; + resourceType: "RecoveryResourceGroupCustomDetails"; } /** - * @interface - * An interface representing KeyEncryptionKeyInfo. - * Key Encryption Key (KEK) information. - * + * Azure VM managed disk input details. */ -export interface KeyEncryptionKeyInfo { +export interface A2AProtectionIntentManagedDiskInputDetails { /** - * @member {string} [keyIdentifier] The key url / identifier. + * The disk Id. */ - keyIdentifier?: string; + diskId: string; /** - * @member {string} [keyVaultResourceArmId] The KeyVault resource ARM id for - * key. + * The primary staging storage account input. */ - keyVaultResourceArmId?: string; -} - -/** - * @interface - * An interface representing DiskEncryptionInfo. - * Recovery disk encryption info (BEK and KEK). - * - */ -export interface DiskEncryptionInfo { + primaryStagingStorageAccountCustomInput?: StorageAccountCustomDetailsUnion; /** - * @member {DiskEncryptionKeyInfo} [diskEncryptionKeyInfo] The recovery - * KeyVault reference for secret. + * The recovery resource group input. */ - diskEncryptionKeyInfo?: DiskEncryptionKeyInfo; + recoveryResourceGroupCustomInput?: RecoveryResourceGroupCustomDetailsUnion; /** - * @member {KeyEncryptionKeyInfo} [keyEncryptionKeyInfo] The recovery - * KeyVault reference for key. + * The replica disk type. Its an optional value and will be same as source disk type if not user + * provided. */ - keyEncryptionKeyInfo?: KeyEncryptionKeyInfo; + recoveryReplicaDiskAccountType?: string; + /** + * The target disk type after failover. Its an optional value and will be same as source disk + * type if not user provided. + */ + recoveryTargetDiskAccountType?: string; + /** + * The recovery disk encryption set Id. + */ + recoveryDiskEncryptionSetId?: string; + /** + * The recovery disk encryption information (for one / single pass flows). + */ + diskEncryptionInfo?: DiskEncryptionInfo; } /** - * Contains the possible cases for EnableProtectionProviderSpecificInput. + * Contains the possible cases for CreateProtectionIntentProviderSpecificDetails. */ -export type EnableProtectionProviderSpecificInputUnion = EnableProtectionProviderSpecificInput | A2AEnableProtectionInput | HyperVReplicaAzureEnableProtectionInput | InMageAzureV2EnableProtectionInput | InMageEnableProtectionInput | SanEnableProtectionInput; +export type CreateProtectionIntentProviderSpecificDetailsUnion = CreateProtectionIntentProviderSpecificDetails | A2ACreateProtectionIntentInput; /** - * @interface - * An interface representing EnableProtectionProviderSpecificInput. - * Enable protection provider specific input. - * + * Create protection intent provider specific input. */ -export interface EnableProtectionProviderSpecificInput { +export interface CreateProtectionIntentProviderSpecificDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ - instanceType: "EnableProtectionProviderSpecificInput"; + instanceType: "CreateProtectionIntentProviderSpecificDetails"; } /** - * @interface - * An interface representing A2AEnableProtectionInput. - * A2A enable protection input. - * + * A2A create protection intent input. */ -export interface A2AEnableProtectionInput { +export interface A2ACreateProtectionIntentInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {string} [fabricObjectId] The fabric specific object Id of the - * virtual machine. + * The fabric specific object Id of the virtual machine. */ - fabricObjectId?: string; + fabricObjectId: string; /** - * @member {string} [recoveryContainerId] The recovery container Id. + * The primary location for the virtual machine. */ - recoveryContainerId?: string; + primaryLocation: string; /** - * @member {string} [recoveryResourceGroupId] The recovery resource group Id. - * Valid for V2 scenarios. + * The recovery location for the virtual machine. */ - recoveryResourceGroupId?: string; + recoveryLocation: string; /** - * @member {string} [recoveryCloudServiceId] The recovery cloud service Id. - * Valid for V1 scenarios. + * The recovery subscription Id of the virtual machine. */ - recoveryCloudServiceId?: string; + recoverySubscriptionId: string; /** - * @member {string} [recoveryAvailabilitySetId] The recovery availability set - * Id. + * The recovery availability type of the virtual machine. Possible values include: 'Single', + * 'AvailabilitySet', 'AvailabilityZone' */ - recoveryAvailabilitySetId?: string; + recoveryAvailabilityType: A2ARecoveryAvailabilityType; /** - * @member {A2AVmDiskInputDetails[]} [vmDisks] The list of vm disk details. + * The protection profile custom inputs. */ - vmDisks?: A2AVmDiskInputDetails[]; + protectionProfileCustomInput?: ProtectionProfileCustomDetailsUnion; /** - * @member {A2AVmManagedDiskInputDetails[]} [vmManagedDisks] The list of vm - * managed disk details. + * The recovery resource group Id. Valid for V2 scenarios. */ - vmManagedDisks?: A2AVmManagedDiskInputDetails[]; + recoveryResourceGroupId: string; /** - * @member {string} [multiVmGroupName] The multi vm group name. + * The primary staging storage account input. */ - multiVmGroupName?: string; + primaryStagingStorageAccountCustomInput?: StorageAccountCustomDetailsUnion; /** - * @member {string} [recoveryBootDiagStorageAccountId] The boot diagnostic - * storage account. + * The recovery availability set input. */ - recoveryBootDiagStorageAccountId?: string; + recoveryAvailabilitySetCustomInput?: RecoveryAvailabilitySetCustomDetailsUnion; /** - * @member {DiskEncryptionInfo} [diskEncryptionInfo] The recovery disk - * encryption information. + * The recovery virtual network input. */ - diskEncryptionInfo?: DiskEncryptionInfo; -} - -/** - * Contains the possible cases for EventProviderSpecificDetails. - */ -export type EventProviderSpecificDetailsUnion = EventProviderSpecificDetails | A2AEventDetails | HyperVReplica2012EventDetails | HyperVReplica2012R2EventDetails | HyperVReplicaAzureEventDetails | HyperVReplicaBaseEventDetails | InMageAzureV2EventDetails; - -/** - * @interface - * An interface representing EventProviderSpecificDetails. - * Model class for provider specific details for an event. - * - */ -export interface EventProviderSpecificDetails { + recoveryVirtualNetworkCustomInput?: RecoveryVirtualNetworkCustomDetailsUnion; /** - * @member {string} instanceType Polymorphic Discriminator + * The recovery proximity placement group custom input. */ - instanceType: "EventProviderSpecificDetails"; -} - -/** - * @interface - * An interface representing A2AEventDetails. - * Model class for event details of a A2A event. - * - */ -export interface A2AEventDetails { + recoveryProximityPlacementGroupCustomInput?: RecoveryProximityPlacementGroupCustomDetailsUnion; /** - * @member {string} instanceType Polymorphic Discriminator + * A value indicating whether the auto protection is enabled. Possible values include: + * 'Disabled', 'Enabled' */ - instanceType: "A2A"; + autoProtectionOfDataDisk?: AutoProtectionOfDataDisk; /** - * @member {string} [protectedItemName] The protected item arm name. + * The list of vm disk inputs. */ - protectedItemName?: string; + vmDisks?: A2AProtectionIntentDiskInputDetails[]; /** - * @member {string} [fabricObjectId] The azure vm arm id. + * The list of vm managed disk inputs. */ - fabricObjectId?: string; + vmManagedDisks?: A2AProtectionIntentManagedDiskInputDetails[]; /** - * @member {string} [fabricName] Fabric arm name. + * The multi vm group name. */ - fabricName?: string; + multiVmGroupName?: string; /** - * @member {string} [fabricLocation] The fabric location. + * The multi vm group id. */ - fabricLocation?: string; + multiVmGroupId?: string; /** - * @member {string} [remoteFabricName] Remote fabric arm name. + * The boot diagnostic storage account. */ - remoteFabricName?: string; + recoveryBootDiagStorageAccount?: StorageAccountCustomDetailsUnion; /** - * @member {string} [remoteFabricLocation] Remote fabric location. + * The recovery disk encryption information (for two pass flows). */ - remoteFabricLocation?: string; + diskEncryptionInfo?: DiskEncryptionInfo; + /** + * The recovery availability zone. + */ + recoveryAvailabilityZone?: string; } /** - * Contains the possible cases for ProviderSpecificFailoverInput. - */ -export type ProviderSpecificFailoverInputUnion = ProviderSpecificFailoverInput | A2AFailoverProviderInput | HyperVReplicaAzureFailbackProviderInput | HyperVReplicaAzureFailoverProviderInput | InMageAzureV2FailoverProviderInput | InMageFailoverProviderInput; - -/** - * @interface - * An interface representing ProviderSpecificFailoverInput. - * Provider specific failover input. - * + * ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider. */ -export interface ProviderSpecificFailoverInput { +export interface A2ACrossClusterMigrationApplyRecoveryPointInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ - instanceType: "ProviderSpecificFailoverInput"; + instanceType: "A2ACrossClusterMigration"; } /** - * @interface - * An interface representing A2AFailoverProviderInput. - * A2A provider specific input for failover. - * + * A2ACrossClusterMigration cloud creation input. */ -export interface A2AFailoverProviderInput { - /** - * @member {string} instanceType Polymorphic Discriminator - */ - instanceType: "A2A"; +export interface A2ACrossClusterMigrationContainerCreationInput { /** - * @member {string} [recoveryPointId] The recovery point id to be passed to - * failover to a particular recovery point. In case of latest recovery point, - * null should be passed. + * Polymorphic Discriminator */ - recoveryPointId?: string; - /** - * @member {string} [cloudServiceCreationOption] A value indicating whether - * to use recovery cloud service for TFO or not. - */ - cloudServiceCreationOption?: string; + instanceType: "A2ACrossClusterMigration"; +} + +/** + * Contains the possible cases for EnableProtectionProviderSpecificInput. + */ +export type EnableProtectionProviderSpecificInputUnion = EnableProtectionProviderSpecificInput | A2ACrossClusterMigrationEnableProtectionInput | A2AEnableProtectionInput | HyperVReplicaAzureEnableProtectionInput | InMageAzureV2EnableProtectionInput | InMageEnableProtectionInput | InMageRcmEnableProtectionInput; + +/** + * Enable protection provider specific input. + */ +export interface EnableProtectionProviderSpecificInput { + /** + * Polymorphic Discriminator + */ + instanceType: "EnableProtectionProviderSpecificInput"; +} + +/** + * A2A Cross-Cluster Migration enable protection input. + */ +export interface A2ACrossClusterMigrationEnableProtectionInput { + /** + * Polymorphic Discriminator + */ + instanceType: "A2ACrossClusterMigration"; + /** + * The fabric specific object Id of the virtual machine. + */ + fabricObjectId?: string; + /** + * The recovery container Id. + */ + recoveryContainerId?: string; } /** * Contains the possible cases for PolicyProviderSpecificInput. */ -export type PolicyProviderSpecificInputUnion = PolicyProviderSpecificInput | A2APolicyCreationInput | HyperVReplicaAzurePolicyInput | HyperVReplicaBluePolicyInput | HyperVReplicaPolicyInput | InMageAzureV2PolicyInput | InMagePolicyInput | VMwareCbtPolicyCreationInput; +export type PolicyProviderSpecificInputUnion = PolicyProviderSpecificInput | A2ACrossClusterMigrationPolicyCreationInput | A2APolicyCreationInput | HyperVReplicaAzurePolicyInput | HyperVReplicaPolicyInputUnion | InMageAzureV2PolicyInput | InMagePolicyInput | InMageRcmFailbackPolicyCreationInput | InMageRcmPolicyCreationInput | VMwareCbtPolicyCreationInput; /** - * @interface - * An interface representing PolicyProviderSpecificInput. - * Base class for provider specific input - * + * Base class for provider specific input. */ export interface PolicyProviderSpecificInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "PolicyProviderSpecificInput"; } /** - * @interface - * An interface representing A2APolicyCreationInput. + * A2A Cross-Cluster Migration Policy creation input. + */ +export interface A2ACrossClusterMigrationPolicyCreationInput { + /** + * Polymorphic Discriminator + */ + instanceType: "A2ACrossClusterMigration"; +} + +/** + * Contains the possible cases for ReplicationProviderSpecificSettings. + */ +export type ReplicationProviderSpecificSettingsUnion = ReplicationProviderSpecificSettings | A2ACrossClusterMigrationReplicationDetails | A2AReplicationDetails | HyperVReplicaAzureReplicationDetails | HyperVReplicaBaseReplicationDetails | HyperVReplicaBlueReplicationDetails | HyperVReplicaReplicationDetails | InMageAzureV2ReplicationDetails | InMageRcmFailbackReplicationDetails | InMageRcmReplicationDetails | InMageReplicationDetails; + +/** + * Replication provider specific settings. + */ +export interface ReplicationProviderSpecificSettings { + /** + * Polymorphic Discriminator + */ + instanceType: "ReplicationProviderSpecificSettings"; +} + +/** + * A2A provider specific settings. + */ +export interface A2ACrossClusterMigrationReplicationDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "A2ACrossClusterMigration"; + /** + * The fabric specific object Id of the virtual machine. + */ + fabricObjectId?: string; + /** + * Primary fabric location. + */ + primaryFabricLocation?: string; + /** + * The type of operating system. + */ + osType?: string; + /** + * The protection state for the vm. + */ + vmProtectionState?: string; + /** + * The protection state description for the vm. + */ + vmProtectionStateDescription?: string; + /** + * An id associated with the PE that survives actions like switch protection which change the + * backing PE/CPE objects internally.The lifecycle id gets carried forward to have a + * link/continuity in being able to have an Id that denotes the "same" protected item even though + * other internal Ids/ARM Id might be changing. + */ + lifecycleId?: string; +} + +/** + * A2A enable protection input. + */ +export interface A2AEnableProtectionInput { + /** + * Polymorphic Discriminator + */ + instanceType: "A2A"; + /** + * The fabric specific object Id of the virtual machine. + */ + fabricObjectId: string; + /** + * The recovery container Id. + */ + recoveryContainerId?: string; + /** + * The recovery resource group Id. Valid for V2 scenarios. + */ + recoveryResourceGroupId?: string; + /** + * The recovery cloud service Id. Valid for V1 scenarios. + */ + recoveryCloudServiceId?: string; + /** + * The recovery availability set Id. + */ + recoveryAvailabilitySetId?: string; + /** + * The recovery proximity placement group Id. + */ + recoveryProximityPlacementGroupId?: string; + /** + * The list of vm disk details. + */ + vmDisks?: A2AVmDiskInputDetails[]; + /** + * The list of vm managed disk details. + */ + vmManagedDisks?: A2AVmManagedDiskInputDetails[]; + /** + * The multi vm group name. + */ + multiVmGroupName?: string; + /** + * The multi vm group id. + */ + multiVmGroupId?: string; + /** + * The boot diagnostic storage account. + */ + recoveryBootDiagStorageAccountId?: string; + /** + * The recovery disk encryption information (for two pass flows). + */ + diskEncryptionInfo?: DiskEncryptionInfo; + /** + * The recovery availability zone. + */ + recoveryAvailabilityZone?: string; + /** + * The recovery Azure virtual network ARM id. + */ + recoveryAzureNetworkId?: string; + /** + * The recovery subnet name. + */ + recoverySubnetName?: string; + /** + * The virtual machine scale set Id. + */ + recoveryVirtualMachineScaleSetId?: string; +} + +/** + * Contains the possible cases for EventProviderSpecificDetails. + */ +export type EventProviderSpecificDetailsUnion = EventProviderSpecificDetails | A2AEventDetails | HyperVReplica2012EventDetails | HyperVReplica2012R2EventDetails | HyperVReplicaAzureEventDetails | HyperVReplicaBaseEventDetails | InMageAzureV2EventDetails | InMageRcmEventDetails | InMageRcmFailbackEventDetails | VMwareCbtEventDetails; + +/** + * Model class for provider specific details for an event. + */ +export interface EventProviderSpecificDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "EventProviderSpecificDetails"; +} + +/** + * Model class for event details of a A2A event. + */ +export interface A2AEventDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "A2A"; + /** + * The protected item arm name. + */ + protectedItemName?: string; + /** + * The azure vm arm id. + */ + fabricObjectId?: string; + /** + * Fabric arm name. + */ + fabricName?: string; + /** + * The fabric location. + */ + fabricLocation?: string; + /** + * Remote fabric arm name. + */ + remoteFabricName?: string; + /** + * Remote fabric location. + */ + remoteFabricLocation?: string; +} + +/** * A2A Policy creation input. - * */ export interface A2APolicyCreationInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {number} [recoveryPointHistory] The duration in minutes until - * which the recovery points need to be stored. + * The duration in minutes until which the recovery points need to be stored. */ recoveryPointHistory?: number; /** - * @member {number} [crashConsistentFrequencyInMinutes] The crash consistent - * snapshot frequency (in minutes). + * The crash consistent snapshot frequency (in minutes). */ crashConsistentFrequencyInMinutes?: number; /** - * @member {number} [appConsistentFrequencyInMinutes] The app consistent - * snapshot frequency (in minutes). + * The app consistent snapshot frequency (in minutes). */ appConsistentFrequencyInMinutes?: number; /** - * @member {SetMultiVmSyncStatus} multiVmSyncStatus A value indicating - * whether multi-VM sync has to be enabled. Value should be 'Enabled' or + * A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or * 'Disabled'. Possible values include: 'Enable', 'Disable' */ multiVmSyncStatus: SetMultiVmSyncStatus; @@ -460,311 +754,308 @@ export interface A2APolicyCreationInput { /** * Contains the possible cases for PolicyProviderSpecificDetails. */ -export type PolicyProviderSpecificDetailsUnion = PolicyProviderSpecificDetails | A2APolicyDetails | HyperVReplicaAzurePolicyDetails | HyperVReplicaBasePolicyDetails | HyperVReplicaBluePolicyDetails | HyperVReplicaPolicyDetails | InMageAzureV2PolicyDetails | InMageBasePolicyDetails | InMagePolicyDetails | RcmAzureMigrationPolicyDetails | VmwareCbtPolicyDetails; +export type PolicyProviderSpecificDetailsUnion = PolicyProviderSpecificDetails | A2APolicyDetails | HyperVReplicaAzurePolicyDetails | HyperVReplicaBasePolicyDetails | HyperVReplicaBluePolicyDetails | HyperVReplicaPolicyDetails | InMageAzureV2PolicyDetails | InMageBasePolicyDetails | InMagePolicyDetails | InMageRcmFailbackPolicyDetails | InMageRcmPolicyDetails | VmwareCbtPolicyDetails; /** - * @interface - * An interface representing PolicyProviderSpecificDetails. * Base class for Provider specific details for policies. - * */ export interface PolicyProviderSpecificDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "PolicyProviderSpecificDetails"; } /** - * @interface - * An interface representing A2APolicyDetails. * A2A specific policy details. - * */ export interface A2APolicyDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {number} [recoveryPointThresholdInMinutes] The recovery point - * threshold in minutes. + * The recovery point threshold in minutes. */ recoveryPointThresholdInMinutes?: number; /** - * @member {number} [recoveryPointHistory] The duration in minutes until - * which the recovery points need to be stored. + * The duration in minutes until which the recovery points need to be stored. */ recoveryPointHistory?: number; /** - * @member {number} [appConsistentFrequencyInMinutes] The app consistent - * snapshot frequency in minutes. + * The app consistent snapshot frequency in minutes. */ appConsistentFrequencyInMinutes?: number; /** - * @member {string} [multiVmSyncStatus] A value indicating whether multi-VM - * sync has to be enabled. + * A value indicating whether multi-VM sync has to be enabled. */ multiVmSyncStatus?: string; /** - * @member {number} [crashConsistentFrequencyInMinutes] The crash consistent - * snapshot frequency in minutes. + * The crash consistent snapshot frequency in minutes. */ crashConsistentFrequencyInMinutes?: number; } /** - * @interface - * An interface representing A2AProtectedDiskDetails. * A2A protected disk details. - * */ export interface A2AProtectedDiskDetails { /** - * @member {string} [diskUri] The disk uri. + * The disk uri. */ diskUri?: string; /** - * @member {string} [recoveryAzureStorageAccountId] The recovery disk storage - * account. + * The recovery disk storage account. */ recoveryAzureStorageAccountId?: string; /** - * @member {string} [primaryDiskAzureStorageAccountId] The primary disk - * storage account. + * The primary disk storage account. */ primaryDiskAzureStorageAccountId?: string; /** - * @member {string} [recoveryDiskUri] Recovery disk uri. + * Recovery disk uri. */ recoveryDiskUri?: string; /** - * @member {string} [diskName] The disk name. + * The disk name. */ diskName?: string; /** - * @member {number} [diskCapacityInBytes] The disk capacity in bytes. + * The disk capacity in bytes. */ diskCapacityInBytes?: number; /** - * @member {string} [primaryStagingAzureStorageAccountId] The primary staging - * storage account. + * The primary staging storage account. */ primaryStagingAzureStorageAccountId?: string; /** - * @member {string} [diskType] The type of disk. + * The type of disk. */ diskType?: string; /** - * @member {boolean} [resyncRequired] A value indicating whether resync is - * required for this disk. + * A value indicating whether resync is required for this disk. */ resyncRequired?: boolean; /** - * @member {number} [monitoringPercentageCompletion] The percentage of the - * monitoring job. The type of the monitoring job is defined by + * The percentage of the monitoring job. The type of the monitoring job is defined by * MonitoringJobType property. */ monitoringPercentageCompletion?: number; /** - * @member {string} [monitoringJobType] The type of the monitoring job. The - * progress is contained in MonitoringPercentageCompletion property. + * The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion + * property. */ monitoringJobType?: string; /** - * @member {number} [dataPendingInStagingStorageAccountInMB] The data pending - * for replication in MB at staging account. + * The data pending for replication in MB at staging account. */ dataPendingInStagingStorageAccountInMB?: number; /** - * @member {number} [dataPendingAtSourceAgentInMB] The data pending at source - * virtual machine in MB. + * The data pending at source virtual machine in MB. */ dataPendingAtSourceAgentInMB?: number; /** - * @member {boolean} [isDiskEncrypted] A value indicating whether vm has - * encrypted os disk or not. + * The disk state. + */ + diskState?: string; + /** + * The disk level operations list. + */ + allowedDiskLevelOperation?: string[]; + /** + * A value indicating whether vm has encrypted os disk or not. */ isDiskEncrypted?: boolean; /** - * @member {string} [secretIdentifier] The secret URL / identifier (BEK). + * The secret URL / identifier (BEK). */ secretIdentifier?: string; /** - * @member {string} [dekKeyVaultArmId] The KeyVault resource id for secret - * (BEK). + * The KeyVault resource id for secret (BEK). */ dekKeyVaultArmId?: string; /** - * @member {boolean} [isDiskKeyEncrypted] A value indicating whether disk key - * got encrypted or not. + * A value indicating whether disk key got encrypted or not. */ isDiskKeyEncrypted?: boolean; /** - * @member {string} [keyIdentifier] The key URL / identifier (KEK). + * The key URL / identifier (KEK). */ keyIdentifier?: string; /** - * @member {string} [kekKeyVaultArmId] The KeyVault resource id for key - * (KEK). + * The KeyVault resource id for key (KEK). */ kekKeyVaultArmId?: string; + /** + * The failover name for the managed disk. + */ + failoverDiskName?: string; + /** + * The test failover name for the managed disk. + */ + tfoDiskName?: string; } /** - * @interface - * An interface representing A2AProtectedManagedDiskDetails. * A2A protected managed disk details. - * */ export interface A2AProtectedManagedDiskDetails { /** - * @member {string} [diskId] The managed disk Arm id. + * The managed disk Arm id. */ diskId?: string; /** - * @member {string} [recoveryResourceGroupId] The recovery disk resource - * group Arm Id. + * The recovery disk resource group Arm Id. */ recoveryResourceGroupId?: string; /** - * @member {string} [recoveryTargetDiskId] Recovery target disk Arm Id. + * Recovery target disk Arm Id. */ recoveryTargetDiskId?: string; /** - * @member {string} [recoveryReplicaDiskId] Recovery replica disk Arm Id. + * Recovery replica disk Arm Id. */ recoveryReplicaDiskId?: string; /** - * @member {string} [recoveryReplicaDiskAccountType] The replica disk type. - * Its an optional value and will be same as source disk type if not user + * Recovery original target disk Arm Id. + */ + recoveryOrignalTargetDiskId?: string; + /** + * The replica disk type. Its an optional value and will be same as source disk type if not user * provided. */ recoveryReplicaDiskAccountType?: string; /** - * @member {string} [recoveryTargetDiskAccountType] The target disk type - * after failover. Its an optional value and will be same as source disk type - * if not user provided. + * The target disk type after failover. Its an optional value and will be same as source disk + * type if not user provided. */ recoveryTargetDiskAccountType?: string; /** - * @member {string} [diskName] The disk name. + * The recovery disk encryption set Id. + */ + recoveryDiskEncryptionSetId?: string; + /** + * The primary disk encryption set Id. + */ + primaryDiskEncryptionSetId?: string; + /** + * The disk name. */ diskName?: string; /** - * @member {number} [diskCapacityInBytes] The disk capacity in bytes. + * The disk capacity in bytes. */ diskCapacityInBytes?: number; /** - * @member {string} [primaryStagingAzureStorageAccountId] The primary staging - * storage account. + * The primary staging storage account. */ primaryStagingAzureStorageAccountId?: string; /** - * @member {string} [diskType] The type of disk. + * The type of disk. */ diskType?: string; /** - * @member {boolean} [resyncRequired] A value indicating whether resync is - * required for this disk. + * A value indicating whether resync is required for this disk. */ resyncRequired?: boolean; /** - * @member {number} [monitoringPercentageCompletion] The percentage of the - * monitoring job. The type of the monitoring job is defined by + * The percentage of the monitoring job. The type of the monitoring job is defined by * MonitoringJobType property. */ monitoringPercentageCompletion?: number; /** - * @member {string} [monitoringJobType] The type of the monitoring job. The - * progress is contained in MonitoringPercentageCompletion property. + * The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion + * property. */ monitoringJobType?: string; /** - * @member {number} [dataPendingInStagingStorageAccountInMB] The data pending - * for replication in MB at staging account. + * The data pending for replication in MB at staging account. */ dataPendingInStagingStorageAccountInMB?: number; /** - * @member {number} [dataPendingAtSourceAgentInMB] The data pending at source - * virtual machine in MB. + * The data pending at source virtual machine in MB. */ dataPendingAtSourceAgentInMB?: number; /** - * @member {boolean} [isDiskEncrypted] A value indicating whether vm has - * encrypted os disk or not. + * The disk state. + */ + diskState?: string; + /** + * The disk level operations list. + */ + allowedDiskLevelOperation?: string[]; + /** + * A value indicating whether vm has encrypted os disk or not. */ isDiskEncrypted?: boolean; /** - * @member {string} [secretIdentifier] The secret URL / identifier (BEK). + * The secret URL / identifier (BEK). */ secretIdentifier?: string; /** - * @member {string} [dekKeyVaultArmId] The KeyVault resource id for secret - * (BEK). + * The KeyVault resource id for secret (BEK). */ dekKeyVaultArmId?: string; /** - * @member {boolean} [isDiskKeyEncrypted] A value indicating whether disk key - * got encrypted or not. + * A value indicating whether disk key got encrypted or not. */ isDiskKeyEncrypted?: boolean; /** - * @member {string} [keyIdentifier] The key URL / identifier (KEK). + * The key URL / identifier (KEK). */ keyIdentifier?: string; /** - * @member {string} [kekKeyVaultArmId] The KeyVault resource id for key - * (KEK). + * The KeyVault resource id for key (KEK). */ kekKeyVaultArmId?: string; + /** + * The failover name for the managed disk. + */ + failoverDiskName?: string; + /** + * The test failover name for the managed disk. + */ + tfoDiskName?: string; } /** * Contains the possible cases for ProtectionContainerMappingProviderSpecificDetails. */ -export type ProtectionContainerMappingProviderSpecificDetailsUnion = ProtectionContainerMappingProviderSpecificDetails | A2AProtectionContainerMappingDetails; +export type ProtectionContainerMappingProviderSpecificDetailsUnion = ProtectionContainerMappingProviderSpecificDetails | A2AProtectionContainerMappingDetails | InMageRcmProtectionContainerMappingDetails | VMwareCbtProtectionContainerMappingDetails; /** - * @interface - * An interface representing ProtectionContainerMappingProviderSpecificDetails. * Container mapping provider specific details. - * */ export interface ProtectionContainerMappingProviderSpecificDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "ProtectionContainerMappingProviderSpecificDetails"; } /** - * @interface - * An interface representing A2AProtectionContainerMappingDetails. * A2A provider specific settings. - * */ export interface A2AProtectionContainerMappingDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {AgentAutoUpdateStatus} [agentAutoUpdateStatus] A value indicating - * whether the auto update is enabled. Possible values include: 'Disabled', + * A value indicating whether the auto update is enabled. Possible values include: 'Disabled', * 'Enabled' */ agentAutoUpdateStatus?: AgentAutoUpdateStatus; /** - * @member {string} [automationAccountArmId] The automation account arm id. + * The automation account arm id. */ automationAccountArmId?: string; /** - * @member {string} [scheduleName] The schedule arm name. + * The schedule arm name. */ scheduleName?: string; /** - * @member {string} [jobScheduleName] The job schedule arm name. + * The job schedule arm name. */ jobScheduleName?: string; } @@ -772,412 +1063,574 @@ export interface A2AProtectionContainerMappingDetails { /** * Contains the possible cases for ProviderSpecificRecoveryPointDetails. */ -export type ProviderSpecificRecoveryPointDetailsUnion = ProviderSpecificRecoveryPointDetails | A2ARecoveryPointDetails | InMageAzureV2RecoveryPointDetails; +export type ProviderSpecificRecoveryPointDetailsUnion = ProviderSpecificRecoveryPointDetails | A2ARecoveryPointDetails | InMageAzureV2RecoveryPointDetails | InMageRcmRecoveryPointDetails; /** - * @interface - * An interface representing ProviderSpecificRecoveryPointDetails. * Replication provider specific recovery point details. - * */ export interface ProviderSpecificRecoveryPointDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "ProviderSpecificRecoveryPointDetails"; } /** - * @interface - * An interface representing A2ARecoveryPointDetails. * A2A provider specific recovery point details. - * */ export interface A2ARecoveryPointDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {RecoveryPointSyncType} [recoveryPointSyncType] A value indicating - * whether the recovery point is multi VM consistent. Possible values - * include: 'MultiVmSyncRecoveryPoint', 'PerVmRecoveryPoint' + * A value indicating whether the recovery point is multi VM consistent. Possible values include: + * 'MultiVmSyncRecoveryPoint', 'PerVmRecoveryPoint' */ recoveryPointSyncType?: RecoveryPointSyncType; + /** + * List of disk ids representing a recovery point. + */ + disks?: string[]; +} + +/** + * Contains the possible cases for RemoveDisksProviderSpecificInput. + */ +export type RemoveDisksProviderSpecificInputUnion = RemoveDisksProviderSpecificInput | A2ARemoveDisksInput; + +/** + * Remove Disk provider specific input. + */ +export interface RemoveDisksProviderSpecificInput { + /** + * Polymorphic Discriminator + */ + instanceType: "RemoveDisksProviderSpecificInput"; +} + +/** + * A2A remove disk(s) input. + */ +export interface A2ARemoveDisksInput { + /** + * Polymorphic Discriminator + */ + instanceType: "A2A"; + /** + * The list of vm disk vhd URIs. + */ + vmDisksUris?: string[]; + /** + * The list of vm managed disk Ids. + */ + vmManagedDisksIds?: string[]; +} + +/** + * A2A unprotected disk details. + */ +export interface A2AUnprotectedDiskDetails { + /** + * The source lun Id for the data disk. + */ + diskLunId?: number; + /** + * A value indicating whether the disk auto protection is enabled. Possible values include: + * 'Disabled', 'Enabled' + */ + diskAutoProtectionStatus?: AutoProtectionOfDataDisk; +} + +/** + * An interface representing IPConfigDetails. + */ +export interface IPConfigDetails { + name?: string; + isPrimary?: boolean; + subnetName?: string; + staticIPAddress?: string; + ipAddressType?: string; + isSeletedForFailover?: boolean; + recoverySubnetName?: string; + recoveryStaticIPAddress?: string; + recoveryIPAddressType?: string; + recoveryPublicIPAddressId?: string; + recoveryLBBackendAddressPoolIds?: string[]; + tfoSubnetName?: string; + tfoStaticIPAddress?: string; + tfoPublicIPAddressId?: string; + tfoLBBackendAddressPoolIds?: string[]; } /** - * @interface - * An interface representing VMNicDetails. * Hyper V VM network details. - * */ export interface VMNicDetails { /** - * @member {string} [nicId] The nic Id. + * The nic Id. */ nicId?: string; /** - * @member {string} [replicaNicId] The replica nic Id. + * The replica nic Id. */ replicaNicId?: string; /** - * @member {string} [sourceNicArmId] The source nic ARM Id. + * The source nic ARM Id. */ sourceNicArmId?: string; /** - * @member {string} [vMSubnetName] VM subnet name. - */ - vMSubnetName?: string; - /** - * @member {string} [vMNetworkName] VM network name. + * VM network name. */ vMNetworkName?: string; /** - * @member {string} [recoveryVMNetworkId] Recovery VM network Id. + * Recovery VM network Id. */ recoveryVMNetworkId?: string; /** - * @member {string} [recoveryVMSubnetName] Recovery VM subnet name. + * The IP configurations of the NIC. */ - recoveryVMSubnetName?: string; + ipConfigs?: IPConfigDetails[]; /** - * @member {string} [ipAddressType] Ip address type. + * Selection type for failover. */ - ipAddressType?: string; + selectionType?: string; /** - * @member {string} [primaryNicStaticIPAddress] Primary nic static IP - * address. + * The id of the NSG associated with the NIC. */ - primaryNicStaticIPAddress?: string; + recoveryNetworkSecurityGroupId?: string; /** - * @member {string} [replicaNicStaticIPAddress] Replica nic static IP - * address. + * A value indicating whether the NIC has accelerated networking enabled. */ - replicaNicStaticIPAddress?: string; + enableAcceleratedNetworkingOnRecovery?: boolean; /** - * @member {string} [selectionType] Selection type for failover. + * The network to be used by NIC during test failover. */ - selectionType?: string; + tfoVMNetworkId?: string; /** - * @member {string} [recoveryNicIpAddressType] IP allocation type for - * recovery VM. + * The NSG to be used by NIC during test failover. */ - recoveryNicIpAddressType?: string; + tfoNetworkSecurityGroupId?: string; /** - * @member {boolean} [enableAcceleratedNetworkingOnRecovery] A value - * indicating whether the NIC has accerated networking enabled. + * Whether the TFO NIC has accelerated networking enabled. */ - enableAcceleratedNetworkingOnRecovery?: boolean; -} - -/** - * @interface - * An interface representing RoleAssignment. - * Azure role assignment details. - * - */ -export interface RoleAssignment { + enableAcceleratedNetworkingOnTfo?: boolean; /** - * @member {string} [id] The ARM Id of the role assignment. + * The name of the NIC to be used when creating target NICs. */ - id?: string; + recoveryNicName?: string; /** - * @member {string} [name] The name of the role assignment. + * The resource group of the NIC to be used when creating target NICs. */ - name?: string; + recoveryNicResourceGroupName?: string; /** - * @member {string} [scope] Role assignment scope. + * A value indicating whether an existing NIC is allowed to be reused during failover subject to + * availability. Default value: false. */ - scope?: string; + reuseExistingNic?: boolean; /** - * @member {string} [principalId] Principal Id. + * The name of the NIC to be used when creating target NICs in TFO. */ - principalId?: string; + tfoRecoveryNicName?: string; /** - * @member {string} [roleDefinitionId] Role definition id. + * The resource group of the NIC to be used when creating target NICs in TFO. */ - roleDefinitionId?: string; + tfoRecoveryNicResourceGroupName?: string; + /** + * A value indicating whether an existing NIC is allowed to be reused during test failover + * subject to availability. Default value: false. + */ + tfoReuseExistingNic?: boolean; } /** - * @interface * An interface representing InputEndpoint. - * Azure VM input endpoint details. - * */ export interface InputEndpoint { - /** - * @member {string} [endpointName] The input endpoint name. - */ endpointName?: string; - /** - * @member {number} [privatePort] The input endpoint private port. - */ privatePort?: number; - /** - * @member {number} [publicPort] The input endpoint public port. - */ publicPort?: number; - /** - * @member {string} [protocol] The input endpoint protocol. - */ protocol?: string; } /** - * @interface - * An interface representing AzureToAzureVmSyncedConfigDetails. * Azure to Azure VM synced configuration details. - * */ export interface AzureToAzureVmSyncedConfigDetails { /** - * @member {{ [propertyName: string]: string }} [tags] The Azure VM tags. + * The Azure VM tags. */ tags?: { [propertyName: string]: string }; /** - * @member {RoleAssignment[]} [roleAssignments] The Azure role assignments. - */ - roleAssignments?: RoleAssignment[]; - /** - * @member {InputEndpoint[]} [inputEndpoints] The Azure VM input endpoints. + * The Azure VM input endpoints. */ inputEndpoints?: InputEndpoint[]; } /** - * Contains the possible cases for ReplicationProviderSpecificSettings. - */ -export type ReplicationProviderSpecificSettingsUnion = ReplicationProviderSpecificSettings | A2AReplicationDetails | HyperVReplicaAzureReplicationDetails | HyperVReplicaBaseReplicationDetails | HyperVReplicaBlueReplicationDetails | HyperVReplicaReplicationDetails | InMageAzureV2ReplicationDetails | InMageReplicationDetails; - -/** - * @interface - * An interface representing ReplicationProviderSpecificSettings. - * Replication provider specific settings. - * - */ -export interface ReplicationProviderSpecificSettings { - /** - * @member {string} instanceType Polymorphic Discriminator - */ - instanceType: "ReplicationProviderSpecificSettings"; -} - -/** - * @interface - * An interface representing A2AReplicationDetails. * A2A provider specific settings. - * */ export interface A2AReplicationDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {string} [fabricObjectId] The fabric specific object Id of the - * virtual machine. + * The fabric specific object Id of the virtual machine. */ fabricObjectId?: string; /** - * @member {string} [multiVmGroupId] The multi vm group Id. + * The initial primary availability zone. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly initialPrimaryZone?: string; + /** + * The initial primary fabric location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly initialPrimaryFabricLocation?: string; + /** + * The initial recovery availability zone. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly initialRecoveryZone?: string; + /** + * The initial recovery fabric location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly initialRecoveryFabricLocation?: string; + /** + * The multi vm group Id. */ multiVmGroupId?: string; /** - * @member {string} [multiVmGroupName] The multi vm group name. + * The multi vm group name. */ multiVmGroupName?: string; /** - * @member {MultiVmGroupCreateOption} [multiVmGroupCreateOption] Whether - * Multi VM group is auto created or specified by user. Possible values - * include: 'AutoCreated', 'UserSpecified' + * Whether Multi VM group is auto created or specified by user. Possible values include: + * 'AutoCreated', 'UserSpecified' */ multiVmGroupCreateOption?: MultiVmGroupCreateOption; /** - * @member {string} [managementId] The management Id. + * The management Id. */ managementId?: string; /** - * @member {A2AProtectedDiskDetails[]} [protectedDisks] The list of protected - * disks. + * The list of protected disks. */ protectedDisks?: A2AProtectedDiskDetails[]; /** - * @member {A2AProtectedManagedDiskDetails[]} [protectedManagedDisks] The - * list of protected managed disks. + * The list of unprotected disks. + */ + unprotectedDisks?: A2AUnprotectedDiskDetails[]; + /** + * The list of protected managed disks. */ protectedManagedDisks?: A2AProtectedManagedDiskDetails[]; /** - * @member {string} [recoveryBootDiagStorageAccountId] The recovery boot - * diagnostic storage account Arm Id. + * The recovery boot diagnostic storage account Arm Id. */ recoveryBootDiagStorageAccountId?: string; /** - * @member {string} [primaryFabricLocation] Primary fabric location. + * Primary fabric location. */ primaryFabricLocation?: string; /** - * @member {string} [recoveryFabricLocation] The recovery fabric location. + * The recovery fabric location. */ recoveryFabricLocation?: string; /** - * @member {string} [osType] The type of operating system. + * The type of operating system. */ osType?: string; /** - * @member {string} [recoveryAzureVMSize] The size of recovery virtual - * machine. + * The size of recovery virtual machine. */ recoveryAzureVMSize?: string; /** - * @member {string} [recoveryAzureVMName] The name of recovery virtual - * machine. + * The name of recovery virtual machine. */ recoveryAzureVMName?: string; /** - * @member {string} [recoveryAzureResourceGroupId] The recovery resource - * group. + * The recovery resource group. */ recoveryAzureResourceGroupId?: string; /** - * @member {string} [recoveryCloudService] The recovery cloud service. + * The recovery cloud service. */ recoveryCloudService?: string; /** - * @member {string} [recoveryAvailabilitySet] The recovery availability set. + * The recovery availability set. */ recoveryAvailabilitySet?: string; /** - * @member {string} [selectedRecoveryAzureNetworkId] The recovery virtual - * network. + * The recovery virtual network. */ selectedRecoveryAzureNetworkId?: string; /** - * @member {VMNicDetails[]} [vmNics] The virtual machine nic details. + * The test failover virtual network. + */ + selectedTfoAzureNetworkId?: string; + /** + * The virtual machine nic details. */ vmNics?: VMNicDetails[]; /** - * @member {AzureToAzureVmSyncedConfigDetails} [vmSyncedConfigDetails] The - * synced configuration details. + * The synced configuration details. */ vmSyncedConfigDetails?: AzureToAzureVmSyncedConfigDetails; /** - * @member {number} [monitoringPercentageCompletion] The percentage of the - * monitoring job. The type of the monitoring job is defined by + * The percentage of the monitoring job. The type of the monitoring job is defined by * MonitoringJobType property. */ monitoringPercentageCompletion?: number; /** - * @member {string} [monitoringJobType] The type of the monitoring job. The - * progress is contained in MonitoringPercentageCompletion property. + * The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion + * property. */ monitoringJobType?: string; /** - * @member {Date} [lastHeartbeat] The last heartbeat received from the source - * server. + * The last heartbeat received from the source server. */ lastHeartbeat?: Date; /** - * @member {string} [agentVersion] The agent version. + * The agent version. */ agentVersion?: string; /** - * @member {boolean} [isReplicationAgentUpdateRequired] A value indicating - * whether replication agent update is required. + * Agent expiry date. + */ + agentExpiryDate?: Date; + /** + * A value indicating whether replication agent update is required. */ isReplicationAgentUpdateRequired?: boolean; /** - * @member {string} [recoveryFabricObjectId] The recovery fabric object Id. + * Agent certificate expiry date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly agentCertificateExpiryDate?: Date; + /** + * A value indicating whether agent certificate update is required. + */ + isReplicationAgentCertificateUpdateRequired?: boolean; + /** + * The recovery fabric object Id. */ recoveryFabricObjectId?: string; /** - * @member {string} [vmProtectionState] The protection state for the vm. + * The protection state for the vm. */ vmProtectionState?: string; /** - * @member {string} [vmProtectionStateDescription] The protection state - * description for the vm. + * The protection state description for the vm. */ vmProtectionStateDescription?: string; /** - * @member {string} [lifecycleId] An id associated with the PE that survives - * actions like switch protection which change the backing PE/CPE objects - * internally.The lifecycle id gets carried forward to have a link/continuity - * in being able to have an Id that denotes the "same" protected item even - * though other internal Ids/ARM Id might be changing. + * An id associated with the PE that survives actions like switch protection which change the + * backing PE/CPE objects internally.The lifecycle id gets carried forward to have a + * link/continuity in being able to have an Id that denotes the "same" protected item even though + * other internal Ids/ARM Id might be changing. */ lifecycleId?: string; /** - * @member {string} [testFailoverRecoveryFabricObjectId] The test failover - * fabric object Id. + * The test failover fabric object Id. */ testFailoverRecoveryFabricObjectId?: string; /** - * @member {number} [rpoInSeconds] The last RPO value in seconds. + * The last RPO value in seconds. */ rpoInSeconds?: number; /** - * @member {Date} [lastRpoCalculatedTime] The time (in UTC) when the last RPO - * value was calculated by Protection Service. + * The time (in UTC) when the last RPO value was calculated by Protection Service. */ lastRpoCalculatedTime?: Date; + /** + * The primary availability zone. + */ + primaryAvailabilityZone?: string; + /** + * The recovery availability zone. + */ + recoveryAvailabilityZone?: string; + /** + * The encryption type of the VM. Possible values include: 'NotEncrypted', 'OnePassEncrypted', + * 'TwoPassEncrypted' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vmEncryptionType?: VmEncryptionType; + /** + * The test failover vm name. + */ + tfoAzureVMName?: string; + /** + * The recovery azure generation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly recoveryAzureGeneration?: string; + /** + * The recovery proximity placement group Id. + */ + recoveryProximityPlacementGroupId?: string; + /** + * A value indicating whether the auto protection is enabled. Possible values include: + * 'Disabled', 'Enabled' + */ + autoProtectionOfDataDisk?: AutoProtectionOfDataDisk; + /** + * The recovery virtual machine scale set id. + */ + recoveryVirtualMachineScaleSetId?: string; +} + +/** + * Contains the possible cases for ReplicationProtectionIntentProviderSpecificSettings. + */ +export type ReplicationProtectionIntentProviderSpecificSettingsUnion = ReplicationProtectionIntentProviderSpecificSettings | A2AReplicationIntentDetails; + +/** + * Replication provider specific settings. + */ +export interface ReplicationProtectionIntentProviderSpecificSettings { + /** + * Polymorphic Discriminator + */ + instanceType: "ReplicationProtectionIntentProviderSpecificSettings"; +} + +/** + * A2A provider specific settings. + */ +export interface A2AReplicationIntentDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "A2A"; + /** + * The fabric specific object Id of the virtual machine. + */ + fabricObjectId?: string; + /** + * The primary location for the virtual machine. + */ + primaryLocation?: string; + /** + * The recovery location for the virtual machine. + */ + recoveryLocation?: string; + /** + * The recovery subscription Id of the virtual machine. + */ + recoverySubscriptionId?: string; + /** + * The list of vm disk details. + */ + vmDisks?: A2AProtectionIntentDiskInputDetails[]; + /** + * The list of vm managed disk details. + */ + vmManagedDisks?: A2AProtectionIntentManagedDiskInputDetails[]; + /** + * The recovery resource group id. + */ + recoveryResourceGroupId?: string; + /** + * The protection profile custom details. + */ + protectionProfile?: ProtectionProfileCustomDetailsUnion; + /** + * The primary staging storage account details. + */ + primaryStagingStorageAccount?: StorageAccountCustomDetailsUnion; + /** + * The recovery availability set details. + */ + recoveryAvailabilitySet?: RecoveryAvailabilitySetCustomDetailsUnion; + /** + * The recovery virtual network details. + */ + recoveryVirtualNetwork?: RecoveryVirtualNetworkCustomDetailsUnion; + /** + * The recovery proximity placement group custom details. + */ + recoveryProximityPlacementGroup?: RecoveryProximityPlacementGroupCustomDetailsUnion; + /** + * A value indicating whether the auto protection is enabled. Possible values include: + * 'Disabled', 'Enabled' + */ + autoProtectionOfDataDisk?: AutoProtectionOfDataDisk; + /** + * The multi vm group name. + */ + multiVmGroupName?: string; + /** + * The multi vm group id. + */ + multiVmGroupId?: string; + /** + * The boot diagnostic storage account. + */ + recoveryBootDiagStorageAccount?: StorageAccountCustomDetailsUnion; + /** + * The recovery disk encryption information (for two pass flows). + */ + diskEncryptionInfo?: DiskEncryptionInfo; + /** + * The recovery availability zone. + */ + recoveryAvailabilityZone?: string; + /** + * The recovery availability type of the virtual machine. + */ + recoveryAvailabilityType: string; } /** * Contains the possible cases for ReverseReplicationProviderSpecificInput. */ -export type ReverseReplicationProviderSpecificInputUnion = ReverseReplicationProviderSpecificInput | A2AReprotectInput | HyperVReplicaAzureReprotectInput | InMageAzureV2ReprotectInput | InMageReprotectInput; +export type ReverseReplicationProviderSpecificInputUnion = ReverseReplicationProviderSpecificInput | A2AReprotectInput | HyperVReplicaAzureReprotectInput | InMageAzureV2ReprotectInput | InMageRcmFailbackReprotectInput | InMageRcmReprotectInput | InMageReprotectInput; /** - * @interface - * An interface representing ReverseReplicationProviderSpecificInput. * Provider specific reverse replication input. - * */ export interface ReverseReplicationProviderSpecificInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "ReverseReplicationProviderSpecificInput"; } /** - * @interface - * An interface representing A2AReprotectInput. * Azure specific reprotect input. - * */ export interface A2AReprotectInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {string} [recoveryContainerId] The recovery container Id. + * The recovery container Id. */ recoveryContainerId?: string; /** - * @member {A2AVmDiskInputDetails[]} [vmDisks] The list of vm disk details. + * The list of vm disk details. */ vmDisks?: A2AVmDiskInputDetails[]; /** - * @member {string} [recoveryResourceGroupId] The recovery resource group Id. - * Valid for V2 scenarios. + * The recovery resource group Id. Valid for V2 scenarios. */ recoveryResourceGroupId?: string; /** - * @member {string} [recoveryCloudServiceId] The recovery cloud service Id. - * Valid for V1 scenarios. + * The recovery cloud service Id. Valid for V1 scenarios. */ recoveryCloudServiceId?: string; /** - * @member {string} [recoveryAvailabilitySetId] The recovery availability - * set. + * The recovery availability set. */ recoveryAvailabilitySetId?: string; /** - * @member {string} [policyId] The Policy Id. + * The Policy Id. */ policyId?: string; } @@ -1188,339 +1641,541 @@ export interface A2AReprotectInput { export type SwitchProtectionProviderSpecificInputUnion = SwitchProtectionProviderSpecificInput | A2ASwitchProtectionInput; /** - * @interface - * An interface representing SwitchProtectionProviderSpecificInput. * Provider specific switch protection input. - * */ export interface SwitchProtectionProviderSpecificInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "SwitchProtectionProviderSpecificInput"; } /** - * @interface - * An interface representing A2ASwitchProtectionInput. * A2A specific switch protection input. - * */ export interface A2ASwitchProtectionInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {string} [recoveryContainerId] The recovery container Id. + * The recovery container Id. */ recoveryContainerId?: string; /** - * @member {A2AVmDiskInputDetails[]} [vmDisks] The list of vm disk details. + * The list of vm disk details. */ vmDisks?: A2AVmDiskInputDetails[]; /** - * @member {A2AVmManagedDiskInputDetails[]} [vmManagedDisks] The list of vm - * managed disk details. + * The list of vm managed disk details. */ vmManagedDisks?: A2AVmManagedDiskInputDetails[]; /** - * @member {string} [recoveryResourceGroupId] The recovery resource group Id. - * Valid for V2 scenarios. + * The recovery resource group Id. Valid for V2 scenarios. */ recoveryResourceGroupId?: string; /** - * @member {string} [recoveryCloudServiceId] The recovery cloud service Id. - * Valid for V1 scenarios. + * The recovery cloud service Id. Valid for V1 scenarios. */ recoveryCloudServiceId?: string; /** - * @member {string} [recoveryAvailabilitySetId] The recovery availability - * set. + * The recovery availability set. */ recoveryAvailabilitySetId?: string; /** - * @member {string} [policyId] The Policy Id. + * The Policy Id. */ policyId?: string; /** - * @member {string} [recoveryBootDiagStorageAccountId] The boot diagnostic - * storage account. + * The boot diagnostic storage account. */ recoveryBootDiagStorageAccountId?: string; /** - * @member {DiskEncryptionInfo} [diskEncryptionInfo] The recovery disk - * encryption information. + * The recovery availability zone. + */ + recoveryAvailabilityZone?: string; + /** + * The recovery proximity placement group Id. + */ + recoveryProximityPlacementGroupId?: string; + /** + * The virtual machine scale set id. + */ + recoveryVirtualMachineScaleSetId?: string; + /** + * The recovery disk encryption information. */ diskEncryptionInfo?: DiskEncryptionInfo; } +/** + * Contains the possible cases for TestFailoverProviderSpecificInput. + */ +export type TestFailoverProviderSpecificInputUnion = TestFailoverProviderSpecificInput | A2ATestFailoverInput | HyperVReplicaAzureTestFailoverInput | InMageAzureV2TestFailoverInput | InMageRcmTestFailoverInput | InMageTestFailoverInput; + +/** + * Provider specific test failover input. + */ +export interface TestFailoverProviderSpecificInput { + /** + * Polymorphic Discriminator + */ + instanceType: "TestFailoverProviderSpecificInput"; +} + +/** + * A2A provider specific input for test failover. + */ +export interface A2ATestFailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "A2A"; + /** + * The recovery point id to be passed to test failover to a particular recovery point. In case of + * latest recovery point, null should be passed. + */ + recoveryPointId?: string; + /** + * A value indicating whether to use recovery cloud service for TFO or not. + */ + cloudServiceCreationOption?: string; +} + +/** + * Contains the possible cases for UnplannedFailoverProviderSpecificInput. + */ +export type UnplannedFailoverProviderSpecificInputUnion = UnplannedFailoverProviderSpecificInput | A2AUnplannedFailoverInput | HyperVReplicaAzureUnplannedFailoverInput | InMageAzureV2UnplannedFailoverInput | InMageRcmUnplannedFailoverInput | InMageUnplannedFailoverInput; + +/** + * Provider specific unplanned failover input. + */ +export interface UnplannedFailoverProviderSpecificInput { + /** + * Polymorphic Discriminator + */ + instanceType: "UnplannedFailoverProviderSpecificInput"; +} + +/** + * A2A provider specific input for unplanned failover. + */ +export interface A2AUnplannedFailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "A2A"; + /** + * The recovery point id to be passed to failover to a particular recovery point. In case of + * latest recovery point, null should be passed. + */ + recoveryPointId?: string; + /** + * A value indicating whether to use recovery cloud service for failover or not. + */ + cloudServiceCreationOption?: string; +} + /** * Contains the possible cases for ReplicationProviderSpecificUpdateContainerMappingInput. */ -export type ReplicationProviderSpecificUpdateContainerMappingInputUnion = ReplicationProviderSpecificUpdateContainerMappingInput | A2AUpdateContainerMappingInput; +export type ReplicationProviderSpecificUpdateContainerMappingInputUnion = ReplicationProviderSpecificUpdateContainerMappingInput | A2AUpdateContainerMappingInput | InMageRcmUpdateContainerMappingInput; /** - * @interface - * An interface representing ReplicationProviderSpecificUpdateContainerMappingInput. * Provider specific input for update pairing operations. - * */ export interface ReplicationProviderSpecificUpdateContainerMappingInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "ReplicationProviderSpecificUpdateContainerMappingInput"; } /** - * @interface - * An interface representing A2AUpdateContainerMappingInput. * A2A update protection container mapping. - * */ export interface A2AUpdateContainerMappingInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {AgentAutoUpdateStatus} [agentAutoUpdateStatus] A value indicating - * whether the auto update is enabled. Possible values include: 'Disabled', + * A value indicating whether the auto update is enabled. Possible values include: 'Disabled', * 'Enabled' */ agentAutoUpdateStatus?: AgentAutoUpdateStatus; /** - * @member {string} [automationAccountArmId] The automation account arm id. + * The automation account arm id. */ automationAccountArmId?: string; } /** - * @interface - * An interface representing A2AVmManagedDiskUpdateDetails. - * Azure VM managed disk update input details. - * + * A2A Vm managed disk update details. */ export interface A2AVmManagedDiskUpdateDetails { /** - * @member {string} [diskId] The disk Id. + * The disk Id. */ diskId?: string; /** - * @member {string} [recoveryTargetDiskAccountType] The target disk type - * before failover. + * The target disk type before failover. */ recoveryTargetDiskAccountType?: string; /** - * @member {string} [recoveryReplicaDiskAccountType] The replica disk type - * before failover. + * The replica disk type before failover. */ recoveryReplicaDiskAccountType?: string; + /** + * The recovery os disk encryption information. + */ + diskEncryptionInfo?: DiskEncryptionInfo; + /** + * The target disk name for unplanned failover operation. + */ + failoverDiskName?: string; + /** + * The target disk name for test failover operation. + */ + tfoDiskName?: string; } /** * Contains the possible cases for UpdateReplicationProtectedItemProviderInput. */ -export type UpdateReplicationProtectedItemProviderInputUnion = UpdateReplicationProtectedItemProviderInput | A2AUpdateReplicationProtectedItemInput | HyperVReplicaAzureUpdateReplicationProtectedItemInput | InMageAzureV2UpdateReplicationProtectedItemInput; +export type UpdateReplicationProtectedItemProviderInputUnion = UpdateReplicationProtectedItemProviderInput | A2AUpdateReplicationProtectedItemInput | HyperVReplicaAzureUpdateReplicationProtectedItemInput | InMageAzureV2UpdateReplicationProtectedItemInput | InMageRcmUpdateReplicationProtectedItemInput; /** - * @interface - * An interface representing UpdateReplicationProtectedItemProviderInput. * Update replication protected item provider specific input. - * */ export interface UpdateReplicationProtectedItemProviderInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "UpdateReplicationProtectedItemProviderInput"; } /** - * @interface - * An interface representing A2AUpdateReplicationProtectedItemInput. * InMage Azure V2 input to update replication protected item. - * */ export interface A2AUpdateReplicationProtectedItemInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "A2A"; /** - * @member {string} [recoveryCloudServiceId] The target cloud service ARM Id - * (for V1). + * The target cloud service ARM Id (for V1). */ recoveryCloudServiceId?: string; /** - * @member {string} [recoveryResourceGroupId] The target resource group ARM - * Id (for V2). + * The target resource group ARM Id (for V2). */ recoveryResourceGroupId?: string; /** - * @member {A2AVmManagedDiskUpdateDetails[]} [managedDiskUpdateDetails] * Managed disk update details. */ managedDiskUpdateDetails?: A2AVmManagedDiskUpdateDetails[]; /** - * @member {string} [recoveryBootDiagStorageAccountId] The boot diagnostic - * storage account. + * The boot diagnostic storage account. */ recoveryBootDiagStorageAccountId?: string; /** - * @member {DiskEncryptionInfo} [diskEncryptionInfo] The recovery os disk - * encryption information. + * The recovery os disk encryption information. */ diskEncryptionInfo?: DiskEncryptionInfo; -} - -/** - * @interface - * An interface representing AddVCenterRequestProperties. - * The properties of an add vCenter request. - * - */ -export interface AddVCenterRequestProperties { /** - * @member {string} [friendlyName] The friendly name of the vCenter. + * The user given name for Test Failover VM. */ - friendlyName?: string; + tfoAzureVMName?: string; /** - * @member {string} [ipAddress] The IP address of the vCenter to be - * discovered. + * The recovery proximity placement group Id. */ - ipAddress?: string; + recoveryProximityPlacementGroupId?: string; /** - * @member {string} [processServerId] The process server Id from where the - * discovery is orchestrated. + * The recovery virtual machine scale set Id. */ - processServerId?: string; + recoveryVirtualMachineScaleSetId?: string; +} + +/** + * Zone details data. + */ +export interface A2AZoneDetails { /** - * @member {string} [port] The port number for discovery. + * Source zone info. */ - port?: string; + source?: string; /** - * @member {string} [runAsAccountId] The account Id which has privileges to - * discover the vCenter. + * The target zone info. */ - runAsAccountId?: string; + target?: string; } /** - * @interface - * An interface representing AddVCenterRequest. - * Input required to add vCenter. - * + * Add Disks input properties. */ -export interface AddVCenterRequest { +export interface AddDisksInputProperties { /** - * @member {AddVCenterRequestProperties} [properties] The properties of an - * add vCenter request. + * The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be + * AzureEnableProtectionInput object. For San provider, it will be SanEnableProtectionInput + * object. For HyperVReplicaAzure provider, it can be null. */ - properties?: AddVCenterRequestProperties; + providerSpecificDetails: AddDisksProviderSpecificInputUnion; } /** - * @interface - * An interface representing AlertProperties. - * The proprties of an alert. - * + * Input for add disk(s) operation. */ -export interface AlertProperties { - /** - * @member {string} [sendToOwners] A value indicating whether to send email - * to subscription administrator. - */ - sendToOwners?: string; +export interface AddDisksInput { /** - * @member {string[]} [customEmailAddresses] The custom email address for - * sending emails. + * Add disks input properties. */ - customEmailAddresses?: string[]; - /** - * @member {string} [locale] The locale for the email notification. - */ - locale?: string; + properties?: AddDisksInputProperties; } /** - * @interface - * An interface representing Resource. - * Azure resource. - * - * @extends BaseResource + * Identity provider input. */ -export interface Resource extends BaseResource { +export interface IdentityProviderInput { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The tenant Id for the service principal with which the on-premise management/data plane + * components would communicate with our Azure services. */ - readonly id?: string; + tenantId: string; /** - * @member {string} [name] Resource Name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The application/client Id for the service principal with which the on-premise management/data + * plane components would communicate with our Azure services. */ - readonly name?: string; + applicationId: string; /** - * @member {string} [type] Resource Type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The object Id of the service principal with which the on-premise management/data plane + * components would communicate with our Azure services. */ - readonly type?: string; + objectId: string; /** - * @member {string} [location] Resource Location + * The intended Audience of the service principal with which the on-premise management/data plane + * components would communicate with our Azure services. */ - location?: string; + audience: string; + /** + * The base authority for Azure Active Directory authentication. + */ + aadAuthority: string; } /** - * @interface - * An interface representing Alert. - * Implements the Alert class. - * - * @extends Resource + * The properties of an add provider request. */ -export interface Alert extends Resource { +export interface AddRecoveryServicesProviderInputProperties { /** - * @member {AlertProperties} [properties] Alert related data. + * The name of the machine where the provider is getting added. */ - properties?: AlertProperties; -} + machineName: string; + /** + * The Id of the machine where the provider is getting added. + */ + machineId?: string; + /** + * The Bios Id of the machine. + */ + biosId?: string; + /** + * The identity provider input for DRA authentication. + */ + authenticationIdentityInput: IdentityProviderInput; + /** + * The identity provider input for resource access. + */ + resourceAccessIdentityInput: IdentityProviderInput; + /** + * The identity provider input for data plane authentication. + */ + dataPlaneAuthenticationIdentityInput?: IdentityProviderInput; +} + +/** + * Input required to add a provider. + */ +export interface AddRecoveryServicesProviderInput { + /** + * The properties of an add provider request. + */ + properties: AddRecoveryServicesProviderInputProperties; +} + +/** + * The properties of an add vCenter request. + */ +export interface AddVCenterRequestProperties { + /** + * The friendly name of the vCenter. + */ + friendlyName?: string; + /** + * The IP address of the vCenter to be discovered. + */ + ipAddress?: string; + /** + * The process server Id from where the discovery is orchestrated. + */ + processServerId?: string; + /** + * The port number for discovery. + */ + port?: string; + /** + * The account Id which has privileges to discover the vCenter. + */ + runAsAccountId?: string; +} + +/** + * Input required to add vCenter. + */ +export interface AddVCenterRequest { + /** + * The properties of an add vCenter request. + */ + properties?: AddVCenterRequestProperties; +} + +/** + * Agent disk details. + */ +export interface AgentDiskDetails { + /** + * The disk Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly diskId?: string; + /** + * The disk name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly diskName?: string; + /** + * A value indicating whether the disk is the OS disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isOSDisk?: string; + /** + * The disk capacity in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly capacityInBytes?: number; + /** + * The lun of disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lunId?: number; +} + +/** + * Agent details. + */ +export interface AgentDetails { + /** + * The Id of the agent running on the server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly agentId?: string; + /** + * The Id of the machine to which the agent is registered. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly machineId?: string; + /** + * The machine BIOS Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly biosId?: string; + /** + * The machine FQDN. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly fqdn?: string; + /** + * The disks. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly disks?: AgentDiskDetails[]; +} + +/** + * The properties of an alert. + */ +export interface AlertProperties { + /** + * A value indicating whether to send email to subscription administrator. + */ + sendToOwners?: string; + /** + * The custom email address for sending emails. + */ + customEmailAddresses?: string[]; + /** + * The locale for the email notification. + */ + locale?: string; +} + +/** + * Azure resource. + */ +export interface Resource extends BaseResource { + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource Name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource Type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource Location + */ + location?: string; +} + +/** + * Implements the Alert class. + */ +export interface Alert extends Resource { + /** + * Alert related data. + */ + properties?: AlertProperties; +} /** - * @interface - * An interface representing ApplyRecoveryPointInputProperties. * Input properties to apply recovery point. - * */ export interface ApplyRecoveryPointInputProperties { /** - * @member {string} [recoveryPointId] The recovery point Id. + * The recovery point Id. */ recoveryPointId?: string; /** - * @member {ApplyRecoveryPointProviderSpecificInputUnion} - * [providerSpecificDetails] Provider specific input for applying recovery - * point. + * Provider specific input for applying recovery point. */ - providerSpecificDetails?: ApplyRecoveryPointProviderSpecificInputUnion; + providerSpecificDetails: ApplyRecoveryPointProviderSpecificInputUnion; } /** - * @interface - * An interface representing ApplyRecoveryPointInput. * Input to apply recovery point. - * */ export interface ApplyRecoveryPointInput { /** - * @member {ApplyRecoveryPointInputProperties} [properties] The input - * properties to apply recovery point. + * The input properties to apply recovery point. */ - properties?: ApplyRecoveryPointInputProperties; + properties: ApplyRecoveryPointInputProperties; } /** @@ -1529,39 +2184,31 @@ export interface ApplyRecoveryPointInput { export type JobDetailsUnion = JobDetails | AsrJobDetails | ExportJobDetails | FailoverJobDetails | SwitchProtectionJobDetails | TestFailoverJobDetails; /** - * @interface - * An interface representing JobDetails. * Job details based on specific job type. - * */ export interface JobDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "JobDetails"; /** - * @member {{ [propertyName: string]: string }} [affectedObjectDetails] The - * affected object properties like source server, source cloud, target - * server, target cloud etc. based on the workflow object details. + * The affected object properties like source server, source cloud, target server, target cloud + * etc. based on the workflow object details. */ affectedObjectDetails?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing AsrJobDetails. * This class represents job details based on specific job type. - * */ export interface AsrJobDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "AsrJobDetails"; /** - * @member {{ [propertyName: string]: string }} [affectedObjectDetails] The - * affected object properties like source server, source cloud, target - * server, target cloud etc. based on the workflow object details. + * The affected object properties like source server, source cloud, target server, target cloud + * etc. based on the workflow object details. */ affectedObjectDetails?: { [propertyName: string]: string }; } @@ -1569,17 +2216,14 @@ export interface AsrJobDetails { /** * Contains the possible cases for TaskTypeDetails. */ -export type TaskTypeDetailsUnion = TaskTypeDetails | AutomationRunbookTaskDetails | ConsistencyCheckTaskDetails | FabricReplicationGroupTaskDetails | JobTaskDetails | ManualActionTaskDetails | ScriptActionTaskDetails | VirtualMachineTaskDetails | VmNicUpdatesTaskDetails; +export type TaskTypeDetailsUnion = TaskTypeDetails | AutomationRunbookTaskDetails | ConsistencyCheckTaskDetails | JobTaskDetailsUnion | ManualActionTaskDetails | ScriptActionTaskDetails | VmNicUpdatesTaskDetails; /** - * @interface - * An interface representing TaskTypeDetails. * Task details based on specific task type. - * */ export interface TaskTypeDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "TaskTypeDetails"; } @@ -1587,227 +2231,200 @@ export interface TaskTypeDetails { /** * Contains the possible cases for GroupTaskDetails. */ -export type GroupTaskDetailsUnion = GroupTaskDetails | InlineWorkflowTaskDetails | RecoveryPlanGroupTaskDetails | RecoveryPlanShutdownGroupTaskDetails; +export type GroupTaskDetailsUnion = GroupTaskDetails | InlineWorkflowTaskDetails | RecoveryPlanGroupTaskDetailsUnion; /** - * @interface - * An interface representing GroupTaskDetails. - * This class represents the group task details when parent child relationship - * exists in the drill down. - * + * This class represents the group task details when parent child relationship exists in the drill + * down. */ export interface GroupTaskDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "GroupTaskDetails"; /** - * @member {ASRTask[]} [childTasks] The child tasks. + * The child tasks. */ childTasks?: ASRTask[]; } /** - * @interface - * An interface representing ServiceError. - * ASR error model - * + * ASR error model. */ export interface ServiceError { /** - * @member {string} [code] Error code. + * Error code. */ code?: string; /** - * @member {string} [message] Error message. + * Error message. */ message?: string; /** - * @member {string} [possibleCauses] Possible causes of error. + * Possible causes of error. */ possibleCauses?: string; /** - * @member {string} [recommendedAction] Recommended action to resolve error. + * Recommended action to resolve error. */ recommendedAction?: string; /** - * @member {string} [activityId] Activity Id. + * Activity Id. */ activityId?: string; } /** - * @interface - * An interface representing ProviderError. * This class contains the error details per object. - * */ export interface ProviderError { /** - * @member {number} [errorCode] The Error code. + * The Error code. */ errorCode?: number; /** - * @member {string} [errorMessage] The Error message. + * The Error message. */ errorMessage?: string; /** - * @member {string} [errorId] The Provider error Id. + * The Provider error Id. */ errorId?: string; /** - * @member {string} [possibleCauses] The possible causes for the error. + * The possible causes for the error. */ possibleCauses?: string; /** - * @member {string} [recommendedAction] The recommended action to resolve the - * error. + * The recommended action to resolve the error. */ recommendedAction?: string; } /** - * @interface - * An interface representing JobErrorDetails. * This class contains the error details per object. - * */ export interface JobErrorDetails { /** - * @member {ServiceError} [serviceErrorDetails] The Service error details. + * The Service error details. */ serviceErrorDetails?: ServiceError; /** - * @member {ProviderError} [providerErrorDetails] The Provider error details. + * The Provider error details. */ providerErrorDetails?: ProviderError; /** - * @member {string} [errorLevel] Error level of error. + * Error level of error. */ errorLevel?: string; /** - * @member {Date} [creationTime] The creation time of job error. + * The creation time of job error. */ creationTime?: Date; /** - * @member {string} [taskId] The Id of the task. + * The Id of the task. */ taskId?: string; } /** - * @interface - * An interface representing ASRTask. * Task of the Job. - * */ export interface ASRTask { /** - * @member {string} [taskId] The Id. + * The Id. */ taskId?: string; /** - * @member {string} [name] The unique Task name. + * The unique Task name. */ name?: string; /** - * @member {Date} [startTime] The start time. + * The start time. */ startTime?: Date; /** - * @member {Date} [endTime] The end time. + * The end time. */ endTime?: Date; /** - * @member {string[]} [allowedActions] The state/actions applicable on this - * task. + * The state/actions applicable on this task. */ allowedActions?: string[]; /** - * @member {string} [friendlyName] The name. + * The name. */ friendlyName?: string; /** - * @member {string} [state] The State. It is one of these values - - * NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other. + * The State. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, + * Suspended or Other. */ state?: string; /** - * @member {string} [stateDescription] The description of the task state. For - * example - For Succeeded state, description can be Completed, - * PartiallySucceeded, CompletedWithInformation or Skipped. + * The description of the task state. For example - For Succeeded state, description can be + * Completed, PartiallySucceeded, CompletedWithInformation or Skipped. */ stateDescription?: string; /** - * @member {string} [taskType] The type of task. Details in CustomDetails - * property depend on this type. + * The type of task. Details in CustomDetails property depend on this type. */ taskType?: string; /** - * @member {TaskTypeDetailsUnion} [customDetails] The custom task details - * based on the task type. + * The custom task details based on the task type. */ customDetails?: TaskTypeDetailsUnion; /** - * @member {GroupTaskDetailsUnion} [groupTaskCustomDetails] The custom task - * details based on the task type, if the task type is GroupTaskDetails or - * one of the types derived from it. + * The custom task details based on the task type, if the task type is GroupTaskDetails or one of + * the types derived from it. */ groupTaskCustomDetails?: GroupTaskDetailsUnion; /** - * @member {JobErrorDetails[]} [errors] The task error details. + * The task error details. */ errors?: JobErrorDetails[]; } /** - * @interface - * An interface representing AutomationRunbookTaskDetails. * This class represents the task details for an automation runbook. - * */ export interface AutomationRunbookTaskDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "AutomationRunbookTaskDetails"; /** - * @member {string} [name] The recovery plan task name. + * The recovery plan task name. */ name?: string; /** - * @member {string} [cloudServiceName] The cloud service of the automation - * runbook account. + * The cloud service of the automation runbook account. */ cloudServiceName?: string; /** - * @member {string} [subscriptionId] The subscription Id of the automation - * runbook account. + * The subscription Id of the automation runbook account. */ subscriptionId?: string; /** - * @member {string} [accountName] The automation account name of the runbook. + * The automation account name of the runbook. */ accountName?: string; /** - * @member {string} [runbookId] The runbook Id. + * The runbook Id. */ runbookId?: string; /** - * @member {string} [runbookName] The runbook name. + * The runbook name. */ runbookName?: string; /** - * @member {string} [jobId] The job Id of the runbook execution. + * The job Id of the runbook execution. */ jobId?: string; /** - * @member {string} [jobOutput] The execution output of the runbook. + * The execution output of the runbook. */ jobOutput?: string; /** - * @member {boolean} [isPrimarySideScript] A value indicating whether it is a - * primary side script or not. + * A value indicating whether it is a primary side script or not. */ isPrimarySideScript?: boolean; } @@ -1815,34 +2432,28 @@ export interface AutomationRunbookTaskDetails { /** * Contains the possible cases for FabricSpecificCreationInput. */ -export type FabricSpecificCreationInputUnion = FabricSpecificCreationInput | AzureFabricCreationInput | VMwareV2FabricCreationInput; +export type FabricSpecificCreationInputUnion = FabricSpecificCreationInput | AzureFabricCreationInput | InMageRcmFabricCreationInput | VMwareV2FabricCreationInput; /** - * @interface - * An interface representing FabricSpecificCreationInput. * Fabric provider specific settings. - * */ export interface FabricSpecificCreationInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "FabricSpecificCreationInput"; } /** - * @interface - * An interface representing AzureFabricCreationInput. * Fabric provider specific settings. - * */ export interface AzureFabricCreationInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "Azure"; /** - * @member {string} [location] The Location. + * The Location. */ location?: string; } @@ -1850,40 +2461,38 @@ export interface AzureFabricCreationInput { /** * Contains the possible cases for FabricSpecificDetails. */ -export type FabricSpecificDetailsUnion = FabricSpecificDetails | AzureFabricSpecificDetails | HyperVSiteDetails | VmmDetails | VMwareDetails | VMwareV2FabricSpecificDetails; +export type FabricSpecificDetailsUnion = FabricSpecificDetails | AzureFabricSpecificDetails | HyperVSiteDetails | InMageRcmFabricSpecificDetails | VmmDetails | VMwareDetails | VMwareV2FabricSpecificDetails; /** - * @interface - * An interface representing FabricSpecificDetails. * Fabric specific details. - * */ export interface FabricSpecificDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "FabricSpecificDetails"; } /** - * @interface - * An interface representing AzureFabricSpecificDetails. * Azure Fabric Specific Details. - * */ export interface AzureFabricSpecificDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "Azure"; /** - * @member {string} [location] The Location for the Azure fabric. + * The Location for the Azure fabric. */ location?: string; /** - * @member {string[]} [containerIds] The container Ids for the Azure fabric. + * The container Ids for the Azure fabric. */ containerIds?: string[]; + /** + * The zones. + */ + zones?: A2AZoneDetails[]; } /** @@ -1892,34 +2501,27 @@ export interface AzureFabricSpecificDetails { export type FabricSpecificCreateNetworkMappingInputUnion = FabricSpecificCreateNetworkMappingInput | AzureToAzureCreateNetworkMappingInput | VmmToAzureCreateNetworkMappingInput | VmmToVmmCreateNetworkMappingInput; /** - * @interface - * An interface representing FabricSpecificCreateNetworkMappingInput. * Input details specific to fabrics during Network Mapping. - * */ export interface FabricSpecificCreateNetworkMappingInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "FabricSpecificCreateNetworkMappingInput"; } /** - * @interface - * An interface representing AzureToAzureCreateNetworkMappingInput. - * Create network mappings input properties/behaviour specific to Azure to - * Azure Network mapping. - * + * Create network mappings input properties/behavior specific to Azure to Azure Network mapping. */ export interface AzureToAzureCreateNetworkMappingInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "AzureToAzure"; /** - * @member {string} [primaryNetworkId] The primary azure vnet Id. + * The primary azure vnet Id. */ - primaryNetworkId?: string; + primaryNetworkId: string; } /** @@ -1928,35 +2530,29 @@ export interface AzureToAzureCreateNetworkMappingInput { export type NetworkMappingFabricSpecificSettingsUnion = NetworkMappingFabricSpecificSettings | AzureToAzureNetworkMappingSettings | VmmToAzureNetworkMappingSettings | VmmToVmmNetworkMappingSettings; /** - * @interface - * An interface representing NetworkMappingFabricSpecificSettings. * Network Mapping fabric specific settings. - * */ export interface NetworkMappingFabricSpecificSettings { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "NetworkMappingFabricSpecificSettings"; } /** - * @interface - * An interface representing AzureToAzureNetworkMappingSettings. * A2A Network Mapping fabric specific settings. - * */ export interface AzureToAzureNetworkMappingSettings { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "AzureToAzure"; /** - * @member {string} [primaryFabricLocation] The primary fabric location. + * The primary fabric location. */ primaryFabricLocation?: string; /** - * @member {string} [recoveryFabricLocation] The recovery fabric location. + * The recovery fabric location. */ recoveryFabricLocation?: string; } @@ -1967,86 +2563,81 @@ export interface AzureToAzureNetworkMappingSettings { export type FabricSpecificUpdateNetworkMappingInputUnion = FabricSpecificUpdateNetworkMappingInput | AzureToAzureUpdateNetworkMappingInput | VmmToAzureUpdateNetworkMappingInput | VmmToVmmUpdateNetworkMappingInput; /** - * @interface - * An interface representing FabricSpecificUpdateNetworkMappingInput. * Input details specific to fabrics during Network Mapping. - * */ export interface FabricSpecificUpdateNetworkMappingInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "FabricSpecificUpdateNetworkMappingInput"; } /** - * @interface - * An interface representing AzureToAzureUpdateNetworkMappingInput. * Updates network mappings input. - * */ export interface AzureToAzureUpdateNetworkMappingInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "AzureToAzure"; /** - * @member {string} [primaryNetworkId] The primary azure vnet Id. + * The primary azure vnet Id. */ primaryNetworkId?: string; } /** - * @interface - * An interface representing AzureVmDiskDetails. * Disk details for E2A provider. - * */ export interface AzureVmDiskDetails { /** - * @member {string} [vhdType] VHD type. + * VHD type. */ vhdType?: string; /** - * @member {string} [vhdId] The VHD id. + * The VHD id. */ vhdId?: string; /** - * @member {string} [vhdName] VHD name. + * The disk resource id. + */ + diskId?: string; + /** + * VHD name. */ vhdName?: string; /** - * @member {string} [maxSizeMB] Max side in MB. + * Max side in MB. */ maxSizeMB?: string; /** - * @member {string} [targetDiskLocation] Blob uri of the Azure disk. + * Blob uri of the Azure disk. */ targetDiskLocation?: string; /** - * @member {string} [targetDiskName] The target Azure disk name. + * The target Azure disk name. */ targetDiskName?: string; /** - * @member {string} [lunId] Ordinal\LunId of the disk for the Azure VM. + * Ordinal\LunId of the disk for the Azure VM. */ lunId?: string; + /** + * The DiskEncryptionSet ARM ID. + */ + diskEncryptionSetId?: string; } /** - * @interface - * An interface representing ComputeSizeErrorDetails. - * Represents the error used to indicate why the target compute size is not - * applicable. - * + * Represents the error used to indicate why the target compute size is not applicable. */ export interface ComputeSizeErrorDetails { /** - * @member {string} [message] The error message. + * The error message. */ message?: string; /** - * @member {string} [severity] The severity of the error. + * The severity of the error. */ severity?: string; } @@ -2054,246 +2645,209 @@ export interface ComputeSizeErrorDetails { /** * Contains the possible cases for ConfigurationSettings. */ -export type ConfigurationSettingsUnion = ConfigurationSettings | HyperVVirtualMachineDetails | ReplicationGroupDetails | VmmVirtualMachineDetails | VMwareVirtualMachineDetails; +export type ConfigurationSettingsUnion = ConfigurationSettings | HyperVVirtualMachineDetailsUnion | ReplicationGroupDetails | VMwareVirtualMachineDetails; /** - * @interface - * An interface representing ConfigurationSettings. * Replication provider specific settings. - * */ export interface ConfigurationSettings { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "ConfigurationSettings"; } /** - * @interface - * An interface representing ConfigureAlertRequestProperties. * Properties of a configure alert request. - * */ export interface ConfigureAlertRequestProperties { /** - * @member {string} [sendToOwners] A value indicating whether to send email - * to subscription administrator. + * A value indicating whether to send email to subscription administrator. */ sendToOwners?: string; /** - * @member {string[]} [customEmailAddresses] The custom email address for - * sending emails. + * The custom email address for sending emails. */ customEmailAddresses?: string[]; /** - * @member {string} [locale] The locale for the email notification. + * The locale for the email notification. */ locale?: string; } /** - * @interface - * An interface representing ConfigureAlertRequest. * Request to configure alerts for the system. - * */ export interface ConfigureAlertRequest { /** - * @member {ConfigureAlertRequestProperties} [properties] The properties of a - * configure alert request. + * The properties of a configure alert request. */ properties?: ConfigureAlertRequestProperties; } /** - * @interface - * An interface representing InconsistentVmDetails. - * This class stores the monitoring details for consistency check of - * inconsistent Protected Entity. - * + * This class stores the monitoring details for consistency check of inconsistent Protected Entity. */ export interface InconsistentVmDetails { /** - * @member {string} [vmName] The Vm name. + * The Vm name. */ vmName?: string; /** - * @member {string} [cloudName] The Cloud name. + * The Cloud name. */ cloudName?: string; /** - * @member {string[]} [details] The list of details regarding state of the - * Protected Entity in SRS and On prem. + * The list of details regarding state of the Protected Entity in SRS and On prem. */ details?: string[]; /** - * @member {string[]} [errorIds] The list of error ids. + * The list of error ids. */ errorIds?: string[]; } /** - * @interface - * An interface representing ConsistencyCheckTaskDetails. - * This class contains monitoring details of all the inconsistent Protected - * Entites in Vmm. - * + * This class contains monitoring details of all the inconsistent Protected Entities in Vmm. */ export interface ConsistencyCheckTaskDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "ConsistencyCheckTaskDetails"; /** - * @member {InconsistentVmDetails[]} [vmDetails] The list of inconsistent Vm - * details. + * The list of inconsistent Vm details. */ vmDetails?: InconsistentVmDetails[]; } /** - * @interface - * An interface representing CreateNetworkMappingInputProperties. * Common input details for network mapping operation. - * */ export interface CreateNetworkMappingInputProperties { /** - * @member {string} [recoveryFabricName] Recovery fabric Name. + * Recovery fabric Name. */ recoveryFabricName?: string; /** - * @member {string} [recoveryNetworkId] Recovery network Id. + * Recovery network Id. */ - recoveryNetworkId?: string; + recoveryNetworkId: string; /** - * @member {FabricSpecificCreateNetworkMappingInputUnion} - * [fabricSpecificDetails] Fabric specific input properties. + * Fabric specific input properties. */ fabricSpecificDetails?: FabricSpecificCreateNetworkMappingInputUnion; } /** - * @interface - * An interface representing CreateNetworkMappingInput. * Create network mappings input. - * */ export interface CreateNetworkMappingInput { /** - * @member {CreateNetworkMappingInputProperties} [properties] Input - * properties for creating network mapping. + * Input properties for creating network mapping. */ - properties?: CreateNetworkMappingInputProperties; + properties: CreateNetworkMappingInputProperties; } /** - * @interface - * An interface representing CreatePolicyInputProperties. * Policy creation properties. - * */ export interface CreatePolicyInputProperties { /** - * @member {PolicyProviderSpecificInputUnion} [providerSpecificInput] The - * ReplicationProviderSettings. + * The ReplicationProviderSettings. */ providerSpecificInput?: PolicyProviderSpecificInputUnion; } /** - * @interface - * An interface representing CreatePolicyInput. * Protection Policy input. - * */ export interface CreatePolicyInput { /** - * @member {CreatePolicyInputProperties} [properties] Policy creation - * properties. + * Policy creation properties. */ properties?: CreatePolicyInputProperties; } /** - * @interface - * An interface representing CreateProtectionContainerInputProperties. * Create protection container input properties. - * */ export interface CreateProtectionContainerInputProperties { /** - * @member {ReplicationProviderSpecificContainerCreationInputUnion[]} - * [providerSpecificInput] Provider specific inputs for container creation. + * Provider specific inputs for container creation. */ providerSpecificInput?: ReplicationProviderSpecificContainerCreationInputUnion[]; } /** - * @interface - * An interface representing CreateProtectionContainerInput. * Create protection container input. - * */ export interface CreateProtectionContainerInput { /** - * @member {CreateProtectionContainerInputProperties} [properties] Create - * protection container input properties. + * Create protection container input properties. */ properties?: CreateProtectionContainerInputProperties; } /** - * @interface - * An interface representing CreateProtectionContainerMappingInputProperties. * Configure pairing input properties. - * */ export interface CreateProtectionContainerMappingInputProperties { /** - * @member {string} [targetProtectionContainerId] The target unique - * protection container name. + * The target unique protection container name. */ targetProtectionContainerId?: string; /** - * @member {string} [policyId] Applicable policy. + * Applicable policy. */ policyId?: string; /** - * @member {ReplicationProviderSpecificContainerMappingInputUnion} - * [providerSpecificInput] Provider specific input for pairing. + * Provider specific input for pairing. */ providerSpecificInput?: ReplicationProviderSpecificContainerMappingInputUnion; } /** - * @interface - * An interface representing CreateProtectionContainerMappingInput. * Configure pairing input. - * */ export interface CreateProtectionContainerMappingInput { /** - * @member {CreateProtectionContainerMappingInputProperties} [properties] * Configure protection input properties. */ properties?: CreateProtectionContainerMappingInputProperties; } /** - * @interface - * An interface representing RecoveryPlanProtectedItem. + * Create protection intent input properties. + */ +export interface CreateProtectionIntentProperties { + /** + * The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput + * object. + */ + providerSpecificDetails?: CreateProtectionIntentProviderSpecificDetailsUnion; +} + +/** + * Create protection intent input. + */ +export interface CreateProtectionIntentInput { + /** + * Create protection intent input properties. + */ + properties?: CreateProtectionIntentProperties; +} + +/** * Recovery plan protected item. - * */ export interface RecoveryPlanProtectedItem { /** - * @member {string} [id] The ARM Id of the recovery plan protected item. + * The ARM Id of the recovery plan protected item. */ id?: string; /** - * @member {string} [virtualMachineId] The virtual machine Id. + * The virtual machine Id. */ virtualMachineId?: string; } @@ -2304,160 +2858,172 @@ export interface RecoveryPlanProtectedItem { export type RecoveryPlanActionDetailsUnion = RecoveryPlanActionDetails | RecoveryPlanAutomationRunbookActionDetails | RecoveryPlanManualActionDetails | RecoveryPlanScriptActionDetails; /** - * @interface - * An interface representing RecoveryPlanActionDetails. * Recovery plan action custom details. - * */ export interface RecoveryPlanActionDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "RecoveryPlanActionDetails"; } /** - * @interface - * An interface representing RecoveryPlanAction. * Recovery plan action details. - * */ export interface RecoveryPlanAction { /** - * @member {string} actionName The action name. + * The action name. */ actionName: string; /** - * @member {ReplicationProtectedItemOperation[]} failoverTypes The list of - * failover types. + * The list of failover types. */ failoverTypes: ReplicationProtectedItemOperation[]; /** - * @member {PossibleOperationsDirections[]} failoverDirections The list of - * failover directions. + * The list of failover directions. */ failoverDirections: PossibleOperationsDirections[]; /** - * @member {RecoveryPlanActionDetailsUnion} customDetails The custom details. + * The custom details. */ customDetails: RecoveryPlanActionDetailsUnion; } /** - * @interface - * An interface representing RecoveryPlanGroup. * Recovery plan group details. - * */ export interface RecoveryPlanGroup { /** - * @member {RecoveryPlanGroupType} groupType The group type. Possible values - * include: 'Shutdown', 'Boot', 'Failover' + * The group type. Possible values include: 'Shutdown', 'Boot', 'Failover' */ groupType: RecoveryPlanGroupType; /** - * @member {RecoveryPlanProtectedItem[]} [replicationProtectedItems] The list - * of protected items. + * The list of protected items. */ replicationProtectedItems?: RecoveryPlanProtectedItem[]; /** - * @member {RecoveryPlanAction[]} [startGroupActions] The start group - * actions. + * The start group actions. */ startGroupActions?: RecoveryPlanAction[]; /** - * @member {RecoveryPlanAction[]} [endGroupActions] The end group actions. + * The end group actions. */ endGroupActions?: RecoveryPlanAction[]; } /** - * @interface - * An interface representing CreateRecoveryPlanInputProperties. + * Contains the possible cases for RecoveryPlanProviderSpecificInput. + */ +export type RecoveryPlanProviderSpecificInputUnion = RecoveryPlanProviderSpecificInput | RecoveryPlanA2AInput; + +/** + * Recovery plan provider specific input base class. + */ +export interface RecoveryPlanProviderSpecificInput { + /** + * Polymorphic Discriminator + */ + instanceType: "RecoveryPlanProviderSpecificInput"; +} + +/** * Recovery plan creation properties. - * */ export interface CreateRecoveryPlanInputProperties { /** - * @member {string} primaryFabricId The primary fabric Id. + * The primary fabric Id. */ primaryFabricId: string; /** - * @member {string} recoveryFabricId The recovery fabric Id. + * The recovery fabric Id. */ recoveryFabricId: string; /** - * @member {FailoverDeploymentModel} [failoverDeploymentModel] The failover - * deployment model. Possible values include: 'NotApplicable', 'Classic', + * The failover deployment model. Possible values include: 'NotApplicable', 'Classic', * 'ResourceManager' */ failoverDeploymentModel?: FailoverDeploymentModel; /** - * @member {RecoveryPlanGroup[]} groups The recovery plan groups. + * The recovery plan groups. */ groups: RecoveryPlanGroup[]; + /** + * The provider specific input. + */ + providerSpecificInput?: RecoveryPlanProviderSpecificInputUnion[]; } /** - * @interface - * An interface representing CreateRecoveryPlanInput. * Create recovery plan input class. - * */ export interface CreateRecoveryPlanInput { /** - * @member {CreateRecoveryPlanInputProperties} properties Recovery plan - * creation properties. + * Recovery plan creation properties. */ properties: CreateRecoveryPlanInputProperties; } /** - * @interface - * An interface representing CurrentScenarioDetails. + * Current job details of the migration item. + */ +export interface CurrentJobDetails { + /** + * The job name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly jobName?: string; + /** + * The ARM Id of the job being executed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly jobId?: string; + /** + * The start time of the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTime?: Date; +} + +/** * Current scenario details of the protected entity. - * */ export interface CurrentScenarioDetails { /** - * @member {string} [scenarioName] Scenario name. + * Scenario name. */ scenarioName?: string; /** - * @member {string} [jobId] ARM Id of the job being executed. + * ARM Id of the job being executed. */ jobId?: string; /** - * @member {Date} [startTime] Start time of the workflow. + * Start time of the workflow. */ startTime?: Date; } /** - * @interface - * An interface representing DataStore. * The datastore details of the MT. - * */ export interface DataStore { /** - * @member {string} [symbolicName] The symbolic name of data store. + * The symbolic name of data store. */ symbolicName?: string; /** - * @member {string} [uuid] The uuid of data store. + * The uuid of data store. */ uuid?: string; /** - * @member {string} [capacity] The capacity of data store in GBs. + * The capacity of data store in GBs. */ capacity?: string; /** - * @member {string} [freeSpace] The free space of data store in GBs. + * The free space of data store in GBs. */ freeSpace?: string; /** - * @member {string} [type] The type of data store. + * The type of data store. */ type?: string; } @@ -2468,7237 +3034,11600 @@ export interface DataStore { export type DisableProtectionProviderSpecificInputUnion = DisableProtectionProviderSpecificInput | InMageDisableProtectionProviderSpecificInput; /** - * @interface - * An interface representing DisableProtectionProviderSpecificInput. * Disable protection provider specific input. - * */ export interface DisableProtectionProviderSpecificInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "DisableProtectionProviderSpecificInput"; } /** - * @interface - * An interface representing DisableProtectionInputProperties. * Disable protection input properties. - * */ export interface DisableProtectionInputProperties { /** - * @member {DisableProtectionReason} [disableProtectionReason] Disable - * protection reason. It can have values NotSpecified/MigrationComplete. - * Possible values include: 'NotSpecified', 'MigrationComplete' + * Disable protection reason. It can have values NotSpecified/MigrationComplete. Possible values + * include: 'NotSpecified', 'MigrationComplete' */ disableProtectionReason?: DisableProtectionReason; /** - * @member {DisableProtectionProviderSpecificInputUnion} - * [replicationProviderInput] Replication provider specific input. + * Replication provider specific input. */ replicationProviderInput?: DisableProtectionProviderSpecificInputUnion; } /** - * @interface - * An interface representing DisableProtectionInput. * Disable protection input. - * */ export interface DisableProtectionInput { /** - * @member {DisableProtectionInputProperties} [properties] Disable protection - * input properties. + * Disable protection input properties. */ - properties?: DisableProtectionInputProperties; + properties: DisableProtectionInputProperties; } /** - * @interface - * An interface representing DiscoverProtectableItemRequestProperties. * Discover protectable item properties. - * */ export interface DiscoverProtectableItemRequestProperties { /** - * @member {string} [friendlyName] The friendly name of the physical machine. + * The friendly name of the physical machine. */ friendlyName?: string; /** - * @member {string} [ipAddress] The IP address of the physical machine to be - * discovered. + * The IP address of the physical machine to be discovered. */ ipAddress?: string; /** - * @member {string} [osType] The OS type on the physical machine. + * The OS type on the physical machine. */ osType?: string; } /** - * @interface - * An interface representing DiscoverProtectableItemRequest. * Request to add a physical machine as a protectable item in a container. - * */ export interface DiscoverProtectableItemRequest { /** - * @member {DiscoverProtectableItemRequestProperties} [properties] The - * properties of a discover protectable item request. + * The properties of a discover protectable item request. */ properties?: DiscoverProtectableItemRequestProperties; } /** - * @interface - * An interface representing DiskDetails. * Onprem disk details data. - * */ export interface DiskDetails { /** - * @member {number} [maxSizeMB] The hard disk max size in MB. + * The hard disk max size in MB. */ maxSizeMB?: number; /** - * @member {string} [vhdType] The type of the volume. + * The type of the volume. */ vhdType?: string; /** - * @member {string} [vhdId] The VHD Id. + * The VHD Id. */ vhdId?: string; /** - * @member {string} [vhdName] The VHD name. + * The VHD name. */ vhdName?: string; } /** - * @interface - * An interface representing DiskVolumeDetails. * Volume details. - * */ export interface DiskVolumeDetails { /** - * @member {string} [label] The volume label. + * The volume label. */ label?: string; /** - * @member {string} [name] The volume name. + * The volume name. */ name?: string; } /** - * @interface - * An interface representing Display. - * Contains the localized display information for this particular operation / - * action. These value will be used by several clients for (1) custom role - * definitions for RBAC; (2) complex query filters for the event service; and - * (3) audit history / records for management operations. - * + * Contains the localized display information for this particular operation / action. These value + * will be used by several clients for (1) custom role definitions for RBAC; (2) complex query + * filters for the event service; and (3) audit history / records for management operations. */ export interface Display { /** - * @member {string} [provider] The provider. The localized friendly form of - * the resource provider name – it is expected to also include the - * publisher/company responsible. It should use Title Casing and begin with - * "Microsoft" for 1st party services. e.g. "Microsoft Monitoring Insights" - * or "Microsoft Compute." + * The provider. The localized friendly form of the resource provider name - it is expected to + * also include the publisher/company responsible. It should use Title Casing and begin with + * "Microsoft" for 1st party services. e.g. "Microsoft Monitoring Insights" or "Microsoft + * Compute.". */ provider?: string; /** - * @member {string} [resource] The resource. The localized friendly form of - * the resource related to this action/operation – it should match the public - * documentation for the resource provider. It should use Title Casing. This - * value should be unique for a particular URL type (e.g. nested types should - * *not* reuse their parent’s display.resource field). e.g. "Virtual - * Machines" or "Scheduler Job Collections", or "Virtual Machine VM Sizes" or - * "Scheduler Jobs" + * The resource. The localized friendly form of the resource related to this action/operation - + * it should match the public documentation for the resource provider. It should use Title + * Casing. This value should be unique for a particular URL type (e.g. nested types should *not* + * reuse their parent's display.resource field). e.g. "Virtual Machines" or "Scheduler Job + * Collections", or "Virtual Machine VM Sizes" or "Scheduler Jobs". */ resource?: string; /** - * @member {string} [operation] The operation. The localized friendly name - * for the operation, as it should be shown to the user. It should be concise - * (to fit in drop downs) but clear (i.e. self-documenting). It should use - * Title Casing. Prescriptive guidance: Read Create or Update Delete - * 'ActionName' + * The operation. The localized friendly name for the operation, as it should be shown to the + * user. It should be concise (to fit in drop downs) but clear (i.e. self-documenting). It should + * use Title Casing. Prescriptive guidance: Read Create or Update Delete 'ActionName'. */ operation?: string; /** - * @member {string} [description] The description. The localized friendly - * description for the operation, as it should be shown to the user. It - * should be thorough, yet concise – it will be used in tool tips and - * detailed views. Prescriptive guidance for namespaces: Read any - * 'display.provider' resource Create or Update any 'display.provider' - * resource Delete any 'display.provider' resource Perform any other action - * on any 'display.provider' resource Prescriptive guidance for namespaces: - * Read any 'display.resource' Create or Update any 'display.resource' Delete - * any 'display.resource' 'ActionName' any 'display.resources' + * The description. The localized friendly description for the operation, as it should be shown + * to the user. It should be thorough, yet concise - it will be used in tool tips and detailed + * views. Prescriptive guidance for namespaces: Read any 'display.provider' resource Create or + * Update any 'display.provider' resource Delete any 'display.provider' resource Perform any + * other action on any 'display.provider' resource Prescriptive guidance for namespaces: Read any + * 'display.resource' Create or Update any 'display.resource' Delete any 'display.resource' + * 'ActionName' any 'display.resources'. */ description?: string; } /** - * @interface - * An interface representing EnableProtectionInputProperties. - * Enable protection input properties. - * + * Implements InnerHealthError class. HealthError object has a list of InnerHealthErrors as child + * errors. InnerHealthError is used because this will prevent an infinite loop of structures when + * Hydra tries to auto-generate the contract. We are exposing the related health errors as inner + * health errors and all API consumers can utilize this in the same fashion as Exception -> + * InnerException. */ -export interface EnableProtectionInputProperties { +export interface InnerHealthError { /** - * @member {string} [policyId] The Policy Id. + * Source of error. */ - policyId?: string; + errorSource?: string; /** - * @member {string} [protectableItemId] The protectable item Id. + * Type of error. */ - protectableItemId?: string; + errorType?: string; /** - * @member {EnableProtectionProviderSpecificInputUnion} - * [providerSpecificDetails] The ReplicationProviderInput. For - * HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. - * For San provider, it will be SanEnableProtectionInput object. For - * HyperVReplicaAzure provider, it can be null. + * Level of error. */ - providerSpecificDetails?: EnableProtectionProviderSpecificInputUnion; -} - -/** - * @interface - * An interface representing EnableProtectionInput. - * Enable protection input. - * - */ -export interface EnableProtectionInput { + errorLevel?: string; /** - * @member {EnableProtectionInputProperties} [properties] Enable protection - * input properties. + * Category of error. */ - properties?: EnableProtectionInputProperties; -} - -/** - * @interface - * An interface representing EncryptionDetails. - * Encryption details for the fabric. - * - */ -export interface EncryptionDetails { + errorCategory?: string; /** - * @member {string} [kekState] The key encryption key state for the Vmm. + * Error code. */ - kekState?: string; + errorCode?: string; /** - * @member {string} [kekCertThumbprint] The key encryption key certificate - * thumbprint. + * Summary message of the entity. */ - kekCertThumbprint?: string; + summaryMessage?: string; /** - * @member {Date} [kekCertExpiryDate] The key encryption key certificate - * expiry date. + * Error message. */ - kekCertExpiryDate?: Date; -} - -/** - * Contains the possible cases for EventSpecificDetails. - */ -export type EventSpecificDetailsUnion = EventSpecificDetails | JobStatusEventDetails; - -/** - * @interface - * An interface representing EventSpecificDetails. - * Model class for event specific details for an event. - * - */ -export interface EventSpecificDetails { + errorMessage?: string; /** - * @member {string} instanceType Polymorphic Discriminator + * Possible causes of error. */ - instanceType: "EventSpecificDetails"; + possibleCauses?: string; + /** + * Recommended action to resolve error. + */ + recommendedAction?: string; + /** + * Error creation time (UTC). + */ + creationTimeUtc?: Date; + /** + * DRA error message. + */ + recoveryProviderErrorMessage?: string; + /** + * ID of the entity. + */ + entityId?: string; + /** + * The health error unique id. + */ + errorId?: string; + /** + * Value indicating whether the health error is customer resolvable. Possible values include: + * 'Allowed', 'NotAllowed' + */ + customerResolvability?: HealthErrorCustomerResolvability; } /** - * @interface - * An interface representing InnerHealthError. - * Implements InnerHealthError class. HealthError object has a list of - * InnerHealthErrors as child errors. InnerHealthError is used because this - * will prevent an infinite loop of structures when Hydra tries to - * auto-generate the contract. We are exposing the related health errors as - * inner health errors and all API consumers can utilize this in the same - * fashion as Exception -> InnerException. - * + * Health Error. */ -export interface InnerHealthError { +export interface HealthError { + /** + * The inner health errors. HealthError having a list of HealthError as child errors is + * problematic. InnerHealthError is used because this will prevent an infinite loop of structures + * when Hydra tries to auto-generate the contract. We are exposing the related health errors as + * inner health errors and all API consumers can utilize this in the same fashion as Exception + * -> InnerException. + */ + innerHealthErrors?: InnerHealthError[]; /** - * @member {string} [errorSource] Source of error. + * Source of error. */ errorSource?: string; /** - * @member {string} [errorType] Type of error. + * Type of error. */ errorType?: string; /** - * @member {string} [errorLevel] Level of error. + * Level of error. */ errorLevel?: string; /** - * @member {string} [errorCategory] Category of error. + * Category of error. */ errorCategory?: string; /** - * @member {string} [errorCode] Error code. + * Error code. */ errorCode?: string; /** - * @member {string} [summaryMessage] Summary message of the entity. + * Summary message of the entity. */ summaryMessage?: string; /** - * @member {string} [errorMessage] Error message. + * Error message. */ errorMessage?: string; /** - * @member {string} [possibleCauses] Possible causes of error. + * Possible causes of error. */ possibleCauses?: string; /** - * @member {string} [recommendedAction] Recommended action to resolve error. + * Recommended action to resolve error. */ recommendedAction?: string; /** - * @member {Date} [creationTimeUtc] Error creation time (UTC) + * Error creation time (UTC). */ creationTimeUtc?: Date; /** - * @member {string} [recoveryProviderErrorMessage] DRA error message. + * DRA error message. */ recoveryProviderErrorMessage?: string; /** - * @member {string} [entityId] ID of the entity. + * ID of the entity. */ entityId?: string; + /** + * The health error unique id. + */ + errorId?: string; + /** + * Value indicating whether the health error is customer resolvable. Possible values include: + * 'Allowed', 'NotAllowed' + */ + customerResolvability?: HealthErrorCustomerResolvability; } /** - * @interface - * An interface representing HealthError. - * Health Error - * + * DRA details. */ -export interface HealthError { +export interface DraDetails { /** - * @member {InnerHealthError[]} [innerHealthErrors] The inner health errors. - * HealthError having a list of HealthError as child errors is problematic. - * InnerHealthError is used because this will prevent an infinite loop of - * structures when Hydra tries to auto-generate the contract. We are exposing - * the related health errors as inner health errors and all API consumers can - * utilize this in the same fashion as Exception -> InnerException. + * The DRA Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - innerHealthErrors?: InnerHealthError[]; + readonly id?: string; /** - * @member {string} [errorSource] Source of error. + * The DRA name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - errorSource?: string; + readonly name?: string; /** - * @member {string} [errorType] Type of error. + * The DRA Bios Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - errorType?: string; + readonly biosId?: string; /** - * @member {string} [errorLevel] Level of error. + * The version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - errorLevel?: string; + readonly version?: string; /** - * @member {string} [errorCategory] Category of error. + * The last heartbeat received from the DRA. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - errorCategory?: string; + readonly lastHeartbeatUtc?: Date; /** - * @member {string} [errorCode] Error code. + * The health. Possible values include: 'None', 'Normal', 'Warning', 'Critical' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - errorCode?: string; + readonly health?: ProtectionHealth; /** - * @member {string} [summaryMessage] Summary message of the entity. + * The health errors. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - summaryMessage?: string; + readonly healthErrors?: HealthError[]; /** - * @member {string} [errorMessage] Error message. + * The count of protected items which are protected in forward direction. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - errorMessage?: string; + readonly forwardProtectedItemCount?: number; /** - * @member {string} [possibleCauses] Possible causes of error. + * The count of protected items which are protected in reverse direction. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - possibleCauses?: string; + readonly reverseProtectedItemCount?: number; +} + +/** + * Contains the possible cases for EnableMigrationProviderSpecificInput. + */ +export type EnableMigrationProviderSpecificInputUnion = EnableMigrationProviderSpecificInput | VMwareCbtEnableMigrationInput; + +/** + * Enable migration provider specific input. + */ +export interface EnableMigrationProviderSpecificInput { /** - * @member {string} [recommendedAction] Recommended action to resolve error. + * Polymorphic Discriminator */ - recommendedAction?: string; + instanceType: "EnableMigrationProviderSpecificInput"; +} + +/** + * Enable migration input properties. + */ +export interface EnableMigrationInputProperties { /** - * @member {Date} [creationTimeUtc] Error creation time (UTC) + * The policy Id. */ - creationTimeUtc?: Date; + policyId: string; /** - * @member {string} [recoveryProviderErrorMessage] DRA error message. + * The provider specific details. */ - recoveryProviderErrorMessage?: string; + providerSpecificDetails: EnableMigrationProviderSpecificInputUnion; +} + +/** + * Enable migration input. + */ +export interface EnableMigrationInput { /** - * @member {string} [entityId] ID of the entity. + * Enable migration input properties. */ - entityId?: string; + properties: EnableMigrationInputProperties; +} + +/** + * Enable protection input properties. + */ +export interface EnableProtectionInputProperties { + /** + * The Policy Id. + */ + policyId?: string; + /** + * The protectable item Id. + */ + protectableItemId?: string; + /** + * The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be + * AzureEnableProtectionInput object. For San provider, it will be SanEnableProtectionInput + * object. For HyperVReplicaAzure provider, it can be null. + */ + providerSpecificDetails?: EnableProtectionProviderSpecificInputUnion; +} + +/** + * Enable protection input. + */ +export interface EnableProtectionInput { + /** + * Enable protection input properties. + */ + properties?: EnableProtectionInputProperties; +} + +/** + * Encryption details for the fabric. + */ +export interface EncryptionDetails { + /** + * The key encryption key state for the Vmm. + */ + kekState?: string; + /** + * The key encryption key certificate thumbprint. + */ + kekCertThumbprint?: string; + /** + * The key encryption key certificate expiry date. + */ + kekCertExpiryDate?: Date; +} + +/** + * Contains the possible cases for EventSpecificDetails. + */ +export type EventSpecificDetailsUnion = EventSpecificDetails | JobStatusEventDetails; + +/** + * Model class for event specific details for an event. + */ +export interface EventSpecificDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "EventSpecificDetails"; } /** - * @interface - * An interface representing EventProperties. * The properties of a monitoring event. - * */ export interface EventProperties { /** - * @member {string} [eventCode] The Id of the monitoring event. + * The Id of the monitoring event. */ eventCode?: string; /** - * @member {string} [description] The event name. + * The event name. */ description?: string; /** - * @member {string} [eventType] The type of the event. for example: VM - * Health, Server Health, Job Failure etc. + * The type of the event. for example: VM Health, Server Health, Job Failure etc. */ eventType?: string; /** - * @member {string} [affectedObjectFriendlyName] The friendly name of the - * source of the event on which it is raised (for example, VM, VMM etc). + * The friendly name of the source of the event on which it is raised (for example, VM, VMM etc). */ affectedObjectFriendlyName?: string; /** - * @member {string} [severity] The severity of the event. + * The affected object correlationId for the event. + */ + affectedObjectCorrelationId?: string; + /** + * The severity of the event. */ severity?: string; /** - * @member {Date} [timeOfOccurrence] The time of occurence of the event. + * The time of occurrence of the event. */ timeOfOccurrence?: Date; /** - * @member {string} [fabricId] The ARM ID of the fabric. + * The ARM ID of the fabric. */ fabricId?: string; /** - * @member {EventProviderSpecificDetailsUnion} [providerSpecificDetails] The - * provider specific settings. + * The provider specific settings. */ providerSpecificDetails?: EventProviderSpecificDetailsUnion; /** - * @member {EventSpecificDetailsUnion} [eventSpecificDetails] The event - * specific settings. + * The event specific settings. */ eventSpecificDetails?: EventSpecificDetailsUnion; /** - * @member {HealthError[]} [healthErrors] The list of errors / warnings - * capturing details associated with the issue(s). + * The list of errors / warnings capturing details associated with the issue(s). */ healthErrors?: HealthError[]; } /** - * @interface - * An interface representing Event. * Implements the Event class. - * - * @extends Resource */ export interface Event extends Resource { /** - * @member {EventProperties} [properties] Event related data. + * Event related data. */ properties?: EventProperties; } /** - * @interface - * An interface representing EventQueryParameter. * Implements the event query parameter. - * */ export interface EventQueryParameter { /** - * @member {string} [eventCode] The source id of the events to be queried. + * The source id of the events to be queried. */ eventCode?: string; /** - * @member {string} [severity] The severity of the events to be queried. + * The severity of the events to be queried. */ severity?: string; /** - * @member {string} [eventType] The type of the events to be queried. + * The type of the events to be queried. */ eventType?: string; /** - * @member {string} [fabricName] The affected object server id of the events - * to be queried. + * The affected object server id of the events to be queried. */ fabricName?: string; /** - * @member {string} [affectedObjectFriendlyName] The affected object name of - * the events to be queried. + * The affected object name of the events to be queried. */ affectedObjectFriendlyName?: string; /** - * @member {Date} [startTime] The start time of the time range within which - * the events are to be queried. + * The affected object correlationId for the events to be queried. + */ + affectedObjectCorrelationId?: string; + /** + * The start time of the time range within which the events are to be queried. */ startTime?: Date; /** - * @member {Date} [endTime] The end time of the time range within which the - * events are to be queried. + * The end time of the time range within which the events are to be queried. */ endTime?: Date; } /** - * @interface - * An interface representing ExportJobDetails. + * Existing storage account input. + */ +export interface ExistingProtectionProfile { + /** + * Polymorphic Discriminator + */ + resourceType: "Existing"; + /** + * The protection profile Arm Id. Throw error, if resource does not exists. + */ + protectionProfileId: string; +} + +/** + * Existing recovery availability set input. + */ +export interface ExistingRecoveryAvailabilitySet { + /** + * Polymorphic Discriminator + */ + resourceType: "Existing"; + /** + * The recovery availability set Id. Will throw error, if resource does not exist. + */ + recoveryAvailabilitySetId?: string; +} + +/** + * Existing recovery proximity placement group input. + */ +export interface ExistingRecoveryProximityPlacementGroup { + /** + * Polymorphic Discriminator + */ + resourceType: "Existing"; + /** + * The recovery proximity placement group Id. Will throw error, if resource does not exist. + */ + recoveryProximityPlacementGroupId?: string; +} + +/** + * Existing recovery resource group input. + */ +export interface ExistingRecoveryRecoveryResourceGroup { + /** + * Polymorphic Discriminator + */ + resourceType: "Existing"; + /** + * The recovery resource group Id. Valid for V2 scenarios. + */ + recoveryResourceGroupId?: string; +} + +/** + * Existing recovery virtual network input. + */ +export interface ExistingRecoveryVirtualNetwork { + /** + * Polymorphic Discriminator + */ + resourceType: "Existing"; + /** + * The recovery virtual network Id. Will throw error, if resource does not exist. + */ + recoveryVirtualNetworkId: string; + /** + * The recovery subnet name. + */ + recoverySubnetName?: string; +} + +/** + * Existing storage account input. + */ +export interface ExistingStorageAccount { + /** + * Polymorphic Discriminator + */ + resourceType: "Existing"; + /** + * The storage account Arm Id. Throw error, if resource does not exists. + */ + azureStorageAccountId: string; +} + +/** * This class represents details for export jobs workflow. - * */ export interface ExportJobDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "ExportJobDetails"; /** - * @member {{ [propertyName: string]: string }} [affectedObjectDetails] The - * affected object properties like source server, source cloud, target - * server, target cloud etc. based on the workflow object details. + * The affected object properties like source server, source cloud, target server, target cloud + * etc. based on the workflow object details. */ affectedObjectDetails?: { [propertyName: string]: string }; /** - * @member {string} [blobUri] BlobUri of the exported jobs. + * BlobUri of the exported jobs. */ blobUri?: string; /** - * @member {string} [sasToken] The sas token to access blob. + * The sas token to access blob. */ sasToken?: string; } /** - * @interface - * An interface representing FabricProperties. * Fabric properties. - * */ export interface FabricProperties { /** - * @member {string} [friendlyName] Friendly name of the fabric. + * Friendly name of the fabric. */ friendlyName?: string; /** - * @member {EncryptionDetails} [encryptionDetails] Encryption details for the - * fabric. + * Encryption details for the fabric. */ encryptionDetails?: EncryptionDetails; /** - * @member {EncryptionDetails} [rolloverEncryptionDetails] Rollover - * encryption details for the fabric. + * Rollover encryption details for the fabric. */ rolloverEncryptionDetails?: EncryptionDetails; /** - * @member {string} [internalIdentifier] Dra Registration Id. + * Dra Registration Id. */ internalIdentifier?: string; /** - * @member {string} [bcdrState] BCDR state of the fabric. + * BCDR state of the fabric. */ bcdrState?: string; /** - * @member {FabricSpecificDetailsUnion} [customDetails] Fabric specific - * settings. + * Fabric specific settings. */ customDetails?: FabricSpecificDetailsUnion; /** - * @member {HealthError[]} [healthErrorDetails] Fabric health error details. + * Fabric health error details. */ healthErrorDetails?: HealthError[]; /** - * @member {string} [health] Health of fabric. + * Health of fabric. */ health?: string; } /** - * @interface - * An interface representing Fabric. * Fabric definition. - * - * @extends Resource */ export interface Fabric extends Resource { /** - * @member {FabricProperties} [properties] Fabric related data. + * Fabric related data. */ properties?: FabricProperties; } /** - * @interface - * An interface representing FabricCreationInputProperties. - * Properties of site details provided during the time of site creation - * + * Properties of site details provided during the time of site creation. */ export interface FabricCreationInputProperties { /** - * @member {FabricSpecificCreationInputUnion} [customDetails] Fabric provider - * specific creation input. + * Fabric provider specific creation input. */ customDetails?: FabricSpecificCreationInputUnion; } /** - * @interface - * An interface representing FabricCreationInput. - * Site details provided during the time of site creation - * + * Site details provided during the time of site creation. */ export interface FabricCreationInput { /** - * @member {FabricCreationInputProperties} [properties] Fabric creation - * input. + * Fabric creation input. */ properties?: FabricCreationInputProperties; } /** - * @interface - * An interface representing JobEntity. - * This class contains the minimal job details required to navigate to the - * desired drill down. - * + * Query parameter to get fabric. */ -export interface JobEntity { +export interface FabricQueryParameter { /** - * @member {string} [jobId] The job id. + * A value indicating whether the zone to zone mappings are to be returned. */ - jobId?: string; + zoneToZoneMappings?: string; /** - * @member {string} [jobFriendlyName] The job display name. + * A value indicating whether the agent details are to be fetched. */ - jobFriendlyName?: string; + fetchAgentDetails?: string; /** - * @member {string} [targetObjectId] The object id. + * The BIOS Id to be used for fetching agent details. */ - targetObjectId?: string; + biosId?: string; /** - * @member {string} [targetObjectName] The object name. + * The FQDN to be used for fetching agent details. */ - targetObjectName?: string; + fqdn?: string; /** - * @member {string} [targetInstanceType] The workflow affected object type. + * The type of the discovered machine to be used for fetching agent details. */ - targetInstanceType?: string; + discoveryType?: string; /** - * @member {string} [jobScenarioName] The job name. Enum type ScenarioName. + * The OS type to be used for fetching agent details. */ - jobScenarioName?: string; + osType?: string; +} + +/** + * Contains the possible cases for JobTaskDetails. + */ +export type JobTaskDetailsUnion = JobTaskDetails | FabricReplicationGroupTaskDetails | VirtualMachineTaskDetails; + +/** + * This class represents a task which is actually a workflow so that one can navigate to its + * individual drill down. + */ +export interface JobTaskDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "JobTaskDetails"; + /** + * The job entity. + */ + jobTask?: JobEntity; } /** - * @interface - * An interface representing FabricReplicationGroupTaskDetails. * This class represents the fabric replication group task details. - * */ export interface FabricReplicationGroupTaskDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "FabricReplicationGroupTaskDetails"; /** - * @member {string} [skippedReason] The skipped reason. + * The job entity. */ - skippedReason?: string; + jobTask?: JobEntity; /** - * @member {string} [skippedReasonString] The skipped reason string. + * The skipped reason. */ - skippedReasonString?: string; + skippedReason?: string; /** - * @member {JobEntity} [jobTask] The job entity. + * The skipped reason string. */ - jobTask?: JobEntity; + skippedReasonString?: string; } /** - * @interface - * An interface representing FailoverReplicationProtectedItemDetails. * Failover details for a replication protected item. - * */ export interface FailoverReplicationProtectedItemDetails { /** - * @member {string} [name] The name. + * The name. */ name?: string; /** - * @member {string} [friendlyName] The friendly name. + * The friendly name. */ friendlyName?: string; /** - * @member {string} [testVmName] The test Vm name. + * The test Vm name. */ testVmName?: string; /** - * @member {string} [testVmFriendlyName] The test Vm friendly name. + * The test Vm friendly name. */ testVmFriendlyName?: string; /** - * @member {string} [networkConnectionStatus] The network connection status. + * The network connection status. */ networkConnectionStatus?: string; /** - * @member {string} [networkFriendlyName] The network friendly name. + * The network friendly name. */ networkFriendlyName?: string; /** - * @member {string} [subnet] The network subnet. + * The network subnet. */ subnet?: string; /** - * @member {string} [recoveryPointId] The recovery point Id. + * The recovery point Id. */ recoveryPointId?: string; /** - * @member {Date} [recoveryPointTime] The recovery point time. + * The recovery point time. */ recoveryPointTime?: Date; } /** - * @interface - * An interface representing FailoverJobDetails. * This class represents the details for a failover job. - * */ export interface FailoverJobDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "FailoverJobDetails"; /** - * @member {{ [propertyName: string]: string }} [affectedObjectDetails] The - * affected object properties like source server, source cloud, target - * server, target cloud etc. based on the workflow object details. + * The affected object properties like source server, source cloud, target server, target cloud + * etc. based on the workflow object details. */ affectedObjectDetails?: { [propertyName: string]: string }; /** - * @member {FailoverReplicationProtectedItemDetails[]} [protectedItemDetails] * The test VM details. */ protectedItemDetails?: FailoverReplicationProtectedItemDetails[]; } /** - * @interface - * An interface representing FailoverProcessServerRequestProperties. * The properties of the Failover Process Server request. - * */ export interface FailoverProcessServerRequestProperties { /** - * @member {string} [containerName] The container identifier. + * The container identifier. */ containerName?: string; /** - * @member {string} [sourceProcessServerId] The source process server. + * The source process server. */ sourceProcessServerId?: string; /** - * @member {string} [targetProcessServerId] The new process server. + * The new process server. */ targetProcessServerId?: string; /** - * @member {string[]} [vmsToMigrate] The VMS to migrate. + * The VMS to migrate. */ vmsToMigrate?: string[]; /** - * @member {string} [updateType] A value for failover type. It can be - * systemlevel/serverlevel + * A value for failover type. It can be systemlevel/serverlevel. */ updateType?: string; } /** - * @interface - * An interface representing FailoverProcessServerRequest. * Request to failover a process server. - * */ export interface FailoverProcessServerRequest { /** - * @member {FailoverProcessServerRequestProperties} [properties] The - * properties of the PS Failover request. + * The properties of the PS Failover request. */ properties?: FailoverProcessServerRequestProperties; } /** - * @interface - * An interface representing HealthErrorSummary. * class to define the summary of the health error details. - * */ export interface HealthErrorSummary { /** - * @member {string} [summaryCode] The code of the health error. + * The code of the health error. */ summaryCode?: string; /** - * @member {HealthErrorCategory} [category] The category of the health error. - * Possible values include: 'None', 'Replication', 'TestFailover', - * 'Configuration', 'FabricInfrastructure', 'VersionExpiry', - * 'AgentAutoUpdate' + * The category of the health error. Possible values include: 'None', 'Replication', + * 'TestFailover', 'Configuration', 'FabricInfrastructure', 'VersionExpiry', + * 'AgentAutoUpdateInfra', 'AgentAutoUpdateArtifactDeleted', 'AgentAutoUpdateRunAsAccount', + * 'AgentAutoUpdateRunAsAccountExpiry', 'AgentAutoUpdateRunAsAccountExpired' */ category?: HealthErrorCategory; /** - * @member {Severity} [severity] Severity of error. Possible values include: - * 'NONE', 'Warning', 'Error', 'Info' + * Severity of error. Possible values include: 'NONE', 'Warning', 'Error', 'Info' */ severity?: Severity; /** - * @member {string} [summaryMessage] The summary message of the health error. + * The summary message of the health error. */ summaryMessage?: string; /** - * @member {string} [affectedResourceType] The type of affected ARM resource. + * The type of affected ARM resource. */ affectedResourceType?: string; /** - * @member {string} [affectedResourceSubtype] The sub type of any - * subcomponent within the ARM resource that this might be applicable. Value + * The sub type of any subcomponent within the ARM resource that this might be applicable. Value * remains null if not applicable. */ affectedResourceSubtype?: string; /** - * @member {string[]} [affectedResourceCorrelationIds] The list of affected - * resource correlation Ids. This can be used to uniquely identify the count - * of items affected by a specific category and severity as well as count of - * item affected by an specific issue. + * The list of affected resource correlation Ids. This can be used to uniquely identify the count + * of items affected by a specific category and severity as well as count of item affected by an + * specific issue. */ affectedResourceCorrelationIds?: string[]; } /** - * @interface - * An interface representing HyperVReplica2012EventDetails. + * Hyper-V host details. + */ +export interface HyperVHostDetails { + /** + * The Hyper-V host Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The Hyper-V host name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The Mars agent version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly marsAgentVersion?: string; +} + +/** * Model class for event details of a HyperVReplica E2E event. - * */ export interface HyperVReplica2012EventDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplica2012"; /** - * @member {string} [containerName] The container friendly name. + * The container friendly name. */ containerName?: string; /** - * @member {string} [fabricName] The fabric friendly name. + * The fabric friendly name. */ fabricName?: string; /** - * @member {string} [remoteContainerName] The remote container name. + * The remote container name. */ remoteContainerName?: string; /** - * @member {string} [remoteFabricName] The remote fabric name. + * The remote fabric name. */ remoteFabricName?: string; } /** - * @interface - * An interface representing HyperVReplica2012R2EventDetails. * Model class for event details of a HyperVReplica blue E2E event. - * */ export interface HyperVReplica2012R2EventDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplica2012R2"; /** - * @member {string} [containerName] The container friendly name. + * The container friendly name. */ containerName?: string; /** - * @member {string} [fabricName] The fabric friendly name. + * The fabric friendly name. */ fabricName?: string; /** - * @member {string} [remoteContainerName] The remote container name. + * The remote container name. */ remoteContainerName?: string; /** - * @member {string} [remoteFabricName] The remote fabric name. + * The remote fabric name. */ remoteFabricName?: string; } /** - * @interface - * An interface representing HyperVReplicaAzureApplyRecoveryPointInput. * ApplyRecoveryPoint input specific to HyperVReplicaAzure provider. - * */ export interface HyperVReplicaAzureApplyRecoveryPointInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaAzure"; /** - * @member {string} [vaultLocation] The vault location where the recovery Vm - * resides. - */ - vaultLocation?: string; - /** - * @member {string} [primaryKekCertificatePfx] The primary kek certificate - * pfx. + * The primary kek certificate pfx. */ primaryKekCertificatePfx?: string; /** - * @member {string} [secondaryKekCertificatePfx] The secondary kek - * certificate pfx. + * The secondary kek certificate pfx. */ secondaryKekCertificatePfx?: string; } /** - * @interface - * An interface representing HyperVReplicaAzureEnableProtectionInput. - * Azure specific enable protection input. - * + * Disk input details. + */ +export interface HyperVReplicaAzureDiskInputDetails { + /** + * The DiskId. + */ + diskId?: string; + /** + * The LogStorageAccountId. + */ + logStorageAccountId?: string; + /** + * The DiskType. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + */ + diskType?: DiskAccountType; + /** + * The DiskEncryptionSet ARM ID. + */ + diskEncryptionSetId?: string; +} + +/** + * HyperVReplicaAzure specific enable protection input. */ export interface HyperVReplicaAzureEnableProtectionInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaAzure"; /** - * @member {string} [hvHostVmId] The Hyper-V host Vm Id. + * The Hyper-V host VM Id. */ hvHostVmId?: string; /** - * @member {string} [vmName] The Vm Name. + * The VM Name. */ vmName?: string; /** - * @member {string} [osType] The OS type associated with vm. + * The OS type associated with VM. */ osType?: string; /** - * @member {string} [vhdId] The OS disk VHD id associated with vm. + * The OS disk VHD id associated with VM. */ vhdId?: string; /** - * @member {string} [targetStorageAccountId] The storage account name. + * The storage account Id. */ targetStorageAccountId?: string; /** - * @member {string} [targetAzureNetworkId] The selected target Azure network - * Id. + * The selected target Azure network Id. */ targetAzureNetworkId?: string; /** - * @member {string} [targetAzureSubnetId] The selected target Azure subnet - * Id. + * The selected target Azure subnet Id. */ targetAzureSubnetId?: string; /** - * @member {string} [enableRdpOnTargetOption] The selected option to enable - * RDP\SSH on target vm after failover. String value of - * {SrsDataContract.EnableRDPOnTargetOption} enum. + * The selected option to enable RDP\SSH on target vm after failover. String value of + * SrsDataContract.EnableRDPOnTargetOption enum. */ enableRdpOnTargetOption?: string; /** - * @member {string} [targetAzureVmName] The target azure Vm Name. + * The target azure VM Name. */ targetAzureVmName?: string; /** - * @member {string} [logStorageAccountId] The storage account to be used for - * logging during replication. + * The storage account to be used for logging during replication. */ logStorageAccountId?: string; /** - * @member {string[]} [disksToInclude] The list of VHD IDs of disks to be - * protected. + * The list of VHD Ids of disks to be protected. */ disksToInclude?: string[]; /** - * @member {string} [targetAzureV1ResourceGroupId] The Id of the target - * resource group (for classic deployment) in which the failover VM is to be + * The Id of the target resource group (for classic deployment) in which the failover VM is to be * created. */ targetAzureV1ResourceGroupId?: string; /** - * @member {string} [targetAzureV2ResourceGroupId] The Id of the target - * resource group (for resource manager deployment) in which the failover VM + * The Id of the target resource group (for resource manager deployment) in which the failover VM * is to be created. */ targetAzureV2ResourceGroupId?: string; /** - * @member {string} [useManagedDisks] A value indicating whether managed - * disks should be used during failover. + * A value indicating whether managed disks should be used during failover. */ useManagedDisks?: string; + /** + * The target availability set ARM Id for resource manager deployment. + */ + targetAvailabilitySetId?: string; + /** + * The target availability zone. + */ + targetAvailabilityZone?: string; + /** + * License type. Possible values include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' + */ + licenseType?: LicenseType; + /** + * The SQL Server license type. Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + * 'AHUB' + */ + sqlServerLicenseType?: SqlServerLicenseType; + /** + * The target VM size. + */ + targetVmSize?: string; + /** + * The proximity placement group ARM Id. + */ + targetProximityPlacementGroupId?: string; + /** + * A value indicating whether managed disks should be used during replication. + */ + useManagedDisksForReplication?: string; + /** + * The DiskType. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + */ + diskType?: DiskAccountType; + /** + * The disks to include list for managed disks. + */ + disksToIncludeForManagedDisks?: HyperVReplicaAzureDiskInputDetails[]; + /** + * The DiskEncryptionSet ARM Id. + */ + diskEncryptionSetId?: string; + /** + * The target VM tags. + */ + targetVmTags?: { [propertyName: string]: string }; + /** + * The tags for the seed managed disks. + */ + seedManagedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target managed disks. + */ + targetManagedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target NICs. + */ + targetNicTags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing HyperVReplicaAzureEventDetails. * Model class for event details of a HyperVReplica E2A event. - * */ export interface HyperVReplicaAzureEventDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaAzure"; /** - * @member {string} [containerName] The container friendly name. + * The container friendly name. */ containerName?: string; /** - * @member {string} [fabricName] The fabric friendly name. + * The fabric friendly name. */ fabricName?: string; /** - * @member {string} [remoteContainerName] The remote container name. + * The remote container name. */ remoteContainerName?: string; } /** - * @interface - * An interface representing HyperVReplicaAzureFailbackProviderInput. - * HvrA provider specific input for failback. - * + * Contains the possible cases for PlannedFailoverProviderSpecificFailoverInput. + */ +export type PlannedFailoverProviderSpecificFailoverInputUnion = PlannedFailoverProviderSpecificFailoverInput | HyperVReplicaAzureFailbackProviderInput | HyperVReplicaAzurePlannedFailoverProviderInput | InMageRcmFailbackPlannedFailoverProviderInput; + +/** + * Provider specific failover input. + */ +export interface PlannedFailoverProviderSpecificFailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "PlannedFailoverProviderSpecificFailoverInput"; +} + +/** + * HyperVReplicaAzureFailback specific planned failover input. */ export interface HyperVReplicaAzureFailbackProviderInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaAzureFailback"; /** - * @member {string} [dataSyncOption] Data sync option. + * Data sync option. */ dataSyncOption?: string; /** - * @member {string} [recoveryVmCreationOption] ALR options to create - * alternate recovery. + * ALR options to create alternate recovery. */ recoveryVmCreationOption?: string; /** - * @member {string} [providerIdForAlternateRecovery] Provider ID for - * alternate location + * Provider Id for alternate location. */ providerIdForAlternateRecovery?: string; } /** - * @interface - * An interface representing HyperVReplicaAzureFailoverProviderInput. - * HvrA provider specific input for failover. - * + * Hyper-V Managed disk details. */ -export interface HyperVReplicaAzureFailoverProviderInput { +export interface HyperVReplicaAzureManagedDiskDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * The disk Id. */ - instanceType: "HyperVReplicaAzure"; + diskId?: string; + /** + * Seed managed disk Id. + */ + seedManagedDiskId?: string; + /** + * The replica disk type. + */ + replicaDiskType?: string; + /** + * The disk encryption set ARM Id. + */ + diskEncryptionSetId?: string; +} + +/** + * HyperVReplicaAzure specific planned failover input. + */ +export interface HyperVReplicaAzurePlannedFailoverProviderInput { /** - * @member {string} [vaultLocation] Location of the vault. + * Polymorphic Discriminator */ - vaultLocation?: string; + instanceType: "HyperVReplicaAzure"; /** - * @member {string} [primaryKekCertificatePfx] Primary kek certificate pfx. + * Primary kek certificate pfx. */ primaryKekCertificatePfx?: string; /** - * @member {string} [secondaryKekCertificatePfx] Secondary kek certificate - * pfx. + * Secondary kek certificate pfx. */ secondaryKekCertificatePfx?: string; /** - * @member {string} [recoveryPointId] The recovery point id to be passed to - * failover to a particular recovery point. In case of latest recovery point, - * null should be passed. + * The recovery point id to be passed to failover to a particular recovery point. In case of + * latest recovery point, null should be passed. */ recoveryPointId?: string; } /** - * @interface - * An interface representing HyperVReplicaAzurePolicyDetails. * Hyper-V Replica Azure specific protection profile details. - * */ export interface HyperVReplicaAzurePolicyDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaAzure"; /** - * @member {number} [recoveryPointHistoryDurationInHours] The duration (in - * hours) to which point the recovery history needs to be maintained. + * The duration (in hours) to which point the recovery history needs to be maintained. */ recoveryPointHistoryDurationInHours?: number; /** - * @member {number} [applicationConsistentSnapshotFrequencyInHours] The - * interval (in hours) at which Hyper-V Replica should create an application - * consistent snapshot within the VM. + * The interval (in hours) at which Hyper-V Replica should create an application consistent + * snapshot within the VM. */ applicationConsistentSnapshotFrequencyInHours?: number; /** - * @member {number} [replicationInterval] The replication interval. + * The replication interval. */ replicationInterval?: number; /** - * @member {string} [onlineReplicationStartTime] The scheduled start time for - * the initial replication. If this parameter is Null, the initial + * The scheduled start time for the initial replication. If this parameter is Null, the initial * replication starts immediately. */ onlineReplicationStartTime?: string; /** - * @member {string} [encryption] A value indicating whether encryption is - * enabled for virtual machines in this cloud. + * A value indicating whether encryption is enabled for virtual machines in this cloud. */ encryption?: string; /** - * @member {string} [activeStorageAccountId] The active storage account Id. + * The active storage account Id. */ activeStorageAccountId?: string; } /** - * @interface - * An interface representing HyperVReplicaAzurePolicyInput. * Hyper-V Replica Azure specific input for creating a protection profile. - * */ export interface HyperVReplicaAzurePolicyInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaAzure"; /** - * @member {number} [recoveryPointHistoryDuration] The duration (in hours) to - * which point the recovery history needs to be maintained. + * The duration (in hours) to which point the recovery history needs to be maintained. */ recoveryPointHistoryDuration?: number; /** - * @member {number} [applicationConsistentSnapshotFrequencyInHours] The - * interval (in hours) at which Hyper-V Replica should create an application - * consistent snapshot within the VM. + * The interval (in hours) at which Hyper-V Replica should create an application consistent + * snapshot within the VM. */ applicationConsistentSnapshotFrequencyInHours?: number; /** - * @member {number} [replicationInterval] The replication interval. + * The replication interval. */ replicationInterval?: number; /** - * @member {string} [onlineReplicationStartTime] The scheduled start time for - * the initial replication. If this parameter is Null, the initial + * The scheduled start time for the initial replication. If this parameter is Null, the initial * replication starts immediately. */ onlineReplicationStartTime?: string; /** - * @member {string[]} [storageAccounts] The list of storage accounts to which - * the VMs in the primary cloud can replicate to. + * The list of storage accounts to which the VMs in the primary cloud can replicate to. */ storageAccounts?: string[]; } /** - * @interface - * An interface representing InitialReplicationDetails. * Initial replication details. - * */ export interface InitialReplicationDetails { /** - * @member {string} [initialReplicationType] Initial replication type. + * Initial replication type. */ initialReplicationType?: string; /** - * @member {string} [initialReplicationProgressPercentage] The initial - * replication progress percentage. + * The initial replication progress percentage. */ initialReplicationProgressPercentage?: string; } /** - * @interface - * An interface representing OSDetails. * Disk Details. - * */ export interface OSDetails { /** - * @member {string} [osType] VM Disk details. + * VM Disk details. */ osType?: string; /** - * @member {string} [productType] Product type. + * Product type. */ productType?: string; /** - * @member {string} [osEdition] The OSEdition. + * The OSEdition. */ osEdition?: string; /** - * @member {string} [oSVersion] The OS Version. + * The OS Version. */ oSVersion?: string; /** - * @member {string} [oSMajorVersion] The OS Major Version. + * The OS Major Version. */ oSMajorVersion?: string; /** - * @member {string} [oSMinorVersion] The OS Minor Version. + * The OS Minor Version. */ oSMinorVersion?: string; } /** - * @interface - * An interface representing HyperVReplicaAzureReplicationDetails. * Hyper V Replica Azure provider specific settings. - * */ export interface HyperVReplicaAzureReplicationDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaAzure"; /** - * @member {AzureVmDiskDetails[]} [azureVmDiskDetails] Azure VM Disk details. + * Azure VM Disk details. */ azureVmDiskDetails?: AzureVmDiskDetails[]; /** - * @member {string} [recoveryAzureVmName] Recovery Azure given name. + * Recovery Azure given name. */ recoveryAzureVmName?: string; /** - * @member {string} [recoveryAzureVMSize] The Recovery Azure VM size. + * The Recovery Azure VM size. */ recoveryAzureVMSize?: string; /** - * @member {string} [recoveryAzureStorageAccount] The recovery Azure storage - * account. + * The recovery Azure storage account. */ recoveryAzureStorageAccount?: string; /** - * @member {string} [recoveryAzureLogStorageAccountId] The ARM id of the log - * storage account used for replication. This will be set to null if no log + * The ARM id of the log storage account used for replication. This will be set to null if no log * storage account was provided during enable protection. */ recoveryAzureLogStorageAccountId?: string; /** - * @member {Date} [lastReplicatedTime] The Last replication time. + * The Last replication time. */ lastReplicatedTime?: Date; /** - * @member {number} [rpoInSeconds] Last RPO value. + * Last RPO value. */ rpoInSeconds?: number; /** - * @member {Date} [lastRpoCalculatedTime] The last RPO calculated time. + * The last RPO calculated time. */ lastRpoCalculatedTime?: Date; /** - * @member {string} [vmId] The virtual machine Id. + * The virtual machine Id. */ vmId?: string; /** - * @member {string} [vmProtectionState] The protection state for the vm. + * The protection state for the vm. */ vmProtectionState?: string; /** - * @member {string} [vmProtectionStateDescription] The protection state - * description for the vm. + * The protection state description for the vm. */ vmProtectionStateDescription?: string; /** - * @member {InitialReplicationDetails} [initialReplicationDetails] Initial - * replication details. + * Initial replication details. */ initialReplicationDetails?: InitialReplicationDetails; /** - * @member {VMNicDetails[]} [vmNics] The PE Network details. + * The PE Network details. */ vmNics?: VMNicDetails[]; /** - * @member {string} [selectedRecoveryAzureNetworkId] The selected recovery - * azure network Id. + * The selected recovery azure network Id. */ selectedRecoveryAzureNetworkId?: string; /** - * @member {string} [selectedSourceNicId] The selected source nic Id which - * will be used as the primary nic during failover. + * The selected source nic Id which will be used as the primary nic during failover. */ selectedSourceNicId?: string; /** - * @member {string} [encryption] The encryption info. + * The encryption info. */ encryption?: string; /** - * @member {OSDetails} [oSDetails] The operating system info. + * The operating system info. */ oSDetails?: OSDetails; /** - * @member {number} [sourceVmRamSizeInMB] The RAM size of the VM on the - * primary side. + * The RAM size of the VM on the primary side. */ sourceVmRamSizeInMB?: number; /** - * @member {number} [sourceVmCpuCount] The CPU count of the VM on the primary - * side. + * The CPU count of the VM on the primary side. */ sourceVmCpuCount?: number; /** - * @member {string} [enableRdpOnTargetOption] The selected option to enable - * RDP\SSH on target vm after failover. String value of - * {SrsDataContract.EnableRDPOnTargetOption} enum. + * The selected option to enable RDP\SSH on target vm after failover. String value of + * SrsDataContract.EnableRDPOnTargetOption enum. */ enableRdpOnTargetOption?: string; /** - * @member {string} [recoveryAzureResourceGroupId] The target resource group - * Id. + * The target resource group Id. */ recoveryAzureResourceGroupId?: string; /** - * @member {string} [recoveryAvailabilitySetId] The recovery availability set - * Id. + * The recovery availability set Id. */ recoveryAvailabilitySetId?: string; /** - * @member {string} [useManagedDisks] A value indicating whether managed - * disks should be used during failover. + * The target availability zone. + */ + targetAvailabilityZone?: string; + /** + * The target proximity placement group Id. + */ + targetProximityPlacementGroupId?: string; + /** + * A value indicating whether managed disks should be used during failover. */ useManagedDisks?: string; /** - * @member {string} [licenseType] License Type of the VM to be used. + * License Type of the VM to be used. */ licenseType?: string; + /** + * The SQL Server license type. + */ + sqlServerLicenseType?: string; + /** + * The last recovery point received time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastRecoveryPointReceived?: Date; + /** + * The target VM tags. + */ + targetVmTags?: { [propertyName: string]: string }; + /** + * The tags for the seed managed disks. + */ + seedManagedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target managed disks. + */ + targetManagedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target NICs. + */ + targetNicTags?: { [propertyName: string]: string }; + /** + * The list of protected managed disks. + */ + protectedManagedDisks?: HyperVReplicaAzureManagedDiskDetails[]; } /** - * @interface - * An interface representing HyperVReplicaAzureReprotectInput. * Azure specific reprotect input. - * */ export interface HyperVReplicaAzureReprotectInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaAzure"; /** - * @member {string} [hvHostVmId] The Hyper-V host Vm Id. + * The Hyper-V host Vm Id. */ hvHostVmId?: string; /** - * @member {string} [vmName] The Vm Name. + * The Vm Name. */ vmName?: string; /** - * @member {string} [osType] The OS type associated with vm. + * The OS type associated with vm. */ osType?: string; /** - * @member {string} [vHDId] The OS disk VHD id associated with vm. + * The OS disk VHD id associated with vm. */ vHDId?: string; /** - * @member {string} [storageAccountId] The storage account name. + * The storage account name. */ storageAccountId?: string; /** - * @member {string} [logStorageAccountId] The storage account to be used for - * logging during replication. + * The storage account to be used for logging during replication. */ logStorageAccountId?: string; } /** - * @interface - * An interface representing HyperVReplicaAzureUpdateReplicationProtectedItemInput. + * HvrA provider specific input for test failover. + */ +export interface HyperVReplicaAzureTestFailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "HyperVReplicaAzure"; + /** + * Primary kek certificate pfx. + */ + primaryKekCertificatePfx?: string; + /** + * Secondary kek certificate pfx. + */ + secondaryKekCertificatePfx?: string; + /** + * The recovery point id to be passed to test failover to a particular recovery point. In case of + * latest recovery point, null should be passed. + */ + recoveryPointId?: string; +} + +/** + * HvrA provider specific input for unplanned failover. + */ +export interface HyperVReplicaAzureUnplannedFailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "HyperVReplicaAzure"; + /** + * Primary kek certificate pfx. + */ + primaryKekCertificatePfx?: string; + /** + * Secondary kek certificate pfx. + */ + secondaryKekCertificatePfx?: string; + /** + * The recovery point id to be passed to failover to a particular recovery point. In case of + * latest recovery point, null should be passed. + */ + recoveryPointId?: string; +} + +/** * HyperV replica Azure input to update replication protected item. - * */ export interface HyperVReplicaAzureUpdateReplicationProtectedItemInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaAzure"; /** - * @member {string} [recoveryAzureV1ResourceGroupId] The recovery Azure - * resource group Id for classic deployment. + * The recovery Azure resource group Id for classic deployment. */ recoveryAzureV1ResourceGroupId?: string; /** - * @member {string} [recoveryAzureV2ResourceGroupId] The recovery Azure - * resource group Id for resource manager deployment. + * The recovery Azure resource group Id for resource manager deployment. */ recoveryAzureV2ResourceGroupId?: string; /** - * @member {string} [useManagedDisks] A value indicating whether managed - * disks should be used during failover. + * A value indicating whether managed disks should be used during failover. */ useManagedDisks?: string; + /** + * The dictionary of disk resource Id to disk encryption set ARM Id. + */ + diskIdToDiskEncryptionMap?: { [propertyName: string]: string }; + /** + * The target proximity placement group Id. + */ + targetProximityPlacementGroupId?: string; + /** + * The target availability zone. + */ + targetAvailabilityZone?: string; + /** + * The target VM tags. + */ + targetVmTags?: { [propertyName: string]: string }; + /** + * The tags for the target managed disks. + */ + targetManagedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target NICs. + */ + targetNicTags?: { [propertyName: string]: string }; + /** + * The SQL Server license type. Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + * 'AHUB' + */ + sqlServerLicenseType?: SqlServerLicenseType; } /** - * @interface - * An interface representing HyperVReplicaBaseEventDetails. * Abstract model class for event details of a HyperVReplica E2E event. - * */ export interface HyperVReplicaBaseEventDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaBaseEventDetails"; /** - * @member {string} [containerName] The container friendly name. + * The container friendly name. */ containerName?: string; /** - * @member {string} [fabricName] The fabric friendly name. + * The fabric friendly name. */ fabricName?: string; /** - * @member {string} [remoteContainerName] The remote container name. + * The remote container name. */ remoteContainerName?: string; /** - * @member {string} [remoteFabricName] The remote fabric name. + * The remote fabric name. */ remoteFabricName?: string; } /** - * @interface - * An interface representing HyperVReplicaBasePolicyDetails. * Base class for HyperVReplica policy details. - * */ export interface HyperVReplicaBasePolicyDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaBasePolicyDetails"; /** - * @member {number} [recoveryPoints] A value indicating the number of - * recovery points. + * A value indicating the number of recovery points. */ recoveryPoints?: number; /** - * @member {number} [applicationConsistentSnapshotFrequencyInHours] A value - * indicating the application consistent frequency. + * A value indicating the application consistent frequency. */ applicationConsistentSnapshotFrequencyInHours?: number; /** - * @member {string} [compression] A value indicating whether compression has - * to be enabled. + * A value indicating whether compression has to be enabled. */ compression?: string; /** - * @member {string} [initialReplicationMethod] A value indicating whether IR - * is online. + * A value indicating whether IR is online. */ initialReplicationMethod?: string; /** - * @member {string} [onlineReplicationStartTime] A value indicating the - * online IR start time. + * A value indicating the online IR start time. */ onlineReplicationStartTime?: string; /** - * @member {string} [offlineReplicationImportPath] A value indicating the - * offline IR import path. + * A value indicating the offline IR import path. */ offlineReplicationImportPath?: string; /** - * @member {string} [offlineReplicationExportPath] A value indicating the - * offline IR export path. + * A value indicating the offline IR export path. */ offlineReplicationExportPath?: string; /** - * @member {number} [replicationPort] A value indicating the recovery HTTPS - * port. + * A value indicating the recovery HTTPS port. */ replicationPort?: number; /** - * @member {number} [allowedAuthenticationType] A value indicating the - * authentication type. + * A value indicating the authentication type. */ allowedAuthenticationType?: number; /** - * @member {string} [replicaDeletionOption] A value indicating whether the VM - * has to be auto deleted. Supported Values: String.Empty, None, - * OnRecoveryCloud + * A value indicating whether the VM has to be auto deleted. Supported Values: String.Empty, + * None, OnRecoveryCloud. */ replicaDeletionOption?: string; } /** - * @interface - * An interface representing HyperVReplicaBaseReplicationDetails. * Hyper V replica provider specific settings base class. - * */ export interface HyperVReplicaBaseReplicationDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplicaBaseReplicationDetails"; /** - * @member {Date} [lastReplicatedTime] The Last replication time. + * The Last replication time. */ lastReplicatedTime?: Date; /** - * @member {VMNicDetails[]} [vmNics] The PE Network details. + * The PE Network details. */ vmNics?: VMNicDetails[]; /** - * @member {string} [vmId] The virtual machine Id. + * The virtual machine Id. */ vmId?: string; /** - * @member {string} [vmProtectionState] The protection state for the vm. + * The protection state for the vm. */ vmProtectionState?: string; /** - * @member {string} [vmProtectionStateDescription] The protection state - * description for the vm. + * The protection state description for the vm. */ vmProtectionStateDescription?: string; /** - * @member {InitialReplicationDetails} [initialReplicationDetails] Initial - * replication details. + * Initial replication details. */ initialReplicationDetails?: InitialReplicationDetails; /** - * @member {DiskDetails[]} [vMDiskDetails] VM disk details. + * VM disk details. */ vMDiskDetails?: DiskDetails[]; } /** - * @interface - * An interface representing HyperVReplicaBluePolicyDetails. * Hyper-V Replica Blue specific protection profile details. - * */ export interface HyperVReplicaBluePolicyDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplica2012R2"; /** - * @member {number} [replicationFrequencyInSeconds] A value indicating the - * replication interval. + * A value indicating the replication interval. */ replicationFrequencyInSeconds?: number; /** - * @member {number} [recoveryPoints] A value indicating the number of - * recovery points. + * A value indicating the number of recovery points. */ recoveryPoints?: number; /** - * @member {number} [applicationConsistentSnapshotFrequencyInHours] A value - * indicating the application consistent frequency. + * A value indicating the application consistent frequency. */ applicationConsistentSnapshotFrequencyInHours?: number; /** - * @member {string} [compression] A value indicating whether compression has - * to be enabled. + * A value indicating whether compression has to be enabled. */ compression?: string; /** - * @member {string} [initialReplicationMethod] A value indicating whether IR - * is online. + * A value indicating whether IR is online. */ initialReplicationMethod?: string; /** - * @member {string} [onlineReplicationStartTime] A value indicating the - * online IR start time. + * A value indicating the online IR start time. */ onlineReplicationStartTime?: string; /** - * @member {string} [offlineReplicationImportPath] A value indicating the - * offline IR import path. + * A value indicating the offline IR import path. */ offlineReplicationImportPath?: string; /** - * @member {string} [offlineReplicationExportPath] A value indicating the - * offline IR export path. + * A value indicating the offline IR export path. */ offlineReplicationExportPath?: string; /** - * @member {number} [replicationPort] A value indicating the recovery HTTPS - * port. + * A value indicating the recovery HTTPS port. */ replicationPort?: number; /** - * @member {number} [allowedAuthenticationType] A value indicating the - * authentication type. + * A value indicating the authentication type. */ allowedAuthenticationType?: number; /** - * @member {string} [replicaDeletionOption] A value indicating whether the VM - * has to be auto deleted. Supported Values: String.Empty, None, - * OnRecoveryCloud + * A value indicating whether the VM has to be auto deleted. Supported Values: String.Empty, + * None, OnRecoveryCloud */ replicaDeletionOption?: string; } /** - * @interface - * An interface representing HyperVReplicaBluePolicyInput. - * HyperV Replica Blue policy input. - * + * Contains the possible cases for HyperVReplicaPolicyInput. */ -export interface HyperVReplicaBluePolicyInput { - /** - * @member {string} instanceType Polymorphic Discriminator - */ - instanceType: "HyperVReplica2012R2"; +export type HyperVReplicaPolicyInputUnion = HyperVReplicaPolicyInput | HyperVReplicaBluePolicyInput; + +/** + * Hyper-V Replica specific policy Input. + */ +export interface HyperVReplicaPolicyInput { /** - * @member {number} [replicationFrequencyInSeconds] A value indicating the - * replication interval. + * Polymorphic Discriminator */ - replicationFrequencyInSeconds?: number; + instanceType: "HyperVReplica2012"; /** - * @member {number} [recoveryPoints] A value indicating the number of - * recovery points. + * A value indicating the number of recovery points. */ recoveryPoints?: number; /** - * @member {number} [applicationConsistentSnapshotFrequencyInHours] A value - * indicating the application consistent frequency. + * A value indicating the application consistent frequency. */ applicationConsistentSnapshotFrequencyInHours?: number; /** - * @member {string} [compression] A value indicating whether compression has - * to be enabled. + * A value indicating whether compression has to be enabled. */ compression?: string; /** - * @member {string} [initialReplicationMethod] A value indicating whether IR - * is online. + * A value indicating whether IR is online. */ initialReplicationMethod?: string; /** - * @member {string} [onlineReplicationStartTime] A value indicating the - * online IR start time. + * A value indicating the online IR start time. */ onlineReplicationStartTime?: string; /** - * @member {string} [offlineReplicationImportPath] A value indicating the - * offline IR import path. + * A value indicating the offline IR import path. */ offlineReplicationImportPath?: string; /** - * @member {string} [offlineReplicationExportPath] A value indicating the - * offline IR export path. + * A value indicating the offline IR export path. */ offlineReplicationExportPath?: string; /** - * @member {number} [replicationPort] A value indicating the recovery HTTPS - * port. + * A value indicating the recovery HTTPS port. */ replicationPort?: number; /** - * @member {number} [allowedAuthenticationType] A value indicating the - * authentication type. + * A value indicating the authentication type. */ allowedAuthenticationType?: number; /** - * @member {string} [replicaDeletion] A value indicating whether the VM has - * to be auto deleted. + * A value indicating whether the VM has to be auto deleted. */ replicaDeletion?: string; } /** - * @interface - * An interface representing HyperVReplicaBlueReplicationDetails. - * HyperV replica 2012 R2 (Blue) replication details. - * + * HyperV Replica Blue policy input. */ -export interface HyperVReplicaBlueReplicationDetails { +export interface HyperVReplicaBluePolicyInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplica2012R2"; /** - * @member {Date} [lastReplicatedTime] The Last replication time. + * A value indicating the number of recovery points. */ - lastReplicatedTime?: Date; + recoveryPoints?: number; /** - * @member {VMNicDetails[]} [vmNics] The PE Network details. + * A value indicating the application consistent frequency. */ - vmNics?: VMNicDetails[]; + applicationConsistentSnapshotFrequencyInHours?: number; /** - * @member {string} [vmId] The virtual machine Id. + * A value indicating whether compression has to be enabled. */ - vmId?: string; + compression?: string; /** - * @member {string} [vmProtectionState] The protection state for the vm. + * A value indicating whether IR is online. */ - vmProtectionState?: string; + initialReplicationMethod?: string; /** - * @member {string} [vmProtectionStateDescription] The protection state - * description for the vm. + * A value indicating the online IR start time. */ - vmProtectionStateDescription?: string; + onlineReplicationStartTime?: string; /** - * @member {InitialReplicationDetails} [initialReplicationDetails] Initial - * replication details. + * A value indicating the offline IR import path. */ - initialReplicationDetails?: InitialReplicationDetails; + offlineReplicationImportPath?: string; /** - * @member {DiskDetails[]} [vMDiskDetails] VM disk details. + * A value indicating the offline IR export path. */ - vMDiskDetails?: DiskDetails[]; -} - -/** - * @interface - * An interface representing HyperVReplicaPolicyDetails. - * Hyper-V Replica Blue specific protection profile details. - * - */ -export interface HyperVReplicaPolicyDetails { + offlineReplicationExportPath?: string; /** - * @member {string} instanceType Polymorphic Discriminator + * A value indicating the recovery HTTPS port. */ - instanceType: "HyperVReplica2012"; + replicationPort?: number; /** - * @member {number} [recoveryPoints] A value indicating the number of - * recovery points. + * A value indicating the authentication type. */ - recoveryPoints?: number; + allowedAuthenticationType?: number; /** - * @member {number} [applicationConsistentSnapshotFrequencyInHours] A value - * indicating the application consistent frequency. + * A value indicating whether the VM has to be auto deleted. */ - applicationConsistentSnapshotFrequencyInHours?: number; + replicaDeletion?: string; /** - * @member {string} [compression] A value indicating whether compression has - * to be enabled. + * A value indicating the replication interval. */ - compression?: string; + replicationFrequencyInSeconds?: number; +} + +/** + * HyperV replica 2012 R2 (Blue) replication details. + */ +export interface HyperVReplicaBlueReplicationDetails { /** - * @member {string} [initialReplicationMethod] A value indicating whether IR - * is online. + * Polymorphic Discriminator */ - initialReplicationMethod?: string; + instanceType: "HyperVReplica2012R2"; /** - * @member {string} [onlineReplicationStartTime] A value indicating the - * online IR start time. + * The Last replication time. */ - onlineReplicationStartTime?: string; + lastReplicatedTime?: Date; /** - * @member {string} [offlineReplicationImportPath] A value indicating the - * offline IR import path. + * The PE Network details. */ - offlineReplicationImportPath?: string; + vmNics?: VMNicDetails[]; /** - * @member {string} [offlineReplicationExportPath] A value indicating the - * offline IR export path. + * The virtual machine Id. */ - offlineReplicationExportPath?: string; + vmId?: string; /** - * @member {number} [replicationPort] A value indicating the recovery HTTPS - * port. + * The protection state for the vm. */ - replicationPort?: number; + vmProtectionState?: string; /** - * @member {number} [allowedAuthenticationType] A value indicating the - * authentication type. + * The protection state description for the vm. */ - allowedAuthenticationType?: number; + vmProtectionStateDescription?: string; /** - * @member {string} [replicaDeletionOption] A value indicating whether the VM - * has to be auto deleted. Supported Values: String.Empty, None, - * OnRecoveryCloud + * Initial replication details. */ - replicaDeletionOption?: string; + initialReplicationDetails?: InitialReplicationDetails; + /** + * VM disk details. + */ + vMDiskDetails?: DiskDetails[]; } /** - * @interface - * An interface representing HyperVReplicaPolicyInput. - * Hyper-V Replica specific policy Input. - * + * Hyper-V Replica Blue specific protection profile details. */ -export interface HyperVReplicaPolicyInput { +export interface HyperVReplicaPolicyDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplica2012"; /** - * @member {number} [recoveryPoints] A value indicating the number of - * recovery points. + * A value indicating the number of recovery points. */ recoveryPoints?: number; /** - * @member {number} [applicationConsistentSnapshotFrequencyInHours] A value - * indicating the application consistent frequency. + * A value indicating the application consistent frequency. */ applicationConsistentSnapshotFrequencyInHours?: number; /** - * @member {string} [compression] A value indicating whether compression has - * to be enabled. + * A value indicating whether compression has to be enabled. */ compression?: string; /** - * @member {string} [initialReplicationMethod] A value indicating whether IR - * is online. + * A value indicating whether IR is online. */ initialReplicationMethod?: string; /** - * @member {string} [onlineReplicationStartTime] A value indicating the - * online IR start time. + * A value indicating the online IR start time. */ onlineReplicationStartTime?: string; /** - * @member {string} [offlineReplicationImportPath] A value indicating the - * offline IR import path. + * A value indicating the offline IR import path. */ offlineReplicationImportPath?: string; /** - * @member {string} [offlineReplicationExportPath] A value indicating the - * offline IR export path. + * A value indicating the offline IR export path. */ offlineReplicationExportPath?: string; /** - * @member {number} [replicationPort] A value indicating the recovery HTTPS - * port. + * A value indicating the recovery HTTPS port. */ replicationPort?: number; /** - * @member {number} [allowedAuthenticationType] A value indicating the - * authentication type. + * A value indicating the authentication type. */ allowedAuthenticationType?: number; /** - * @member {string} [replicaDeletion] A value indicating whether the VM has - * to be auto deleted. + * A value indicating whether the VM has to be auto deleted. Supported Values: String.Empty, + * None, OnRecoveryCloud */ - replicaDeletion?: string; + replicaDeletionOption?: string; } /** - * @interface - * An interface representing HyperVReplicaReplicationDetails. * HyperV replica 2012 replication details. - * */ export interface HyperVReplicaReplicationDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVReplica2012"; /** - * @member {Date} [lastReplicatedTime] The Last replication time. + * The Last replication time. */ lastReplicatedTime?: Date; /** - * @member {VMNicDetails[]} [vmNics] The PE Network details. + * The PE Network details. */ vmNics?: VMNicDetails[]; /** - * @member {string} [vmId] The virtual machine Id. + * The virtual machine Id. */ vmId?: string; /** - * @member {string} [vmProtectionState] The protection state for the vm. + * The protection state for the vm. */ vmProtectionState?: string; /** - * @member {string} [vmProtectionStateDescription] The protection state - * description for the vm. + * The protection state description for the vm. */ vmProtectionStateDescription?: string; /** - * @member {InitialReplicationDetails} [initialReplicationDetails] Initial - * replication details. + * Initial replication details. */ initialReplicationDetails?: InitialReplicationDetails; /** - * @member {DiskDetails[]} [vMDiskDetails] VM disk details. + * VM disk details. */ vMDiskDetails?: DiskDetails[]; } /** - * @interface - * An interface representing HyperVSiteDetails. * HyperVSite fabric specific details. - * */ export interface HyperVSiteDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVSite"; + /** + * The list of Hyper-V hosts associated with the fabric. + */ + hyperVHosts?: HyperVHostDetails[]; } /** - * @interface - * An interface representing HyperVVirtualMachineDetails. + * Contains the possible cases for HyperVVirtualMachineDetails. + */ +export type HyperVVirtualMachineDetailsUnion = HyperVVirtualMachineDetails | VmmVirtualMachineDetails; + +/** * Single Host fabric provider specific VM settings. - * */ export interface HyperVVirtualMachineDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "HyperVVirtualMachine"; /** - * @member {string} [sourceItemId] The source id of the object. + * The source id of the object. */ sourceItemId?: string; /** - * @member {string} [generation] The id of the object in fabric. + * The id of the object in fabric. */ generation?: string; /** - * @member {OSDetails} [osDetails] The Last replication time. + * The Last replication time. */ osDetails?: OSDetails; /** - * @member {DiskDetails[]} [diskDetails] The Last successful failover time. + * The Last successful failover time. */ diskDetails?: DiskDetails[]; /** - * @member {PresenceStatus} [hasPhysicalDisk] A value indicating whether the - * VM has a physical disk attached. String value of - * {SrsDataContract.PresenceStatus} enum. Possible values include: 'Unknown', - * 'Present', 'NotPresent' + * A value indicating whether the VM has a physical disk attached. String value of + * SrsDataContract.PresenceStatus enum. Possible values include: 'Unknown', 'Present', + * 'NotPresent' */ hasPhysicalDisk?: PresenceStatus; /** - * @member {PresenceStatus} [hasFibreChannelAdapter] A value indicating - * whether the VM has a fibre channel adapter attached. String value of - * {SrsDataContract.PresenceStatus} enum. Possible values include: 'Unknown', - * 'Present', 'NotPresent' + * A value indicating whether the VM has a fibre channel adapter attached. String value of + * SrsDataContract.PresenceStatus enum. Possible values include: 'Unknown', 'Present', + * 'NotPresent' */ hasFibreChannelAdapter?: PresenceStatus; /** - * @member {PresenceStatus} [hasSharedVhd] A value indicating whether the VM - * has a shared VHD attached. String value of - * {SrsDataContract.PresenceStatus} enum. Possible values include: 'Unknown', - * 'Present', 'NotPresent' + * A value indicating whether the VM has a shared VHD attached. String value of + * SrsDataContract.PresenceStatus enum. Possible values include: 'Unknown', 'Present', + * 'NotPresent' */ hasSharedVhd?: PresenceStatus; } /** - * @interface - * An interface representing IdentityInformation. - * Identity details. - * + * Identity provider details. */ -export interface IdentityInformation { - /** - * @member {IdentityProviderType} [identityProviderType] The identity - * provider type. Value is the ToString() of a IdentityProviderType value. - * Possible values include: 'RecoveryServicesActiveDirectory' - */ - identityProviderType?: IdentityProviderType; +export interface IdentityProviderDetails { /** - * @member {string} [tenantId] The tenant Id for the service principal with - * which the on-premise management/data plane components would communicate - * with our Azure services. + * The tenant Id for the service principal with which the on-premise management/data plane + * components would communicate with our Azure services. */ tenantId?: string; /** - * @member {string} [applicationId] The application/client Id for the service - * principal with which the on-premise management/data plane components would - * communicate with our Azure services. + * The application/client Id for the service principal with which the on-premise management/data + * plane components would communicate with our Azure services. */ applicationId?: string; /** - * @member {string} [objectId] The object Id of the service principal with - * which the on-premise management/data plane components would communicate - * with our Azure services. + * The object Id of the service principal with which the on-premise management/data plane + * components would communicate with our Azure services. */ objectId?: string; /** - * @member {string} [audience] The intended Audience of the service principal - * with which the on-premise management/data plane components would - * communicate with our Azure services. + * The intended Audience of the service principal with which the on-premise management/data plane + * components would communicate with our Azure services. */ audience?: string; /** - * @member {string} [aadAuthority] The base authority for Azure Active - * Directory authentication. + * The base authority for Azure Active Directory authentication. */ aadAuthority?: string; - /** - * @member {string} [certificateThumbprint] The certificate thumbprint. - * Applicable only if IdentityProviderType is - * RecoveryServicesActiveDirectory. - */ - certificateThumbprint?: string; } /** - * @interface - * An interface representing InlineWorkflowTaskDetails. * This class represents the inline workflow task details. - * */ export interface InlineWorkflowTaskDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InlineWorkflowTaskDetails"; /** - * @member {ASRTask[]} [childTasks] The child tasks. + * The child tasks. */ childTasks?: ASRTask[]; /** - * @member {string[]} [workflowIds] The list of child workflow ids. + * The list of child workflow ids. */ workflowIds?: string[]; } /** - * @interface - * An interface representing InMageAgentDetails. * The details of the InMage agent. - * */ export interface InMageAgentDetails { /** - * @member {string} [agentVersion] The agent version. + * The agent version. */ agentVersion?: string; /** - * @member {string} [agentUpdateStatus] A value indicating whether installed - * agent needs to be updated. + * A value indicating whether installed agent needs to be updated. */ agentUpdateStatus?: string; /** - * @member {string} [postUpdateRebootStatus] A value indicating whether - * reboot is required after update is applied. + * A value indicating whether reboot is required after update is applied. */ postUpdateRebootStatus?: string; /** - * @member {Date} [agentExpiryDate] Agent expiry date. + * Agent expiry date. */ agentExpiryDate?: Date; } /** - * @interface - * An interface representing InMageAgentVersionDetails. - * InMage agent version details. - * + * ApplyRecoveryPoint input specific to InMageAzureV2 provider. */ -export interface InMageAgentVersionDetails { - /** - * @member {string} [postUpdateRebootStatus] A value indicating whether - * reboot is required after update is applied. - */ - postUpdateRebootStatus?: string; - /** - * @member {string} [version] The agent version. - */ - version?: string; - /** - * @member {Date} [expiryDate] Version expiry date. - */ - expiryDate?: Date; +export interface InMageAzureV2ApplyRecoveryPointInput { /** - * @member {AgentVersionStatus} [status] A value indicating whether security - * update required. Possible values include: 'Supported', 'NotSupported', - * 'Deprecated', 'UpdateRequired', 'SecurityUpdateRequired' + * Polymorphic Discriminator */ - status?: AgentVersionStatus; + instanceType: "InMageAzureV2"; } /** - * @interface - * An interface representing InMageAzureV2ApplyRecoveryPointInput. - * ApplyRecoveryPoint input specific to InMageAzureV2 provider. - * + * Disk input details. */ -export interface InMageAzureV2ApplyRecoveryPointInput { +export interface InMageAzureV2DiskInputDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * The DiskId. */ - instanceType: "InMageAzureV2"; + diskId?: string; + /** + * The LogStorageAccountId. + */ + logStorageAccountId?: string; + /** + * The DiskType. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + */ + diskType?: DiskAccountType; /** - * @member {string} [vaultLocation] The vault location where the recovery Vm - * resides. + * The DiskEncryptionSet ARM ID. */ - vaultLocation?: string; + diskEncryptionSetId?: string; } /** - * @interface - * An interface representing InMageAzureV2EnableProtectionInput. * VMware Azure specific enable protection input. - * */ export interface InMageAzureV2EnableProtectionInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMageAzureV2"; /** - * @member {string} [masterTargetId] The Master target Id. + * The Master target Id. */ masterTargetId?: string; /** - * @member {string} [processServerId] The Process Server Id. + * The Process Server Id. */ processServerId?: string; /** - * @member {string} storageAccountId The storage account name. + * The storage account Id. */ - storageAccountId: string; + storageAccountId?: string; /** - * @member {string} [runAsAccountId] The CS account Id. + * The CS account Id. */ runAsAccountId?: string; /** - * @member {string} [multiVmGroupId] The multi vm group Id. + * The multi VM group Id. */ multiVmGroupId?: string; /** - * @member {string} [multiVmGroupName] The multi vm group name. + * The multi VM group name. */ multiVmGroupName?: string; /** - * @member {string[]} [disksToInclude] The disks to include list. + * The disks to include list. */ - disksToInclude?: string[]; + disksToInclude?: InMageAzureV2DiskInputDetails[]; /** - * @member {string} [targetAzureNetworkId] The selected target Azure network - * Id. + * The selected target Azure network Id. */ targetAzureNetworkId?: string; /** - * @member {string} [targetAzureSubnetId] The selected target Azure subnet - * Id. + * The selected target Azure subnet Id. */ targetAzureSubnetId?: string; /** - * @member {string} [enableRdpOnTargetOption] The selected option to enable - * RDP\SSH on target vm after failover. String value of - * {SrsDataContract.EnableRDPOnTargetOption} enum. + * The selected option to enable RDP\SSH on target VM after failover. String value of + * SrsDataContract.EnableRDPOnTargetOption enum. */ enableRdpOnTargetOption?: string; /** - * @member {string} [targetAzureVmName] The target azure Vm Name. + * The target azure VM Name. */ targetAzureVmName?: string; /** - * @member {string} [logStorageAccountId] The storage account to be used for - * logging during replication. + * The storage account to be used for logging during replication. */ logStorageAccountId?: string; /** - * @member {string} [targetAzureV1ResourceGroupId] The Id of the target - * resource group (for classic deployment) in which the failover VM is to be + * The Id of the target resource group (for classic deployment) in which the failover VM is to be * created. */ targetAzureV1ResourceGroupId?: string; /** - * @member {string} [targetAzureV2ResourceGroupId] The Id of the target - * resource group (for resource manager deployment) in which the failover VM + * The Id of the target resource group (for resource manager deployment) in which the failover VM * is to be created. */ targetAzureV2ResourceGroupId?: string; /** - * @member {string} [useManagedDisks] A value indicating whether managed - * disks should be used during failover. + * The DiskType. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' */ - useManagedDisks?: string; + diskType?: DiskAccountType; + /** + * The target availability set ARM Id for resource manager deployment. + */ + targetAvailabilitySetId?: string; + /** + * The target availability zone. + */ + targetAvailabilityZone?: string; + /** + * The proximity placement group ARM Id. + */ + targetProximityPlacementGroupId?: string; + /** + * License type. Possible values include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' + */ + licenseType?: LicenseType; + /** + * The SQL Server license type. Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + * 'AHUB' + */ + sqlServerLicenseType?: SqlServerLicenseType; + /** + * The target VM size. + */ + targetVmSize?: string; + /** + * The DiskEncryptionSet ARM Id. + */ + diskEncryptionSetId?: string; + /** + * The target VM tags. + */ + targetVmTags?: { [propertyName: string]: string }; + /** + * The tags for the seed managed disks. + */ + seedManagedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target managed disks. + */ + targetManagedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target NICs. + */ + targetNicTags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing InMageAzureV2EventDetails. * Model class for event details of a VMwareAzureV2 event. - * */ export interface InMageAzureV2EventDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMageAzureV2"; /** - * @member {string} [eventType] InMage Event type. Takes one of the values of - * {InMageDataContract.InMageMonitoringEventType}. + * InMage Event type. Takes one of the values of InMageDataContract.InMageMonitoringEventType. */ eventType?: string; /** - * @member {string} [category] InMage Event Category. + * InMage Event Category. */ category?: string; /** - * @member {string} [component] InMage Event Component. + * InMage Event Component. */ component?: string; /** - * @member {string} [correctiveAction] Corrective Action string for the - * event. + * Corrective Action string for the event. */ correctiveAction?: string; /** - * @member {string} [details] InMage Event Details. + * InMage Event Details. */ details?: string; /** - * @member {string} [summary] InMage Event Summary. + * InMage Event Summary. */ summary?: string; /** - * @member {string} [siteName] VMware Site name. + * VMware Site name. */ siteName?: string; } /** - * @interface - * An interface representing InMageAzureV2FailoverProviderInput. - * InMageAzureV2 provider specific input for failover. - * + * InMageAzureV2 Managed disk details. */ -export interface InMageAzureV2FailoverProviderInput { +export interface InMageAzureV2ManagedDiskDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * The disk id. */ - instanceType: "InMageAzureV2"; + diskId?: string; /** - * @member {string} [vaultLocation] Location of the vault. + * Seed managed disk Id. */ - vaultLocation?: string; + seedManagedDiskId?: string; /** - * @member {string} [recoveryPointId] The recovery point id to be passed to - * failover to a particular recovery point. In case of latest recovery point, - * null should be passed. + * The replica disk type. */ - recoveryPointId?: string; + replicaDiskType?: string; + /** + * The DiskEncryptionSet ARM ID. + */ + diskEncryptionSetId?: string; } /** - * @interface - * An interface representing InMageAzureV2PolicyDetails. * InMage Azure v2 specific protection profile details. - * */ export interface InMageAzureV2PolicyDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMageAzureV2"; /** - * @member {number} [crashConsistentFrequencyInMinutes] The crash consistent - * snapshot frequency in minutes. + * The crash consistent snapshot frequency in minutes. */ crashConsistentFrequencyInMinutes?: number; /** - * @member {number} [recoveryPointThresholdInMinutes] The recovery point - * threshold in minutes. + * The recovery point threshold in minutes. */ recoveryPointThresholdInMinutes?: number; /** - * @member {number} [recoveryPointHistory] The duration in minutes until - * which the recovery points need to be stored. + * The duration in minutes until which the recovery points need to be stored. */ recoveryPointHistory?: number; /** - * @member {number} [appConsistentFrequencyInMinutes] The app consistent - * snapshot frequency in minutes. + * The app consistent snapshot frequency in minutes. */ appConsistentFrequencyInMinutes?: number; /** - * @member {string} [multiVmSyncStatus] A value indicating whether multi-VM - * sync has to be enabled. + * A value indicating whether multi-VM sync has to be enabled. */ multiVmSyncStatus?: string; } /** - * @interface - * An interface representing InMageAzureV2PolicyInput. * VMWare Azure specific policy Input. - * */ export interface InMageAzureV2PolicyInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMageAzureV2"; /** - * @member {number} [recoveryPointThresholdInMinutes] The recovery point - * threshold in minutes. + * The recovery point threshold in minutes. */ recoveryPointThresholdInMinutes?: number; /** - * @member {number} [recoveryPointHistory] The duration in minutes until - * which the recovery points need to be stored. + * The duration in minutes until which the recovery points need to be stored. */ recoveryPointHistory?: number; /** - * @member {number} [crashConsistentFrequencyInMinutes] The crash consistent - * snapshot frequency (in minutes). + * The crash consistent snapshot frequency (in minutes). */ crashConsistentFrequencyInMinutes?: number; /** - * @member {number} [appConsistentFrequencyInMinutes] The app consistent - * snapshot frequency (in minutes). + * The app consistent snapshot frequency (in minutes). */ appConsistentFrequencyInMinutes?: number; /** - * @member {SetMultiVmSyncStatus} multiVmSyncStatus A value indicating - * whether multi-VM sync has to be enabled. Value should be 'Enabled' or + * A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or * 'Disabled'. Possible values include: 'Enable', 'Disable' */ multiVmSyncStatus: SetMultiVmSyncStatus; } /** - * @interface - * An interface representing InMageAzureV2ProtectedDiskDetails. * InMageAzureV2 protected disk details. - * */ export interface InMageAzureV2ProtectedDiskDetails { /** - * @member {string} [diskId] The disk id. + * The disk id. */ diskId?: string; /** - * @member {string} [diskName] The disk name. + * The disk name. */ diskName?: string; /** - * @member {string} [protectionStage] The protection stage. + * The protection stage. */ protectionStage?: string; /** - * @member {string} [healthErrorCode] The health error code for the disk. + * The health error code for the disk. */ healthErrorCode?: string; /** - * @member {number} [rpoInSeconds] The RPO in seconds. + * The RPO in seconds. */ rpoInSeconds?: number; /** - * @member {string} [resyncRequired] A value indicating whether resync is - * required for this disk. + * A value indicating whether resync is required for this disk. */ resyncRequired?: string; /** - * @member {number} [resyncProgressPercentage] The resync progress - * percentage. + * The resync progress percentage. */ resyncProgressPercentage?: number; /** - * @member {number} [resyncDurationInSeconds] The resync duration in seconds. + * The resync duration in seconds. */ resyncDurationInSeconds?: number; /** - * @member {number} [diskCapacityInBytes] The disk capacity in bytes. + * The disk capacity in bytes. */ diskCapacityInBytes?: number; /** - * @member {number} [fileSystemCapacityInBytes] The disk file system capacity - * in bytes. + * The disk file system capacity in bytes. */ fileSystemCapacityInBytes?: number; /** - * @member {number} [sourceDataInMegaBytes] The source data transit in MB. + * The source data transit in MB. */ sourceDataInMegaBytes?: number; /** - * @member {number} [psDataInMegaBytes] The PS data transit in MB. + * The PS data transit in MB. */ psDataInMegaBytes?: number; /** - * @member {number} [targetDataInMegaBytes] The target data transit in MB. + * The target data transit in MB. */ targetDataInMegaBytes?: number; /** - * @member {string} [diskResized] A value indicating whether disk is resized. + * A value indicating whether disk is resized. */ diskResized?: string; /** - * @member {Date} [lastRpoCalculatedTime] The last RPO calculated time. + * The last RPO calculated time. */ lastRpoCalculatedTime?: Date; + /** + * The resync processed bytes. + */ + resyncProcessedBytes?: number; + /** + * The resync total transferred bytes. + */ + resyncTotalTransferredBytes?: number; + /** + * The resync last 15 minutes transferred bytes. + */ + resyncLast15MinutesTransferredBytes?: number; + /** + * The last data transfer time in UTC. + */ + resyncLastDataTransferTimeUTC?: Date; + /** + * The resync start time. + */ + resyncStartTime?: Date; + /** + * The Progress Health. + */ + progressHealth?: string; + /** + * The Progress Status. + */ + progressStatus?: string; } /** - * @interface - * An interface representing InMageAzureV2RecoveryPointDetails. * InMage Azure V2 provider specific recovery point details. - * */ export interface InMageAzureV2RecoveryPointDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMageAzureV2"; /** - * @member {string} [isMultiVmSyncPoint] A value indicating whether the - * recovery point is multi VM consistent. + * A value indicating whether the recovery point is multi VM consistent. */ isMultiVmSyncPoint?: string; } /** - * @interface - * An interface representing InMageAzureV2ReplicationDetails. - * InMageAzureV2 provider specific settings - * + * InMageAzureV2 provider specific settings. */ export interface InMageAzureV2ReplicationDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMageAzureV2"; /** - * @member {string} [infrastructureVmId] The infrastructure VM Id. + * The infrastructure VM Id. */ infrastructureVmId?: string; /** - * @member {string} [vCenterInfrastructureId] The vCenter infrastructure Id. + * The vCenter infrastructure Id. */ vCenterInfrastructureId?: string; /** - * @member {string} [protectionStage] The protection stage. + * The protection stage. */ protectionStage?: string; /** - * @member {string} [vmId] The virtual machine Id. + * The virtual machine Id. */ vmId?: string; /** - * @member {string} [vmProtectionState] The protection state for the vm. + * The protection state for the vm. */ vmProtectionState?: string; /** - * @member {string} [vmProtectionStateDescription] The protection state - * description for the vm. + * The protection state description for the vm. */ vmProtectionStateDescription?: string; /** - * @member {number} [resyncProgressPercentage] The resync progress - * percentage. + * The resync progress percentage. */ resyncProgressPercentage?: number; /** - * @member {number} [rpoInSeconds] The RPO in seconds. + * The RPO in seconds. */ rpoInSeconds?: number; /** - * @member {number} [compressedDataRateInMB] The compressed data change rate - * in MB. + * The compressed data change rate in MB. */ compressedDataRateInMB?: number; /** - * @member {number} [uncompressedDataRateInMB] The uncompressed data change - * rate in MB. + * The uncompressed data change rate in MB. */ uncompressedDataRateInMB?: number; /** - * @member {string} [ipAddress] The source IP address. + * The source IP address. */ ipAddress?: string; /** - * @member {string} [agentVersion] The agent version. + * The agent version. */ agentVersion?: string; /** - * @member {Date} [agentExpiryDate] Agent expiry date. + * Agent expiry date. */ agentExpiryDate?: Date; /** - * @member {string} [isAgentUpdateRequired] A value indicating whether - * installed agent needs to be updated. + * A value indicating whether installed agent needs to be updated. */ isAgentUpdateRequired?: string; /** - * @member {string} [isRebootAfterUpdateRequired] A value indicating whether - * the source server requires a restart after update. + * A value indicating whether the source server requires a restart after update. */ isRebootAfterUpdateRequired?: string; /** - * @member {Date} [lastHeartbeat] The last heartbeat received from the source - * server. + * The last heartbeat received from the source server. */ lastHeartbeat?: Date; /** - * @member {string} [processServerId] The process server Id. + * The process server Id. */ processServerId?: string; /** - * @member {string} [multiVmGroupId] The multi vm group Id. + * The process server name. + */ + processServerName?: string; + /** + * The multi vm group Id. */ multiVmGroupId?: string; /** - * @member {string} [multiVmGroupName] The multi vm group name. + * The multi vm group name. */ multiVmGroupName?: string; /** - * @member {string} [multiVmSyncStatus] A value indicating whether multi vm - * sync is enabled or disabled. + * A value indicating whether multi vm sync is enabled or disabled. */ multiVmSyncStatus?: string; /** - * @member {InMageAzureV2ProtectedDiskDetails[]} [protectedDisks] The list of - * protected disks. + * The list of protected disks. */ protectedDisks?: InMageAzureV2ProtectedDiskDetails[]; /** - * @member {string} [diskResized] A value indicating whether any disk is - * resized for this VM. + * A value indicating whether any disk is resized for this VM. */ diskResized?: string; /** - * @member {string} [masterTargetId] The master target Id. + * The master target Id. */ masterTargetId?: string; /** - * @member {number} [sourceVmCpuCount] The CPU count of the VM on the primary - * side. + * The CPU count of the VM on the primary side. */ sourceVmCpuCount?: number; /** - * @member {number} [sourceVmRamSizeInMB] The RAM size of the VM on the - * primary side. + * The RAM size of the VM on the primary side. */ sourceVmRamSizeInMB?: number; /** - * @member {string} [osType] The type of the OS on the VM. + * The type of the OS on the VM. */ osType?: string; /** - * @member {string} [vhdName] The OS disk VHD name. + * The OS disk VHD name. */ vhdName?: string; /** - * @member {string} [osDiskId] The id of the disk containing the OS. + * The id of the disk containing the OS. */ osDiskId?: string; /** - * @member {AzureVmDiskDetails[]} [azureVMDiskDetails] Azure VM Disk details. + * Azure VM Disk details. */ azureVMDiskDetails?: AzureVmDiskDetails[]; /** - * @member {string} [recoveryAzureVMName] Recovery Azure given name. + * Recovery Azure given name. */ recoveryAzureVMName?: string; /** - * @member {string} [recoveryAzureVMSize] The Recovery Azure VM size. + * The Recovery Azure VM size. */ recoveryAzureVMSize?: string; /** - * @member {string} [recoveryAzureStorageAccount] The recovery Azure storage - * account. + * The recovery Azure storage account. */ recoveryAzureStorageAccount?: string; /** - * @member {string} [recoveryAzureLogStorageAccountId] The ARM id of the log - * storage account used for replication. This will be set to null if no log + * The ARM id of the log storage account used for replication. This will be set to null if no log * storage account was provided during enable protection. */ recoveryAzureLogStorageAccountId?: string; /** - * @member {VMNicDetails[]} [vmNics] The PE Network details. + * The PE Network details. */ vmNics?: VMNicDetails[]; /** - * @member {string} [selectedRecoveryAzureNetworkId] The selected recovery - * azure network Id. + * The selected recovery azure network Id. */ selectedRecoveryAzureNetworkId?: string; /** - * @member {string} [selectedSourceNicId] The selected source nic Id which - * will be used as the primary nic during failover. + * The test failover virtual network. + */ + selectedTfoAzureNetworkId?: string; + /** + * The selected source nic Id which will be used as the primary nic during failover. */ selectedSourceNicId?: string; /** - * @member {string} [discoveryType] A value indicating the discovery type of - * the machine. Value can be vCenter or physical. + * A value indicating the discovery type of the machine. Value can be vCenter or physical. */ discoveryType?: string; /** - * @member {string} [enableRdpOnTargetOption] The selected option to enable - * RDP\SSH on target vm after failover. String value of - * {SrsDataContract.EnableRDPOnTargetOption} enum. + * The selected option to enable RDP\SSH on target vm after failover. String value of + * SrsDataContract.EnableRDPOnTargetOption enum. */ enableRdpOnTargetOption?: string; /** - * @member {string[]} [datastores] The datastores of the on-premise machine. - * Value can be list of strings that contain datastore names. + * The datastores of the on-premise machine. Value can be list of strings that contain datastore + * names. */ datastores?: string[]; /** - * @member {string} [targetVmId] The ARM Id of the target Azure VM. This - * value will be null until the VM is failed over. Only after failure it will - * be populated with the ARM Id of the Azure VM. + * The ARM Id of the target Azure VM. This value will be null until the VM is failed over. Only + * after failure it will be populated with the ARM Id of the Azure VM. */ targetVmId?: string; /** - * @member {string} [recoveryAzureResourceGroupId] The target resource group - * Id. + * The target resource group Id. */ recoveryAzureResourceGroupId?: string; /** - * @member {string} [recoveryAvailabilitySetId] The recovery availability set - * Id. + * The recovery availability set Id. */ recoveryAvailabilitySetId?: string; /** - * @member {string} [useManagedDisks] A value indicating whether managed - * disks should be used during failover. + * The target availability zone. + */ + targetAvailabilityZone?: string; + /** + * The target proximity placement group Id. + */ + targetProximityPlacementGroupId?: string; + /** + * A value indicating whether managed disks should be used during failover. */ useManagedDisks?: string; /** - * @member {string} [licenseType] License Type of the VM to be used. + * License Type of the VM to be used. */ licenseType?: string; /** - * @member {HealthError[]} [validationErrors] The validation errors of the - * on-premise machine Value can be list of validation errors. + * The SQL Server license type. + */ + sqlServerLicenseType?: string; + /** + * The validation errors of the on-premise machine Value can be list of validation errors. */ validationErrors?: HealthError[]; /** - * @member {Date} [lastRpoCalculatedTime] The last RPO calculated time. + * The last RPO calculated time. */ lastRpoCalculatedTime?: Date; /** - * @member {Date} [lastUpdateReceivedTime] The last update time received from - * on-prem components. + * The last update time received from on-prem components. */ lastUpdateReceivedTime?: Date; /** - * @member {string} [replicaId] The replica id of the protected item. + * The replica id of the protected item. */ replicaId?: string; /** - * @member {string} [osVersion] The OS Version of the protected item. + * The OS Version of the protected item. */ osVersion?: string; + /** + * The list of protected managed disks. + */ + protectedManagedDisks?: InMageAzureV2ManagedDiskDetails[]; + /** + * The last recovery point received time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastRecoveryPointReceived?: Date; + /** + * The firmware type of this protected item. + */ + firmwareType?: string; + /** + * The target generation for this protected item. + */ + azureVmGeneration?: string; + /** + * A value indicating whether additional IR stats are available or not. + */ + isAdditionalStatsAvailable?: boolean; + /** + * The total transferred data in bytes. + */ + totalDataTransferred?: number; + /** + * The progress health. + */ + totalProgressHealth?: string; + /** + * The target VM tags. + */ + targetVmTags?: { [propertyName: string]: string }; + /** + * The tags for the seed managed disks. + */ + seedManagedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target managed disks. + */ + targetManagedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target NICs. + */ + targetNicTags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing InMageAzureV2ReprotectInput. * InMageAzureV2 specific provider input. - * */ export interface InMageAzureV2ReprotectInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMageAzureV2"; /** - * @member {string} [masterTargetId] The Master target Id. + * The Master target Id. */ masterTargetId?: string; /** - * @member {string} [processServerId] The Process Server Id. + * The Process Server Id. */ processServerId?: string; /** - * @member {string} [storageAccountId] The storage account id. + * The storage account id. */ storageAccountId?: string; /** - * @member {string} [runAsAccountId] The CS account Id. + * The CS account Id. */ runAsAccountId?: string; /** - * @member {string} [policyId] The Policy Id. + * The Policy Id. */ policyId?: string; /** - * @member {string} [logStorageAccountId] The storage account to be used for - * logging during replication. + * The storage account to be used for logging during replication. */ logStorageAccountId?: string; /** - * @member {string[]} [disksToInclude] The disks to include list. + * The disks to include list. */ disksToInclude?: string[]; } /** - * @interface - * An interface representing InMageAzureV2UpdateReplicationProtectedItemInput. + * InMageAzureV2 provider specific input for test failover. + */ +export interface InMageAzureV2TestFailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "InMageAzureV2"; + /** + * The recovery point id to be passed to test failover to a particular recovery point. In case of + * latest recovery point, null should be passed. + */ + recoveryPointId?: string; +} + +/** + * InMageAzureV2 provider specific input for unplanned failover. + */ +export interface InMageAzureV2UnplannedFailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "InMageAzureV2"; + /** + * The recovery point id to be passed to failover to a particular recovery point. In case of + * latest recovery point, null should be passed. + */ + recoveryPointId?: string; +} + +/** * InMage Azure V2 input to update replication protected item. - * */ export interface InMageAzureV2UpdateReplicationProtectedItemInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMageAzureV2"; /** - * @member {string} [recoveryAzureV1ResourceGroupId] The recovery Azure - * resource group Id for classic deployment. + * The recovery Azure resource group Id for classic deployment. */ recoveryAzureV1ResourceGroupId?: string; /** - * @member {string} [recoveryAzureV2ResourceGroupId] The recovery Azure - * resource group Id for resource manager deployment. + * The recovery Azure resource group Id for resource manager deployment. */ recoveryAzureV2ResourceGroupId?: string; /** - * @member {string} [useManagedDisks] A value indicating whether managed - * disks should be used during failover. + * A value indicating whether managed disks should be used during failover. */ useManagedDisks?: string; + /** + * The target proximity placement group Id. + */ + targetProximityPlacementGroupId?: string; + /** + * The target availability zone. + */ + targetAvailabilityZone?: string; + /** + * The target VM tags. + */ + targetVmTags?: { [propertyName: string]: string }; + /** + * The tags for the target managed disks. + */ + targetManagedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target NICs. + */ + targetNicTags?: { [propertyName: string]: string }; + /** + * The SQL Server license type. Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + * 'AHUB' + */ + sqlServerLicenseType?: SqlServerLicenseType; } /** - * @interface - * An interface representing InMageBasePolicyDetails. * Base class for the policies of providers using InMage replication. - * */ export interface InMageBasePolicyDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMageBasePolicyDetails"; /** - * @member {number} [recoveryPointThresholdInMinutes] The recovery point - * threshold in minutes. + * The recovery point threshold in minutes. */ recoveryPointThresholdInMinutes?: number; /** - * @member {number} [recoveryPointHistory] The duration in minutes until - * which the recovery points need to be stored. + * The duration in minutes until which the recovery points need to be stored. */ recoveryPointHistory?: number; /** - * @member {number} [appConsistentFrequencyInMinutes] The app consistent - * snapshot frequency in minutes. + * The app consistent snapshot frequency in minutes. */ appConsistentFrequencyInMinutes?: number; /** - * @member {string} [multiVmSyncStatus] A value indicating whether multi-VM - * sync has to be enabled. + * A value indicating whether multi-VM sync has to be enabled. */ multiVmSyncStatus?: string; } /** - * @interface - * An interface representing InMageDisableProtectionProviderSpecificInput. * InMage disable protection provider specific input. - * */ export interface InMageDisableProtectionProviderSpecificInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMage"; /** - * @member {string} [replicaVmDeletionStatus] A value indicating whether the - * replica VM should be destroyed or retained. Values from Delete and Retain. + * A value indicating whether the replica VM should be destroyed or retained. Values from Delete + * and Retain. */ replicaVmDeletionStatus?: string; } /** - * @interface - * An interface representing InMageDiskDetails. - * VMware/Physical specific Disk Details - * + * VMware/Physical specific Disk Details. */ export interface InMageDiskDetails { /** - * @member {string} [diskId] The disk Id. + * The disk Id. */ diskId?: string; /** - * @member {string} [diskName] The disk name. + * The disk name. */ diskName?: string; /** - * @member {string} [diskSizeInMB] The disk size in MB. + * The disk size in MB. */ diskSizeInMB?: string; /** - * @member {string} [diskType] Whether disk is system disk or data disk. + * Whether disk is system disk or data disk. */ diskType?: string; /** - * @member {string} [diskConfiguration] Whether disk is dynamic disk or basic - * disk. + * Whether disk is dynamic disk or basic disk. */ diskConfiguration?: string; /** - * @member {DiskVolumeDetails[]} [volumeList] Volumes of the disk. + * Volumes of the disk. */ volumeList?: DiskVolumeDetails[]; } /** - * @interface - * An interface representing InMageVolumeExclusionOptions. - * Guest disk signature based disk exclusion option when doing enable - * protection of virtual machine in InMage provider. - * + * Guest disk signature based disk exclusion option when doing enable protection of virtual machine + * in InMage provider. */ export interface InMageVolumeExclusionOptions { /** - * @member {string} [volumeLabel] The volume label. The disk having any - * volume with this label will be excluded from replication. + * The volume label. The disk having any volume with this label will be excluded from + * replication. */ volumeLabel?: string; /** - * @member {string} [onlyExcludeIfSingleVolume] The value indicating whether - * to exclude multi volume disk or not. If a disk has multiple volumes and - * one of the volume has label matching with VolumeLabel this disk will be - * excluded from replication if OnlyExcludeIfSingleVolume is false. + * The value indicating whether to exclude multi volume disk or not. If a disk has multiple + * volumes and one of the volume has label matching with VolumeLabel this disk will be excluded + * from replication if OnlyExcludeIfSingleVolume is false. */ onlyExcludeIfSingleVolume?: string; } /** - * @interface - * An interface representing InMageDiskSignatureExclusionOptions. - * Guest disk signature based disk exclusion option when doing enable - * protection of virtual machine in InMage provider. - * + * Guest disk signature based disk exclusion option when doing enable protection of virtual machine + * in InMage provider. */ export interface InMageDiskSignatureExclusionOptions { /** - * @member {string} [diskSignature] The guest signature of disk to be - * excluded from replication. + * The guest signature of disk to be excluded from replication. */ diskSignature?: string; } /** - * @interface - * An interface representing InMageDiskExclusionInput. - * DiskExclusionInput when doing enable protection of virtual machine in InMage - * provider. - * + * DiskExclusionInput when doing enable protection of virtual machine in InMage provider. */ export interface InMageDiskExclusionInput { /** - * @member {InMageVolumeExclusionOptions[]} [volumeOptions] The volume label - * based option for disk exclusion. + * The volume label based option for disk exclusion. */ volumeOptions?: InMageVolumeExclusionOptions[]; /** - * @member {InMageDiskSignatureExclusionOptions[]} [diskSignatureOptions] The - * guest disk signature based option for disk exclusion. + * The guest disk signature based option for disk exclusion. */ diskSignatureOptions?: InMageDiskSignatureExclusionOptions[]; } /** - * @interface - * An interface representing InMageEnableProtectionInput. * VMware Azure specific enable protection input. - * */ export interface InMageEnableProtectionInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMage"; /** - * @member {string} [vmFriendlyName] The Vm Name. + * The VM Name. */ vmFriendlyName?: string; /** - * @member {string} masterTargetId The Master Target Id. + * The Master Target Id. */ masterTargetId: string; /** - * @member {string} processServerId The Process Server Id. + * The Process Server Id. */ processServerId: string; /** - * @member {string} retentionDrive The retention drive to use on the MT. + * The retention drive to use on the MT. */ retentionDrive: string; /** - * @member {string} [runAsAccountId] The CS account Id. + * The CS account Id. */ runAsAccountId?: string; /** - * @member {string} multiVmGroupId The multi vm group Id. + * The multi VM group Id. */ multiVmGroupId: string; /** - * @member {string} multiVmGroupName The multi vm group name. + * The multi VM group name. */ multiVmGroupName: string; /** - * @member {string} [datastoreName] The target datastore name. + * The target datastore name. */ datastoreName?: string; /** - * @member {InMageDiskExclusionInput} [diskExclusionInput] The enable disk - * exclusion input. + * The enable disk exclusion input. */ diskExclusionInput?: InMageDiskExclusionInput; /** - * @member {string[]} [disksToInclude] The disks to include list. + * The disks to include list. */ disksToInclude?: string[]; } /** - * @interface - * An interface representing InMageFailoverProviderInput. - * Provider specific input for InMage failover. - * - */ -export interface InMageFailoverProviderInput { - /** - * @member {string} instanceType Polymorphic Discriminator - */ - instanceType: "InMage"; - /** - * @member {RecoveryPointType} [recoveryPointType] The recovery point type. - * Values from LatestTime, LatestTag or Custom. In the case of custom, the - * recovery point provided by RecoveryPointId will be used. In the other two - * cases, recovery point id will be ignored. Possible values include: - * 'LatestTime', 'LatestTag', 'Custom' - */ - recoveryPointType?: RecoveryPointType; - /** - * @member {string} [recoveryPointId] The recovery point id to be passed to - * failover to a particular recovery point. In case of latest recovery point, - * null should be passed. - */ - recoveryPointId?: string; -} - -/** - * @interface - * An interface representing InMagePolicyDetails. * InMage specific protection profile details. - * */ export interface InMagePolicyDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMage"; /** - * @member {number} [recoveryPointThresholdInMinutes] The recovery point - * threshold in minutes. + * The recovery point threshold in minutes. */ recoveryPointThresholdInMinutes?: number; /** - * @member {number} [recoveryPointHistory] The duration in minutes until - * which the recovery points need to be stored. + * The duration in minutes until which the recovery points need to be stored. */ recoveryPointHistory?: number; /** - * @member {number} [appConsistentFrequencyInMinutes] The app consistent - * snapshot frequency in minutes. + * The app consistent snapshot frequency in minutes. */ appConsistentFrequencyInMinutes?: number; /** - * @member {string} [multiVmSyncStatus] A value indicating whether multi-VM - * sync has to be enabled. + * A value indicating whether multi-VM sync has to be enabled. */ multiVmSyncStatus?: string; } /** - * @interface - * An interface representing InMagePolicyInput. * VMWare Azure specific protection profile Input. - * */ export interface InMagePolicyInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "InMage"; /** - * @member {number} [recoveryPointThresholdInMinutes] The recovery point - * threshold in minutes. + * The recovery point threshold in minutes. */ recoveryPointThresholdInMinutes?: number; /** - * @member {number} [recoveryPointHistory] The duration in minutes until - * which the recovery points need to be stored. + * The duration in minutes until which the recovery points need to be stored. */ recoveryPointHistory?: number; /** - * @member {number} [appConsistentFrequencyInMinutes] The app consistent - * snapshot frequency (in minutes). + * The app consistent snapshot frequency (in minutes). */ appConsistentFrequencyInMinutes?: number; /** - * @member {SetMultiVmSyncStatus} multiVmSyncStatus A value indicating - * whether multi-VM sync has to be enabled. Value should be 'Enabled' or + * A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or * 'Disabled'. Possible values include: 'Enable', 'Disable' */ multiVmSyncStatus: SetMultiVmSyncStatus; } /** - * @interface - * An interface representing InMageProtectedDiskDetails. * InMage protected disk details. - * */ export interface InMageProtectedDiskDetails { /** - * @member {string} [diskId] The disk id. + * The disk id. */ diskId?: string; /** - * @member {string} [diskName] The disk name. + * The disk name. */ diskName?: string; /** - * @member {string} [protectionStage] The protection stage. + * The protection stage. */ protectionStage?: string; /** - * @member {string} [healthErrorCode] The health error code for the disk. + * The health error code for the disk. */ healthErrorCode?: string; /** - * @member {number} [rpoInSeconds] The RPO in seconds. + * The RPO in seconds. */ rpoInSeconds?: number; /** - * @member {string} [resyncRequired] A value indicating whether resync is - * required for this disk. + * A value indicating whether resync is required for this disk. */ resyncRequired?: string; /** - * @member {number} [resyncProgressPercentage] The resync progress - * percentage. + * The resync progress percentage. */ resyncProgressPercentage?: number; /** - * @member {number} [resyncDurationInSeconds] The resync duration in seconds. + * The resync duration in seconds. */ resyncDurationInSeconds?: number; /** - * @member {number} [diskCapacityInBytes] The disk capacity in bytes. + * The disk capacity in bytes. */ diskCapacityInBytes?: number; /** - * @member {number} [fileSystemCapacityInBytes] The file system capacity in - * bytes. + * The file system capacity in bytes. */ fileSystemCapacityInBytes?: number; /** - * @member {number} [sourceDataInMB] The source data transit in MB. + * The source data transit in MB. */ sourceDataInMB?: number; /** - * @member {number} [psDataInMB] The PS data transit in MB. + * The PS data transit in MB. */ psDataInMB?: number; /** - * @member {number} [targetDataInMB] The target data transit in MB. + * The target data transit in MB. */ targetDataInMB?: number; /** - * @member {string} [diskResized] A value indicating whether disk is resized. + * A value indicating whether disk is resized. */ diskResized?: string; /** - * @member {Date} [lastRpoCalculatedTime] The last RPO calculated time. + * The last RPO calculated time. */ lastRpoCalculatedTime?: Date; -} - -/** - * @interface - * An interface representing OSDiskDetails. - * Details of the OS Disk. - * - */ -export interface OSDiskDetails { /** - * @member {string} [osVhdId] The id of the disk containing the OS. + * The resync processed bytes. */ - osVhdId?: string; + resyncProcessedBytes?: number; /** - * @member {string} [osType] The type of the OS on the VM. + * The resync total transferred bytes. */ - osType?: string; + resyncTotalTransferredBytes?: number; /** - * @member {string} [vhdName] The OS disk VHD name. + * The resync last 15 minutes transferred bytes. */ - vhdName?: string; + resyncLast15MinutesTransferredBytes?: number; + /** + * The last data transfer time in UTC. + */ + resyncLastDataTransferTimeUTC?: Date; + /** + * The resync start time. + */ + resyncStartTime?: Date; + /** + * The Progress Health. + */ + progressHealth?: string; + /** + * The Progress Status. + */ + progressStatus?: string; } /** - * @interface - * An interface representing InMageReplicationDetails. - * InMage provider specific settings - * + * InMageRcm source agent upgrade blocking error details. */ -export interface InMageReplicationDetails { - /** - * @member {string} instanceType Polymorphic Discriminator - */ - instanceType: "InMage"; +export interface InMageRcmAgentUpgradeBlockingErrorDetails { /** - * @member {string} [activeSiteType] The active location of the VM. If the VM - * is being protected from Azure, this field will take values from { Azure, - * OnPrem }. If the VM is being protected between two data-centers, this - * field will be OnPrem always. + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - activeSiteType?: string; + readonly errorCode?: string; /** - * @member {number} [sourceVmCpuCount] The CPU count of the VM on the primary - * side. + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceVmCpuCount?: number; + readonly errorMessage?: string; /** - * @member {number} [sourceVmRamSizeInMB] The RAM size of the VM on the - * primary side. + * The possible causes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceVmRamSizeInMB?: number; + readonly possibleCauses?: string; /** - * @member {OSDiskDetails} [osDetails] The OS details. + * The recommended action. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osDetails?: OSDiskDetails; + readonly recommendedAction?: string; /** - * @member {string} [protectionStage] The protection stage. + * The error message parameters. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - protectionStage?: string; + readonly errorMessageParameters?: { [propertyName: string]: string }; /** - * @member {string} [vmId] The virtual machine Id. + * The error tags. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmId?: string; + readonly errorTags?: { [propertyName: string]: string }; +} + +/** + * ApplyRecoveryPoint input specific to InMageRcm provider. + */ +export interface InMageRcmApplyRecoveryPointInput { /** - * @member {string} [vmProtectionState] The protection state for the vm. + * Polymorphic Discriminator */ - vmProtectionState?: string; + instanceType: "InMageRcm"; /** - * @member {string} [vmProtectionStateDescription] The protection state - * description for the vm. + * The recovery point Id. */ - vmProtectionStateDescription?: string; + recoveryPointId: string; +} + +/** + * InMageRcm discovered protected VM details. + */ +export interface InMageRcmDiscoveredProtectedVmDetails { /** - * @member {InitialReplicationDetails} [resyncDetails] The resync details of - * the machine + * The VCenter Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resyncDetails?: InitialReplicationDetails; + readonly vCenterId?: string; /** - * @member {Date} [retentionWindowStart] The retention window start time. + * The VCenter fqdn. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionWindowStart?: Date; + readonly vCenterFqdn?: string; /** - * @member {Date} [retentionWindowEnd] The retention window end time. + * The list of datastores. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionWindowEnd?: Date; + readonly datastores?: string[]; /** - * @member {number} [compressedDataRateInMB] The compressed data change rate - * in MB. + * The list of IP addresses. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - compressedDataRateInMB?: number; + readonly ipAddresses?: string[]; /** - * @member {number} [uncompressedDataRateInMB] The uncompressed data change - * rate in MB. + * The VMware tools status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - uncompressedDataRateInMB?: number; + readonly vmwareToolsStatus?: string; /** - * @member {number} [rpoInSeconds] The RPO in seconds. + * The VM power status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - rpoInSeconds?: number; + readonly powerStatus?: string; /** - * @member {InMageProtectedDiskDetails[]} [protectedDisks] The list of - * protected disks. + * The VM fqdn. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - protectedDisks?: InMageProtectedDiskDetails[]; + readonly vmFqdn?: string; /** - * @member {string} [ipAddress] The source IP address. + * The VM's OS name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ipAddress?: string; + readonly osName?: string; /** - * @member {Date} [lastHeartbeat] The last heartbeat received from the source - * server. + * The SDS created timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastHeartbeat?: Date; + readonly createdTimestamp?: Date; /** - * @member {string} [processServerId] The process server Id. + * The SDS updated timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - processServerId?: string; + readonly updatedTimestamp?: Date; /** - * @member {string} [masterTargetId] The master target Id. + * A value indicating whether the VM is deleted. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - masterTargetId?: string; + readonly isDeleted?: boolean; /** - * @member {{ [propertyName: string]: Date } | { [propertyName: string]: - * string }} [consistencyPoints] The collection of Consistency points. + * The last time when SDS information discovered in SRS. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - consistencyPoints?: { [propertyName: string]: Date } | { [propertyName: string]: string }; + readonly lastDiscoveryTimeInUtc?: Date; +} + +/** + * InMageRcm disk input. + */ +export interface InMageRcmDiskInput { /** - * @member {string} [diskResized] A value indicating whether any disk is - * resized for this VM. + * The disk Id. */ - diskResized?: string; + diskId: string; /** - * @member {string} [rebootAfterUpdateStatus] A value indicating whether the - * source server requires a restart after update. + * The log storage account ARM Id. */ - rebootAfterUpdateStatus?: string; + logStorageAccountId: string; /** - * @member {string} [multiVmGroupId] The multi vm group Id, if any. + * The disk type. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' */ - multiVmGroupId?: string; + diskType: DiskAccountType; /** - * @member {string} [multiVmGroupName] The multi vm group name, if any. + * The DiskEncryptionSet ARM Id. */ - multiVmGroupName?: string; + diskEncryptionSetId?: string; +} + +/** + * InMageRcm disk input. + */ +export interface InMageRcmDisksDefaultInput { /** - * @member {string} [multiVmSyncStatus] A value indicating whether the multi - * vm sync is enabled or disabled. + * The log storage account ARM Id. */ - multiVmSyncStatus?: string; + logStorageAccountId: string; /** - * @member {InMageAgentDetails} [agentDetails] The agent details. + * The disk type. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' */ - agentDetails?: InMageAgentDetails; + diskType: DiskAccountType; /** - * @member {string} [vCenterInfrastructureId] The vCenter infrastructure Id. + * The DiskEncryptionSet ARM Id. */ - vCenterInfrastructureId?: string; + diskEncryptionSetId?: string; +} + +/** + * InMageRcm specific enable protection input. + */ +export interface InMageRcmEnableProtectionInput { /** - * @member {string} [infrastructureVmId] The infrastructure VM Id. + * Polymorphic Discriminator */ - infrastructureVmId?: string; + instanceType: "InMageRcm"; /** - * @member {VMNicDetails[]} [vmNics] The PE Network details. + * The ARM Id of discovered machine. */ - vmNics?: VMNicDetails[]; + fabricDiscoveryMachineId: string; /** - * @member {string} [discoveryType] A value indicating the discovery type of - * the machine. + * The disks to include list. */ - discoveryType?: string; + disksToInclude?: InMageRcmDiskInput[]; /** - * @member {string} [azureStorageAccountId] A value indicating the underlying - * Azure storage account. If the VM is not running in Azure, this value shall - * be set to null. + * The default disk input. */ - azureStorageAccountId?: string; + disksDefault?: InMageRcmDisksDefaultInput; /** - * @member {string[]} [datastores] The datastores of the on-premise machine - * Value can be list of strings that contain datastore names + * The target resource group ARM Id. */ - datastores?: string[]; + targetResourceGroupId: string; /** - * @member {HealthError[]} [validationErrors] The validation errors of the - * on-premise machine Value can be list of validation errors + * The selected target network ARM Id. */ - validationErrors?: HealthError[]; + targetNetworkId?: string; /** - * @member {Date} [lastRpoCalculatedTime] The last RPO calculated time. + * The selected test network ARM Id. */ - lastRpoCalculatedTime?: Date; + testNetworkId?: string; /** - * @member {Date} [lastUpdateReceivedTime] The last update time received from - * on-prem components. + * The selected target subnet name. */ - lastUpdateReceivedTime?: Date; + targetSubnetName?: string; /** - * @member {string} [replicaId] The replica id of the protected item. + * The selected test subnet name. */ - replicaId?: string; + testSubnetName?: string; /** - * @member {string} [osVersion] The OS Version of the protected item. + * The target VM name. */ - osVersion?: string; -} - -/** - * @interface - * An interface representing InMageReprotectInput. - * InMageAzureV2 specific provider input. - * - */ -export interface InMageReprotectInput { + targetVmName?: string; /** - * @member {string} instanceType Polymorphic Discriminator + * The target VM size. */ - instanceType: "InMage"; + targetVmSize?: string; /** - * @member {string} masterTargetId The Master Target Id. + * The license type. Possible values include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' */ - masterTargetId: string; + licenseType?: LicenseType; /** - * @member {string} processServerId The Process Server Id. + * The target availability set ARM Id. */ - processServerId: string; + targetAvailabilitySetId?: string; /** - * @member {string} retentionDrive The retention drive to use on the MT. + * The target availability zone. */ - retentionDrive: string; + targetAvailabilityZone?: string; /** - * @member {string} [runAsAccountId] The CS account Id. + * The target proximity placement group Id. */ - runAsAccountId?: string; + targetProximityPlacementGroupId?: string; /** - * @member {string} [datastoreName] The target datastore name. + * The target boot diagnostics storage account ARM Id. */ - datastoreName?: string; + targetBootDiagnosticsStorageAccountId?: string; /** - * @member {InMageDiskExclusionInput} [diskExclusionInput] The enable disk - * exclusion input. + * The run-as account Id. */ - diskExclusionInput?: InMageDiskExclusionInput; + runAsAccountId?: string; /** - * @member {string} profileId The Policy Id. + * The process server Id. */ - profileId: string; + processServerId: string; /** - * @member {string[]} [disksToInclude] The disks to include list. + * The multi VM group name. */ - disksToInclude?: string[]; + multiVmGroupName?: string; } /** - * @interface - * An interface representing JobProperties. - * Job custom data details. - * + * Event details for InMageRcm provider. */ -export interface JobProperties { - /** - * @member {string} [activityId] The activity id. - */ - activityId?: string; +export interface InMageRcmEventDetails { /** - * @member {string} [scenarioName] The ScenarioName. + * Polymorphic Discriminator */ - scenarioName?: string; + instanceType: "InMageRcm"; /** - * @member {string} [friendlyName] The DisplayName. + * The protected item name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - friendlyName?: string; + readonly protectedItemName?: string; /** - * @member {string} [state] The status of the Job. It is one of these values - * - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or - * Other. + * The protected item name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - state?: string; + readonly vmName?: string; /** - * @member {string} [stateDescription] The description of the state of the - * Job. For e.g. - For Succeeded state, description can be Completed, - * PartiallySucceeded, CompletedWithInformation or Skipped. + * The latest agent version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - stateDescription?: string; + readonly latestAgentVersion?: string; /** - * @member {ASRTask[]} [tasks] The tasks. + * The job Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tasks?: ASRTask[]; + readonly jobId?: string; /** - * @member {JobErrorDetails[]} [errors] The errors. + * The fabric name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - errors?: JobErrorDetails[]; + readonly fabricName?: string; /** - * @member {Date} [startTime] The start time. + * The appliance name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - startTime?: Date; + readonly applianceName?: string; /** - * @member {Date} [endTime] The end time. + * The server type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - endTime?: Date; + readonly serverType?: string; /** - * @member {string[]} [allowedActions] The Allowed action the job. + * The component display name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - allowedActions?: string[]; + readonly componentDisplayName?: string; +} + +/** + * InMageRcm fabric provider specific settings. + */ +export interface InMageRcmFabricCreationInput { /** - * @member {string} [targetObjectId] The affected Object Id. + * Polymorphic Discriminator */ - targetObjectId?: string; + instanceType: "InMageRcm"; /** - * @member {string} [targetObjectName] The name of the affected object. + * The ARM Id of the VMware site. */ - targetObjectName?: string; + vmwareSiteId: string; /** - * @member {string} [targetInstanceType] The type of the affected object - * which is of {Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType} - * class. + * The ARM Id of the physical site. */ - targetInstanceType?: string; + physicalSiteId: string; /** - * @member {JobDetailsUnion} [customDetails] The custom job details like test - * failover job details. + * The identity provider input for source agent authentication. */ - customDetails?: JobDetailsUnion; + sourceAgentIdentity: IdentityProviderInput; } /** - * @interface - * An interface representing Job. - * Job details. - * - * @extends Resource + * Process server details. */ -export interface Job extends Resource { +export interface ProcessServerDetails { /** - * @member {JobProperties} [properties] The custom data. + * The process server Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: JobProperties; -} - -/** - * @interface - * An interface representing JobQueryParameter. - * Query parameter to enumerate jobs. - * - */ -export interface JobQueryParameter { + readonly id?: string; /** - * @member {string} [startTime] Date time to get jobs from. + * The process server name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - startTime?: string; + readonly name?: string; /** - * @member {string} [endTime] Date time to get jobs upto. + * The process server Bios Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - endTime?: string; + readonly biosId?: string; /** - * @member {string} [fabricId] The Id of the fabric to search jobs under. + * The fabric object Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - fabricId?: string; + readonly fabricObjectId?: string; /** - * @member {string} [affectedObjectTypes] The type of objects. + * The process server Fqdn. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - affectedObjectTypes?: string; + readonly fqdn?: string; /** - * @member {string} [jobStatus] The states of the job to be filtered can be - * in. + * The list of IP addresses for communicating with the RCM component. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - jobStatus?: string; -} - -/** - * @interface - * An interface representing JobStatusEventDetails. - * Model class for event details of a job status event. - * - */ -export interface JobStatusEventDetails { + readonly ipAddresses?: string[]; /** - * @member {string} instanceType Polymorphic Discriminator + * The version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "JobStatus"; + readonly version?: string; /** - * @member {string} [jobId] Job arm id for the event. + * The last heartbeat received from the process server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - jobId?: string; + readonly lastHeartbeatUtc?: Date; /** - * @member {string} [jobFriendlyName] JobName for the Event. + * The total memory. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - jobFriendlyName?: string; + readonly totalMemoryInBytes?: number; /** - * @member {string} [jobStatus] JobStatus for the Event. + * The available memory. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - jobStatus?: string; + readonly availableMemoryInBytes?: number; /** - * @member {string} [affectedObjectType] AffectedObjectType for the event. + * The used memory. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - affectedObjectType?: string; -} - -/** - * @interface - * An interface representing JobTaskDetails. - * This class represents a task which is actually a workflow so that one can - * navigate to its individual drill down. - * - */ -export interface JobTaskDetails { + readonly usedMemoryInBytes?: number; /** - * @member {string} instanceType Polymorphic Discriminator + * The memory usage percentage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "JobTaskDetails"; + readonly memoryUsagePercentage?: number; /** - * @member {JobEntity} [jobTask] The job entity. + * The total disk space. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - jobTask?: JobEntity; -} - -/** - * @interface - * An interface representing LogicalNetworkProperties. - * Logical Network Properties. - * - */ -export interface LogicalNetworkProperties { + readonly totalSpaceInBytes?: number; /** - * @member {string} [friendlyName] The Friendly Name. + * The available disk space. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - friendlyName?: string; + readonly availableSpaceInBytes?: number; /** - * @member {string} [networkVirtualizationStatus] A value indicating whether - * Network Virtualization is enabled for the logical network. + * The used disk space. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - networkVirtualizationStatus?: string; + readonly usedSpaceInBytes?: number; /** - * @member {string} [logicalNetworkUsage] A value indicating whether logical - * network is used as private test network by test failover. + * The free disk space percentage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - logicalNetworkUsage?: string; + readonly freeSpacePercentage?: number; /** - * @member {string} [logicalNetworkDefinitionsStatus] A value indicating - * whether logical network definitions are isolated. + * The uploading pending data in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - logicalNetworkDefinitionsStatus?: string; -} - -/** - * @interface - * An interface representing LogicalNetwork. - * Logical network data model. - * - * @extends Resource - */ -export interface LogicalNetwork extends Resource { + readonly throughputUploadPendingDataInBytes?: number; /** - * @member {LogicalNetworkProperties} [properties] The Logical Network - * Properties. + * The throughput in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: LogicalNetworkProperties; -} - -/** - * @interface - * An interface representing ManualActionTaskDetails. - * This class represents the manual action task details. - * - */ -export interface ManualActionTaskDetails { + readonly throughputInBytes?: number; /** - * @member {string} instanceType Polymorphic Discriminator + * The processor usage percentage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "ManualActionTaskDetails"; + readonly processorUsagePercentage?: number; /** - * @member {string} [name] The name. + * The throughput status. Possible values include: 'Healthy', 'Warning', 'Critical', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly throughputStatus?: RcmComponentStatus; /** - * @member {string} [instructions] The instructions. + * The system load. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instructions?: string; + readonly systemLoad?: number; /** - * @member {string} [observation] The observation. + * The system load status. Possible values include: 'Healthy', 'Warning', 'Critical', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - observation?: string; -} - -/** - * @interface - * An interface representing RetentionVolume. - * The retention details of the MT. - * - */ -export interface RetentionVolume { + readonly systemLoadStatus?: RcmComponentStatus; /** - * @member {string} [volumeName] The volume name. + * The disk usage status. Possible values include: 'Healthy', 'Warning', 'Critical', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - volumeName?: string; + readonly diskUsageStatus?: RcmComponentStatus; /** - * @member {number} [capacityInBytes] The volume capacity. + * The memory usage status. Possible values include: 'Healthy', 'Warning', 'Critical', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - capacityInBytes?: number; + readonly memoryUsageStatus?: RcmComponentStatus; /** - * @member {number} [freeSpaceInBytes] The free space available in this - * volume. + * The processor usage status. Possible values include: 'Healthy', 'Warning', 'Critical', + * 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - freeSpaceInBytes?: number; + readonly processorUsageStatus?: RcmComponentStatus; /** - * @member {number} [thresholdPercentage] The threshold percentage. + * The health of the process server. Possible values include: 'None', 'Normal', 'Warning', + * 'Critical' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - thresholdPercentage?: number; -} - -/** - * @interface - * An interface representing VersionDetails. - * Version related details. - * - */ -export interface VersionDetails { + readonly health?: ProtectionHealth; /** - * @member {string} [version] The agent version. + * The health errors. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - version?: string; + readonly healthErrors?: HealthError[]; /** - * @member {Date} [expiryDate] Version expiry date. + * The protected item count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expiryDate?: Date; + readonly protectedItemCount?: number; /** - * @member {AgentVersionStatus} [status] A value indicating whether security - * update required. Possible values include: 'Supported', 'NotSupported', - * 'Deprecated', 'UpdateRequired', 'SecurityUpdateRequired' + * The historic health of the process server based on the health in last 24 hours. Possible + * values include: 'None', 'Normal', 'Warning', 'Critical' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - status?: AgentVersionStatus; + readonly historicHealth?: ProtectionHealth; } /** - * @interface - * An interface representing MasterTargetServer. - * Details of a Master Target Server. - * + * RCM proxy details. */ -export interface MasterTargetServer { +export interface RcmProxyDetails { /** - * @member {string} [id] The server Id. + * The RCM proxy Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id?: string; + readonly id?: string; /** - * @member {string} [ipAddress] The IP address of the server. + * The RCM proxy name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ipAddress?: string; + readonly name?: string; /** - * @member {string} [name] The server name. + * The RCM proxy Bios Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly biosId?: string; /** - * @member {string} [osType] The OS type of the server. + * The fabric object Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osType?: string; + readonly fabricObjectId?: string; /** - * @member {string} [agentVersion] The version of the scout component on the - * server. + * The RCM proxy Fqdn. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - agentVersion?: string; + readonly fqdn?: string; /** - * @member {Date} [lastHeartbeat] The last heartbeat received from the - * server. + * The client authentication type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastHeartbeat?: Date; + readonly clientAuthenticationType?: string; /** - * @member {string} [versionStatus] Version status + * The version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - versionStatus?: string; + readonly version?: string; /** - * @member {RetentionVolume[]} [retentionVolumes] The retention volumes of - * Master target Server. + * The last heartbeat received from the RCM proxy. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionVolumes?: RetentionVolume[]; + readonly lastHeartbeatUtc?: Date; /** - * @member {DataStore[]} [dataStores] The list of data stores in the fabric. + * The health of the RCM proxy. Possible values include: 'None', 'Normal', 'Warning', 'Critical' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataStores?: DataStore[]; + readonly health?: ProtectionHealth; /** - * @member {HealthError[]} [validationErrors] Validation errors. + * The health errors. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - validationErrors?: HealthError[]; + readonly healthErrors?: HealthError[]; +} + +/** + * Push installer details. + */ +export interface PushInstallerDetails { /** - * @member {HealthError[]} [healthErrors] Health errors. + * The push installer Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - healthErrors?: HealthError[]; + readonly id?: string; /** - * @member {number} [diskCount] Disk count of the master target. + * The push installer name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - diskCount?: number; + readonly name?: string; /** - * @member {string} [osVersion] OS Version of the master target. + * The push installer Bios Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osVersion?: string; + readonly biosId?: string; /** - * @member {Date} [agentExpiryDate] Agent expiry date. + * The fabric object Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - agentExpiryDate?: Date; + readonly fabricObjectId?: string; /** - * @member {string} [marsAgentVersion] MARS agent version. + * The push installer Fqdn. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - marsAgentVersion?: string; + readonly fqdn?: string; /** - * @member {Date} [marsAgentExpiryDate] MARS agent expiry date. + * The version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - marsAgentExpiryDate?: Date; + readonly version?: string; /** - * @member {VersionDetails} [agentVersionDetails] Agent version details. + * The last heartbeat received from the push installer. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - agentVersionDetails?: VersionDetails; + readonly lastHeartbeatUtc?: Date; /** - * @member {VersionDetails} [marsAgentVersionDetails] Mars agent version - * details. + * The health of the push installer. Possible values include: 'None', 'Normal', 'Warning', + * 'Critical' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - marsAgentVersionDetails?: VersionDetails; + readonly health?: ProtectionHealth; + /** + * The health errors. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly healthErrors?: HealthError[]; } /** - * @interface - * An interface representing MobilityServiceUpdate. - * The Mobility Service update details. - * + * Replication agent details. */ -export interface MobilityServiceUpdate { +export interface ReplicationAgentDetails { /** - * @member {string} [version] The version of the latest update. + * The replication agent Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - version?: string; - /** - * @member {string} [rebootStatus] The reboot status of the update - whether - * it is required or not. - */ - rebootStatus?: string; + readonly id?: string; /** - * @member {string} [osType] The OS type. + * The replication agent name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osType?: string; -} - -/** - * @interface - * An interface representing Subnet. - * Subnets of the network. - * - */ -export interface Subnet { + readonly name?: string; /** - * @member {string} [name] The subnet name. + * The replication agent Bios Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly biosId?: string; /** - * @member {string} [friendlyName] The subnet friendly name. + * The fabric object Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - friendlyName?: string; + readonly fabricObjectId?: string; /** - * @member {string[]} [addressList] The list of addresses for the subnet. + * The replication agent Fqdn. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - addressList?: string[]; -} - -/** - * @interface - * An interface representing NetworkProperties. - * Network Properties - * - */ -export interface NetworkProperties { + readonly fqdn?: string; /** - * @member {string} [fabricType] The Fabric Type. + * The version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - fabricType?: string; + readonly version?: string; /** - * @member {Subnet[]} [subnets] The List of subnets. + * The last heartbeat received from the replication agent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - subnets?: Subnet[]; + readonly lastHeartbeatUtc?: Date; /** - * @member {string} [friendlyName] The Friendly Name. + * The health of the replication agent. Possible values include: 'None', 'Normal', 'Warning', + * 'Critical' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - friendlyName?: string; + readonly health?: ProtectionHealth; /** - * @member {string} [networkType] The Network Type. + * The health errors. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - networkType?: string; + readonly healthErrors?: HealthError[]; } /** - * @interface - * An interface representing Network. - * Network model. - * - * @extends Resource + * Reprotect agent details. */ -export interface Network extends Resource { +export interface ReprotectAgentDetails { /** - * @member {NetworkProperties} [properties] The Network Properties. + * The reprotect agent Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: NetworkProperties; -} - -/** - * @interface - * An interface representing NetworkMappingProperties. - * Network Mapping Properties. - * - */ -export interface NetworkMappingProperties { + readonly id?: string; /** - * @member {string} [state] The pairing state for network mapping. + * The reprotect agent name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - state?: string; + readonly name?: string; /** - * @member {string} [primaryNetworkFriendlyName] The primary network friendly - * name. + * The reprotect agent Bios Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - primaryNetworkFriendlyName?: string; + readonly biosId?: string; /** - * @member {string} [primaryNetworkId] The primary network id for network - * mapping. + * The fabric object Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - primaryNetworkId?: string; + readonly fabricObjectId?: string; /** - * @member {string} [primaryFabricFriendlyName] The primary fabric friendly - * name. + * The reprotect agent Fqdn. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - primaryFabricFriendlyName?: string; + readonly fqdn?: string; /** - * @member {string} [recoveryNetworkFriendlyName] The recovery network - * friendly name. + * The version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryNetworkFriendlyName?: string; + readonly version?: string; /** - * @member {string} [recoveryNetworkId] The recovery network id for network - * mapping. + * The last heartbeat received from the reprotect agent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryNetworkId?: string; + readonly lastHeartbeatUtc?: Date; /** - * @member {string} [recoveryFabricArmId] The recovery fabric ARM id. + * The health of the reprotect agent. Possible values include: 'None', 'Normal', 'Warning', + * 'Critical' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryFabricArmId?: string; + readonly health?: ProtectionHealth; /** - * @member {string} [recoveryFabricFriendlyName] The recovery fabric friendly - * name. + * The health errors. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryFabricFriendlyName?: string; + readonly healthErrors?: HealthError[]; /** - * @member {NetworkMappingFabricSpecificSettingsUnion} - * [fabricSpecificSettings] The fabric specific settings. + * The protected item count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - fabricSpecificSettings?: NetworkMappingFabricSpecificSettingsUnion; -} - -/** - * @interface - * An interface representing NetworkMapping. - * Network Mapping model. Ideally it should have been possible to inherit this - * class from prev version in InheritedModels as long as there is no difference - * in structure or method signature. Since there were no base Models for - * certain fields and methods viz NetworkMappingProperties and Load with - * required return type, the class has been introduced in its entirety with - * references to base models to facilitate exensions in subsequent versions. - * - * @extends Resource - */ -export interface NetworkMapping extends Resource { + readonly protectedItemCount?: number; /** - * @member {NetworkMappingProperties} [properties] The Network Mapping - * Properties. + * The list of accessible datastores fetched from discovery. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: NetworkMappingProperties; + readonly accessibleDatastores?: string[]; + /** + * The Vcenter Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vcenterId?: string; + /** + * The last time when SDS information discovered in SRS. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastDiscoveryInUtc?: Date; } /** - * @interface - * An interface representing OperationsDiscovery. - * Operations discovery class. - * + * Mars agent details. */ -export interface OperationsDiscovery { +export interface MarsAgentDetails { /** - * @member {string} [name] Name of the API. The name of the operation being - * performed on this particular object. It should match the action name that - * appears in RBAC / the event service. Examples of operations include: * - * Microsoft.Compute/virtualMachine/capture/action * - * Microsoft.Compute/virtualMachine/restart/action * - * Microsoft.Compute/virtualMachine/write * - * Microsoft.Compute/virtualMachine/read * - * Microsoft.Compute/virtualMachine/delete Each action should include, in - * order: (1) Resource Provider Namespace (2) Type hierarchy for which the - * action applies (e.g. server/databases for a SQL Azure database) (3) Read, - * Write, Action or Delete indicating which type applies. If it is a - * PUT/PATCH on a collection or named value, Write should be used. If it is a - * GET, Read should be used. If it is a DELETE, Delete should be used. If it - * is a POST, Action should be used. As a note: all resource providers would - * need to include the "{Resource Provider Namespace}/register/action" - * operation in their response. This API is used to register for their - * service, and should include details about the operation (e.g. a localized - * name for the resource provider + any special considerations like PII - * release) + * The Mars agent Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly id?: string; /** - * @member {Display} [display] Object type + * The Mars agent name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - display?: Display; + readonly name?: string; /** - * @member {string} [origin] Origin. The intended executor of the operation; - * governs the display of the operation in the RBAC UX and the audit logs UX. - * Default value is "user,system" + * The Mars agent Bios Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - origin?: string; + readonly biosId?: string; /** - * @member {any} [properties] Properties. Reserved for future use. + * The fabric object Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: any; -} - -/** - * @interface - * An interface representing PlannedFailoverInputProperties. - * Input definition for planned failover input properties. - * - */ -export interface PlannedFailoverInputProperties { + readonly fabricObjectId?: string; /** - * @member {string} [failoverDirection] Failover direction. + * The Mars agent Fqdn. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - failoverDirection?: string; + readonly fqdn?: string; /** - * @member {ProviderSpecificFailoverInputUnion} [providerSpecificDetails] - * Provider specific settings + * The version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - providerSpecificDetails?: ProviderSpecificFailoverInputUnion; -} - -/** - * @interface - * An interface representing PlannedFailoverInput. - * Input definition for planned failover. - * - */ -export interface PlannedFailoverInput { + readonly version?: string; /** - * @member {PlannedFailoverInputProperties} [properties] Planned failover - * input properties + * The last heartbeat received from the Mars agent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: PlannedFailoverInputProperties; -} - -/** - * @interface - * An interface representing PolicyProperties. - * Protection profile custom data details. - * - */ -export interface PolicyProperties { + readonly lastHeartbeatUtc?: Date; /** - * @member {string} [friendlyName] The FriendlyName. + * The health of the Mars agent. Possible values include: 'None', 'Normal', 'Warning', 'Critical' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - friendlyName?: string; + readonly health?: ProtectionHealth; /** - * @member {PolicyProviderSpecificDetailsUnion} [providerSpecificDetails] The - * ReplicationChannelSetting. + * The health errors. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - providerSpecificDetails?: PolicyProviderSpecificDetailsUnion; + readonly healthErrors?: HealthError[]; } /** - * @interface - * An interface representing Policy. - * Protection profile details. - * - * @extends Resource + * InMageRcm fabric specific details. */ -export interface Policy extends Resource { +export interface InMageRcmFabricSpecificDetails { /** - * @member {PolicyProperties} [properties] The custom data. + * Polymorphic Discriminator */ - properties?: PolicyProperties; -} - -/** - * @interface - * An interface representing ProcessServer. - * Details of the Process Server. - * - */ -export interface ProcessServer { + instanceType: "InMageRcm"; /** - * @member {string} [friendlyName] The Process Server's friendly name. + * The ARM Id of the VMware site. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - friendlyName?: string; + readonly vmwareSiteId?: string; /** - * @member {string} [id] The Process Server Id. + * The ARM Id of the physical site. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id?: string; + readonly physicalSiteId?: string; /** - * @member {string} [ipAddress] The IP address of the server. + * The service endpoint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ipAddress?: string; + readonly serviceEndpoint?: string; /** - * @member {string} [osType] The OS type of the server. + * The service resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osType?: string; + readonly serviceResourceId?: string; /** - * @member {string} [agentVersion] The version of the scout component on the - * server. + * The service container Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - agentVersion?: string; + readonly serviceContainerId?: string; /** - * @member {Date} [lastHeartbeat] The last heartbeat received from the - * server. + * The data plane Uri. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastHeartbeat?: Date; + readonly dataPlaneUri?: string; /** - * @member {string} [versionStatus] Version status + * The control plane Uri. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - versionStatus?: string; + readonly controlPlaneUri?: string; /** - * @member {MobilityServiceUpdate[]} [mobilityServiceUpdates] The list of the - * mobility service updates available on the Process Server. + * The source agent identity details. */ - mobilityServiceUpdates?: MobilityServiceUpdate[]; + sourceAgentIdentityDetails?: IdentityProviderDetails; /** - * @member {string} [hostId] The agent generated Id. + * The list of process servers. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hostId?: string; + readonly processServers?: ProcessServerDetails[]; /** - * @member {string} [machineCount] The servers configured with this PS. + * The list of RCM proxies. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - machineCount?: string; + readonly rcmProxies?: RcmProxyDetails[]; /** - * @member {string} [replicationPairCount] The number of replication pairs - * configured in this PS. + * The list of push installers. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - replicationPairCount?: string; + readonly pushInstallers?: PushInstallerDetails[]; /** - * @member {string} [systemLoad] The percentage of the system load. + * The list of replication agents. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - systemLoad?: string; + readonly replicationAgents?: ReplicationAgentDetails[]; /** - * @member {string} [systemLoadStatus] The system load status. + * The list of reprotect agents. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - systemLoadStatus?: string; + readonly reprotectAgents?: ReprotectAgentDetails[]; /** - * @member {string} [cpuLoad] The percentage of the CPU load. + * The list of Mars agents. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - cpuLoad?: string; + readonly marsAgents?: MarsAgentDetails[]; /** - * @member {string} [cpuLoadStatus] The CPU load status. + * The list of DRAs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - cpuLoadStatus?: string; + readonly dras?: DraDetails[]; /** - * @member {number} [totalMemoryInBytes] The total memory. + * The list of agent details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - totalMemoryInBytes?: number; + readonly agentDetails?: AgentDetails[]; +} + +/** + * InMageRcmFailback discovered VM details. + */ +export interface InMageRcmFailbackDiscoveredProtectedVmDetails { /** - * @member {number} [availableMemoryInBytes] The available memory. + * The VCenter Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - availableMemoryInBytes?: number; + readonly vCenterId?: string; /** - * @member {string} [memoryUsageStatus] The memory usage status. + * The VCenter fqdn. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - memoryUsageStatus?: string; + readonly vCenterFqdn?: string; /** - * @member {number} [totalSpaceInBytes] The total space. + * The list of datastores. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - totalSpaceInBytes?: number; + readonly datastores?: string[]; /** - * @member {number} [availableSpaceInBytes] The available space. + * The list of IP addresses. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - availableSpaceInBytes?: number; + readonly ipAddresses?: string[]; /** - * @member {string} [spaceUsageStatus] The space usage status. + * The VMware tools status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - spaceUsageStatus?: string; + readonly vmwareToolsStatus?: string; /** - * @member {string} [psServiceStatus] The PS service status. + * The VM power status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - psServiceStatus?: string; + readonly powerStatus?: string; /** - * @member {Date} [sslCertExpiryDate] The PS SSL cert expiry date. + * The VM fqdn. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sslCertExpiryDate?: Date; + readonly vmFqdn?: string; /** - * @member {number} [sslCertExpiryRemainingDays] CS SSL cert expiry date. + * The VM's OS name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sslCertExpiryRemainingDays?: number; + readonly osName?: string; /** - * @member {string} [osVersion] OS Version of the process server. Note: This - * will get populated if user has CS version greater than 9.12.0.0. + * The SDS created timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osVersion?: string; + readonly createdTimestamp?: Date; /** - * @member {HealthError[]} [healthErrors] Health errors. + * The SDS updated timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - healthErrors?: HealthError[]; + readonly updatedTimestamp?: Date; /** - * @member {Date} [agentExpiryDate] Agent expiry date. + * A value indicating whether the VM is deleted. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - agentExpiryDate?: Date; + readonly isDeleted?: boolean; /** - * @member {VersionDetails} [agentVersionDetails] The agent version details. + * The last time when SDS information discovered in SRS. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - agentVersionDetails?: VersionDetails; + readonly lastDiscoveryTimeInUtc?: Date; } /** - * @interface - * An interface representing ProtectableItemProperties. - * Replication protected item custom data details. - * + * Event details for InMageRcmFailback provider. */ -export interface ProtectableItemProperties { - /** - * @member {string} [friendlyName] The name. - */ - friendlyName?: string; +export interface InMageRcmFailbackEventDetails { /** - * @member {string} [protectionStatus] The protection status. + * Polymorphic Discriminator */ - protectionStatus?: string; + instanceType: "InMageRcmFailback"; /** - * @member {string} [replicationProtectedItemId] The ARM resource of - * protected items. + * The protected item name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - replicationProtectedItemId?: string; + readonly protectedItemName?: string; /** - * @member {string} [recoveryServicesProviderId] The recovery provider ARM - * Id. + * The protected item name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryServicesProviderId?: string; + readonly vmName?: string; /** - * @member {string[]} [protectionReadinessErrors] The Current protection - * readiness errors. + * The appliance name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - protectionReadinessErrors?: string[]; + readonly applianceName?: string; /** - * @member {string[]} [supportedReplicationProviders] The list of replication - * providers supported for the protectable item. + * The server type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - supportedReplicationProviders?: string[]; + readonly serverType?: string; /** - * @member {ConfigurationSettingsUnion} [customDetails] The Replication - * provider custom settings. + * The component display name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - customDetails?: ConfigurationSettingsUnion; + readonly componentDisplayName?: string; } /** - * @interface - * An interface representing ProtectableItem. - * Replication protected item - * - * @extends Resource + * InMageRcmFailback mobility agent details. */ -export interface ProtectableItem extends Resource { +export interface InMageRcmFailbackMobilityAgentDetails { /** - * @member {ProtectableItemProperties} [properties] The custom data. + * The agent version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: ProtectableItemProperties; + readonly version?: string; + /** + * The latest agent version available. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly latestVersion?: string; + /** + * The driver version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly driverVersion?: string; + /** + * The latest upgradeable version available without reboot. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly latestUpgradableVersionWithoutReboot?: string; + /** + * The agent version expiry date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly agentVersionExpiryDate?: Date; + /** + * The driver version expiry date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly driverVersionExpiryDate?: Date; + /** + * The time of the last heartbeat received from the agent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastHeartbeatUtc?: Date; + /** + * The whether update is possible or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reasonsBlockingUpgrade?: AgentUpgradeBlockedReason[]; + /** + * A value indicating whether agent is upgradeable or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isUpgradeable?: string; } /** - * @interface - * An interface representing ProtectableItemQueryParameter. - * Query parameter to enumerate Protectable items. - * + * InMageRcmFailback NIC details. */ -export interface ProtectableItemQueryParameter { +export interface InMageRcmFailbackNicDetails { /** - * @member {string} [state] State of the Protectable item query filter. + * The mac address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - state?: string; + readonly macAddress?: string; + /** + * The network name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly networkName?: string; + /** + * The adapter type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly adapterType?: string; + /** + * The IP address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourceIpAddress?: string; } /** - * @interface - * An interface representing ProtectedItemsQueryParameter. - * Query parameter to enumerate protected items. - * + * Provider specific input for InMageRcmFailback failover. */ -export interface ProtectedItemsQueryParameter { +export interface InMageRcmFailbackPlannedFailoverProviderInput { /** - * @member {string} [sourceFabricName] The source fabric name filter. + * Polymorphic Discriminator */ - sourceFabricName?: string; + instanceType: "InMageRcmFailback"; /** - * @member {string} [recoveryPlanName] The recovery plan filter. + * The recovery point type. Possible values include: 'ApplicationConsistent', 'CrashConsistent' */ - recoveryPlanName?: string; + recoveryPointType: InMageRcmFailbackRecoveryPointType; +} + +/** + * InMageRcmFailback policy creation input. + */ +export interface InMageRcmFailbackPolicyCreationInput { /** - * @member {string} [vCenterName] The vCenter name filter. + * Polymorphic Discriminator */ - vCenterName?: string; + instanceType: "InMageRcmFailback"; /** - * @member {string} [instanceType] The replication provider type. + * The crash consistent snapshot frequency (in minutes). */ - instanceType?: string; + crashConsistentFrequencyInMinutes?: number; /** - * @member {MultiVmGroupCreateOption} [multiVmGroupCreateOption] Whether - * Multi VM group is auto created or specified by user. Possible values - * include: 'AutoCreated', 'UserSpecified' + * The app consistent snapshot frequency (in minutes). */ - multiVmGroupCreateOption?: MultiVmGroupCreateOption; + appConsistentFrequencyInMinutes?: number; } /** - * @interface - * An interface representing ProtectionContainerFabricSpecificDetails. - * Base class for fabric specific details of container. - * + * InMageRcm failback specific policy details. */ -export interface ProtectionContainerFabricSpecificDetails { +export interface InMageRcmFailbackPolicyDetails { /** - * @member {string} [instanceType] Gets the class type. Overriden in derived - * classes. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Polymorphic Discriminator */ - readonly instanceType?: string; + instanceType: "InMageRcmFailback"; + /** + * The app consistent snapshot frequency in minutes. + */ + appConsistentFrequencyInMinutes?: number; + /** + * The crash consistent snapshot frequency in minutes. + */ + crashConsistentFrequencyInMinutes?: number; } /** - * @interface - * An interface representing ProtectionContainerProperties. - * Protection profile custom data details. - * + * InMageRcmFailback disk level sync details. */ -export interface ProtectionContainerProperties { +export interface InMageRcmFailbackSyncDetails { /** - * @member {string} [fabricFriendlyName] Fabric friendly name. + * The progress health. Possible values include: 'None', 'InProgress', 'SlowProgress', + * 'NoProgress', 'Queued' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - fabricFriendlyName?: string; + readonly progressHealth?: DiskReplicationProgressHealth; /** - * @member {string} [friendlyName] The name. + * The transferred bytes from source VM to azure for the disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - friendlyName?: string; + readonly transferredBytes?: number; /** - * @member {string} [fabricType] The fabric type. + * The bytes transferred in last 15 minutes from source VM to target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - fabricType?: string; + readonly last15MinutesTransferredBytes?: number; /** - * @member {number} [protectedItemCount] Number of protected PEs + * The time of the last data transfer from source VM to target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - protectedItemCount?: number; + readonly lastDataTransferTimeUtc?: string; /** - * @member {string} [pairingStatus] The pairing status of this cloud. + * The total processed bytes. This includes bytes that are transferred from source VM to target + * and matched bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - pairingStatus?: string; + readonly processedBytes?: number; /** - * @member {string} [role] The role of this cloud. + * The start time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - role?: string; + readonly startTime?: string; /** - * @member {ProtectionContainerFabricSpecificDetails} [fabricSpecificDetails] - * Fabric specific details. + * The last refresh time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - fabricSpecificDetails?: ProtectionContainerFabricSpecificDetails; -} - -/** - * @interface - * An interface representing ProtectionContainer. - * Protection container details. - * - * @extends Resource - */ -export interface ProtectionContainer extends Resource { + readonly lastRefreshTime?: string; /** - * @member {ProtectionContainerProperties} [properties] The custom data. + * Progress in percentage. Progress percentage is calculated based on processed bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: ProtectionContainerProperties; + readonly progressPercentage?: number; } /** - * @interface - * An interface representing ProtectionContainerMappingProperties. - * Protection container mapping properties. - * + * InMageRcmFailback protected disk details. */ -export interface ProtectionContainerMappingProperties { +export interface InMageRcmFailbackProtectedDiskDetails { /** - * @member {string} [targetProtectionContainerId] Paired protection container - * ARM ID. + * The disk Id (reported by source agent). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - targetProtectionContainerId?: string; + readonly diskId?: string; /** - * @member {string} [targetProtectionContainerFriendlyName] Friendly name of - * paired container. + * The disk name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - targetProtectionContainerFriendlyName?: string; + readonly diskName?: string; /** - * @member {ProtectionContainerMappingProviderSpecificDetailsUnion} - * [providerSpecificDetails] Provider specific provider details. + * A value indicating whether the disk is the OS disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - providerSpecificDetails?: ProtectionContainerMappingProviderSpecificDetailsUnion; + readonly isOSDisk?: string; /** - * @member {string} [health] Health of pairing. + * The disk capacity in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - health?: string; + readonly capacityInBytes?: number; /** - * @member {HealthError[]} [healthErrorDetails] Health error. + * The disk Uuid (reported by vCenter). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - healthErrorDetails?: HealthError[]; + readonly diskUuid?: string; /** - * @member {string} [policyId] Policy ARM Id. + * The data pending in log data store in MB. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - policyId?: string; + readonly dataPendingInLogDataStoreInMB?: number; /** - * @member {string} [state] Association Status + * The data pending at source agent in MB. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - state?: string; + readonly dataPendingAtSourceAgentInMB?: number; /** - * @member {string} [sourceProtectionContainerFriendlyName] Friendly name of - * source protection container. + * A value indicating whether initial replication is complete or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceProtectionContainerFriendlyName?: string; + readonly isInitialReplicationComplete?: string; /** - * @member {string} [sourceFabricFriendlyName] Friendly name of source - * fabric. + * The initial replication details. */ - sourceFabricFriendlyName?: string; + irDetails?: InMageRcmFailbackSyncDetails; /** - * @member {string} [targetFabricFriendlyName] Friendly name of target - * fabric. + * The resync details. */ - targetFabricFriendlyName?: string; + resyncDetails?: InMageRcmFailbackSyncDetails; /** - * @member {string} [policyFriendlyName] Friendly name of replication policy. + * The last sync time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - policyFriendlyName?: string; + readonly lastSyncTime?: Date; } /** - * @interface - * An interface representing ProtectionContainerMapping. - * Protection container mapping object. - * - * @extends Resource + * InMageRcmFailback provider specific details. */ -export interface ProtectionContainerMapping extends Resource { +export interface InMageRcmFailbackReplicationDetails { /** - * @member {ProtectionContainerMappingProperties} [properties] The custom - * data. + * Polymorphic Discriminator */ - properties?: ProtectionContainerMappingProperties; -} - -/** - * @interface - * An interface representing RcmAzureMigrationPolicyDetails. - * RCM based Azure migration specific policy details. - * - */ -export interface RcmAzureMigrationPolicyDetails { + instanceType: "InMageRcmFailback"; /** - * @member {string} instanceType Polymorphic Discriminator + * The virtual machine internal identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "RcmAzureMigration"; + readonly internalIdentifier?: string; /** - * @member {number} [recoveryPointThresholdInMinutes] The recovery point - * threshold in minutes. + * The ARM Id of the azure VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryPointThresholdInMinutes?: number; + readonly azureVirtualMachineId?: string; /** - * @member {number} [recoveryPointHistory] The duration in minutes until - * which the recovery points need to be stored. + * The multi VM group name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryPointHistory?: number; + readonly multiVmGroupName?: string; /** - * @member {number} [appConsistentFrequencyInMinutes] The app consistent - * snapshot frequency in minutes. + * The reprotect agent Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - appConsistentFrequencyInMinutes?: number; + readonly reprotectAgentId?: string; /** - * @member {MultiVmSyncStatus} [multiVmSyncStatus] A value indicating whether - * multi-VM sync has to be enabled. Possible values include: 'Enabled', - * 'Disabled' + * The reprotect agent name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - multiVmSyncStatus?: MultiVmSyncStatus; + readonly reprotectAgentName?: string; /** - * @member {number} [crashConsistentFrequencyInMinutes] The crash consistent - * snapshot frequency in minutes. + * The type of the OS on the VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - crashConsistentFrequencyInMinutes?: number; -} - -/** - * @interface - * An interface representing RecoveryPlanProperties. - * Recovery plan custom details. - * - */ -export interface RecoveryPlanProperties { + readonly osType?: string; /** - * @member {string} [friendlyName] The friendly name. + * The log storage account ARM Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - friendlyName?: string; + readonly logStorageAccountId?: string; /** - * @member {string} [primaryFabricId] The primary fabric Id. + * The target vCenter Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - primaryFabricId?: string; + readonly targetvCenterId?: string; /** - * @member {string} [primaryFabricFriendlyName] The primary fabric friendly - * name. + * The target datastore name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - primaryFabricFriendlyName?: string; + readonly targetDataStoreName?: string; /** - * @member {string} [recoveryFabricId] The recovery fabric Id. + * The target VM name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryFabricId?: string; + readonly targetVmName?: string; /** - * @member {string} [recoveryFabricFriendlyName] The recovery fabric friendly - * name. + * The initial replication progress percentage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryFabricFriendlyName?: string; + readonly initialReplicationProgressPercentage?: number; /** - * @member {string} [failoverDeploymentModel] The failover deployment model. + * The initial replication processed bytes. This includes sum of total bytes transferred and + * matched bytes on all selected disks in source VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - failoverDeploymentModel?: string; + readonly initialReplicationProcessedBytes?: number; /** - * @member {string[]} [replicationProviders] The list of replication - * providers. + * The initial replication transferred bytes from source VM to target for all selected disks on + * source VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - replicationProviders?: string[]; + readonly initialReplicationTransferredBytes?: number; /** - * @member {string[]} [allowedOperations] The list of allowed operations. + * The initial replication progress health. Possible values include: 'None', 'InProgress', + * 'SlowProgress', 'NoProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - allowedOperations?: string[]; + readonly initialReplicationProgressHealth?: VmReplicationProgressHealth; /** - * @member {Date} [lastPlannedFailoverTime] The start time of the last - * planned failover. + * The resync progress percentage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastPlannedFailoverTime?: Date; + readonly resyncProgressPercentage?: number; /** - * @member {Date} [lastUnplannedFailoverTime] The start time of the last - * unplanned failover. + * The resync processed bytes. This includes sum of total bytes transferred and matched bytes on + * all selected disks in source VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastUnplannedFailoverTime?: Date; + readonly resyncProcessedBytes?: number; /** - * @member {Date} [lastTestFailoverTime] The start time of the last test - * failover. + * The resync transferred bytes from source VM to target for all selected disks on source VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastTestFailoverTime?: Date; + readonly resyncTransferredBytes?: number; /** - * @member {CurrentScenarioDetails} [currentScenario] The current scenario - * details. + * The resync progress health. Possible values include: 'None', 'InProgress', 'SlowProgress', + * 'NoProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - currentScenario?: CurrentScenarioDetails; + readonly resyncProgressHealth?: VmReplicationProgressHealth; /** - * @member {string} [currentScenarioStatus] The recovery plan status. + * A value indicating whether resync is required. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - currentScenarioStatus?: string; + readonly resyncRequired?: string; /** - * @member {string} [currentScenarioStatusDescription] The recovery plan - * status description. + * The resync state. Possible values include: 'None', 'PreparedForResynchronization', + * 'StartedResynchronization' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - currentScenarioStatusDescription?: string; + readonly resyncState?: ResyncState; /** - * @member {RecoveryPlanGroup[]} [groups] The recovery plan groups. + * The list of protected disks. */ - groups?: RecoveryPlanGroup[]; -} - -/** - * @interface - * An interface representing RecoveryPlan. - * Recovery plan details. - * - * @extends Resource - */ -export interface RecoveryPlan extends Resource { + protectedDisks?: InMageRcmFailbackProtectedDiskDetails[]; /** - * @member {RecoveryPlanProperties} [properties] The custom details. + * The mobility agent information. */ - properties?: RecoveryPlanProperties; -} - -/** - * Contains the possible cases for RecoveryPlanProviderSpecificFailoverInput. - */ -export type RecoveryPlanProviderSpecificFailoverInputUnion = RecoveryPlanProviderSpecificFailoverInput | RecoveryPlanA2AFailoverInput | RecoveryPlanHyperVReplicaAzureFailbackInput | RecoveryPlanHyperVReplicaAzureFailoverInput | RecoveryPlanInMageAzureV2FailoverInput | RecoveryPlanInMageFailoverInput; - -/** - * @interface - * An interface representing RecoveryPlanProviderSpecificFailoverInput. - * Recovery plan provider specific failover input base class. - * - */ -export interface RecoveryPlanProviderSpecificFailoverInput { + mobilityAgentDetails?: InMageRcmFailbackMobilityAgentDetails; /** - * @member {string} instanceType Polymorphic Discriminator + * The network details. */ - instanceType: "RecoveryPlanProviderSpecificFailoverInput"; -} - -/** - * @interface - * An interface representing RecoveryPlanA2AFailoverInput. - * Recovery plan A2A failover input. - * - */ -export interface RecoveryPlanA2AFailoverInput { + vmNics?: InMageRcmFailbackNicDetails[]; /** - * @member {string} instanceType Polymorphic Discriminator + * The last planned failover start time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "A2A"; + readonly lastPlannedFailoverStartTime?: Date; /** - * @member {A2ARpRecoveryPointType} recoveryPointType The recovery point - * type. Possible values include: 'Latest', 'LatestApplicationConsistent', - * 'LatestCrashConsistent', 'LatestProcessed' + * The last planned failover status. Possible values include: 'Succeeded', 'Failed', 'Cancelled', + * 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryPointType: A2ARpRecoveryPointType; + readonly lastPlannedFailoverStatus?: PlannedFailoverStatus; /** - * @member {string} [cloudServiceCreationOption] A value indicating whether - * to use recovery cloud service for TFO or not. + * The discovered VM information. */ - cloudServiceCreationOption?: string; + discoveredVmDetails?: InMageRcmFailbackDiscoveredProtectedVmDetails; /** - * @member {MultiVmSyncPointOption} [multiVmSyncPointOption] A value - * indicating whether multi VM sync enabled VMs should use multi VM sync - * points for failover. Possible values include: - * 'UseMultiVmSyncRecoveryPoint', 'UsePerVmRecoveryPoint' + * The policy Id used by the forward replication. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - multiVmSyncPointOption?: MultiVmSyncPointOption; + readonly lastUsedPolicyId?: string; + /** + * The policy friendly name used by the forward replication. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUsedPolicyFriendlyName?: string; + /** + * A value indicating whether agent registration was successful after failover. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isAgentRegistrationSuccessfulAfterFailover?: boolean; } /** - * @interface - * An interface representing RecoveryPlanAutomationRunbookActionDetails. - * Recovery plan Automation runbook action details. - * + * InMageRcmFailback specific provider input. */ -export interface RecoveryPlanAutomationRunbookActionDetails { +export interface InMageRcmFailbackReprotectInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ - instanceType: "AutomationRunbookActionDetails"; + instanceType: "InMageRcmFailback"; /** - * @member {string} [runbookId] The runbook ARM Id. + * The process server Id. */ - runbookId?: string; + processServerId: string; /** - * @member {string} [timeout] The runbook timeout. + * The run as account Id. */ - timeout?: string; + runAsAccountId?: string; /** - * @member {RecoveryPlanActionLocation} fabricLocation The fabric location. - * Possible values include: 'Primary', 'Recovery' + * The Policy Id. */ - fabricLocation: RecoveryPlanActionLocation; + policyId: string; } /** - * @interface - * An interface representing RecoveryPlanGroupTaskDetails. - * This class represents the recovery plan group task. - * + * InMageRcm last source agent upgrade error details. */ -export interface RecoveryPlanGroupTaskDetails { +export interface InMageRcmLastAgentUpgradeErrorDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "RecoveryPlanGroupTaskDetails"; + readonly errorCode?: string; /** - * @member {ASRTask[]} [childTasks] The child tasks. + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - childTasks?: ASRTask[]; + readonly errorMessage?: string; /** - * @member {string} [name] The name. + * The possible causes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly possibleCauses?: string; /** - * @member {string} [groupId] The group identifier. + * The recommended action. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - groupId?: string; + readonly recommendedAction?: string; /** - * @member {string} [rpGroupType] The group type. + * The error message parameters. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - rpGroupType?: string; + readonly errorMessageParameters?: { [propertyName: string]: string }; + /** + * The error tags. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly errorTags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing RecoveryPlanHyperVReplicaAzureFailbackInput. - * Recovery plan HVR Azure failback input. - * + * InMageRcm mobility agent details. */ -export interface RecoveryPlanHyperVReplicaAzureFailbackInput { +export interface InMageRcmMobilityAgentDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * The agent version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "HyperVReplicaAzureFailback"; + readonly version?: string; /** - * @member {DataSyncStatus} dataSyncOption The data sync option. Possible - * values include: 'ForDownTime', 'ForSynchronization' + * The latest agent version available. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataSyncOption: DataSyncStatus; + readonly latestVersion?: string; /** - * @member {AlternateLocationRecoveryOption} recoveryVmCreationOption The ALR - * option. Possible values include: 'CreateVmIfNotFound', 'NoAction' + * The latest agent version release date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryVmCreationOption: AlternateLocationRecoveryOption; -} - -/** - * @interface - * An interface representing RecoveryPlanHyperVReplicaAzureFailoverInput. - * Recovery plan HVR Azure failover input. - * - */ -export interface RecoveryPlanHyperVReplicaAzureFailoverInput { + readonly latestAgentReleaseDate?: string; /** - * @member {string} instanceType Polymorphic Discriminator + * The driver version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "HyperVReplicaAzure"; + readonly driverVersion?: string; /** - * @member {string} vaultLocation The vault location. + * The latest upgradeable version available without reboot. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vaultLocation: string; + readonly latestUpgradableVersionWithoutReboot?: string; /** - * @member {string} [primaryKekCertificatePfx] The primary KEK certificate - * PFX. + * The agent version expiry date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - primaryKekCertificatePfx?: string; + readonly agentVersionExpiryDate?: Date; /** - * @member {string} [secondaryKekCertificatePfx] The secondary KEK - * certificate PFX. + * The driver version expiry date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - secondaryKekCertificatePfx?: string; + readonly driverVersionExpiryDate?: Date; /** - * @member {HyperVReplicaAzureRpRecoveryPointType} [recoveryPointType] The - * recovery point type. Possible values include: 'Latest', - * 'LatestApplicationConsistent', 'LatestProcessed' + * The time of the last heartbeat received from the agent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryPointType?: HyperVReplicaAzureRpRecoveryPointType; + readonly lastHeartbeatUtc?: Date; + /** + * The whether update is possible or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reasonsBlockingUpgrade?: AgentUpgradeBlockedReason[]; + /** + * A value indicating whether agent is upgradeable or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isUpgradeable?: string; } /** - * @interface - * An interface representing RecoveryPlanInMageAzureV2FailoverInput. - * Recovery plan InMageAzureV2 failover input. - * + * InMageRcm NIC details. */ -export interface RecoveryPlanInMageAzureV2FailoverInput { +export interface InMageRcmNicDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * The NIC Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "InMageAzureV2"; + readonly nicId?: string; /** - * @member {string} vaultLocation The vault location. + * A value indicating whether this is the primary NIC. */ - vaultLocation: string; + isPrimaryNic?: string; /** - * @member {InMageV2RpRecoveryPointType} recoveryPointType The recovery point - * type. Possible values include: 'Latest', 'LatestApplicationConsistent', - * 'LatestCrashConsistent', 'LatestProcessed' + * A value indicating whether this NIC is selected for failover. */ - recoveryPointType: InMageV2RpRecoveryPointType; + isSelectedForFailover?: string; /** - * @member {string} [useMultiVmSyncPoint] A value indicating whether multi VM - * sync enabled VMs should use multi VM sync points for failover. + * The source IP address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - useMultiVmSyncPoint?: string; -} - -/** - * @interface - * An interface representing RecoveryPlanInMageFailoverInput. - * Recovery plan InMage failover input. - * - */ -export interface RecoveryPlanInMageFailoverInput { + readonly sourceIPAddress?: string; /** - * @member {string} instanceType Polymorphic Discriminator + * The source IP address type. Possible values include: 'Dynamic', 'Static' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "InMage"; + readonly sourceIPAddressType?: EthernetAddressType; /** - * @member {RpInMageRecoveryPointType} recoveryPointType The recovery point - * type. Possible values include: 'LatestTime', 'LatestTag', 'Custom' + * Source network Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryPointType: RpInMageRecoveryPointType; -} - -/** - * @interface - * An interface representing RecoveryPlanManualActionDetails. - * Recovery plan manual action details. - * - */ -export interface RecoveryPlanManualActionDetails { + readonly sourceNetworkId?: string; /** - * @member {string} instanceType Polymorphic Discriminator + * Source subnet name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "ManualActionDetails"; + readonly sourceSubnetName?: string; /** - * @member {string} [description] The manual action description. + * The target IP address. */ - description?: string; -} - -/** - * @interface - * An interface representing RecoveryPlanPlannedFailoverInputProperties. - * Recovery plan planned failover input properties. - * - */ -export interface RecoveryPlanPlannedFailoverInputProperties { + targetIPAddress?: string; /** - * @member {PossibleOperationsDirections} failoverDirection The failover - * direction. Possible values include: 'PrimaryToRecovery', - * 'RecoveryToPrimary' + * The target IP address type. Possible values include: 'Dynamic', 'Static' */ - failoverDirection: PossibleOperationsDirections; + targetIPAddressType?: EthernetAddressType; /** - * @member {RecoveryPlanProviderSpecificFailoverInputUnion[]} - * [providerSpecificDetails] The provider specific properties. + * Target subnet name. */ - providerSpecificDetails?: RecoveryPlanProviderSpecificFailoverInputUnion[]; -} - -/** - * @interface - * An interface representing RecoveryPlanPlannedFailoverInput. - * Recovery plan planned failover input. - * - */ -export interface RecoveryPlanPlannedFailoverInput { + targetSubnetName?: string; /** - * @member {RecoveryPlanPlannedFailoverInputProperties} properties The - * recovery plan planned failover input properties. + * Test subnet name. */ - properties: RecoveryPlanPlannedFailoverInputProperties; + testSubnetName?: string; + /** + * The test IP address. + */ + testIPAddress?: string; + /** + * The test IP address type. Possible values include: 'Dynamic', 'Static' + */ + testIPAddressType?: EthernetAddressType; } /** - * @interface - * An interface representing RecoveryPlanScriptActionDetails. - * Recovery plan script action details. - * + * InMageRcm NIC input. */ -export interface RecoveryPlanScriptActionDetails { +export interface InMageRcmNicInput { /** - * @member {string} instanceType Polymorphic Discriminator + * The NIC Id. */ - instanceType: "ScriptActionDetails"; + nicId: string; /** - * @member {string} path The script path. + * A value indicating whether this is the primary NIC. */ - path: string; + isPrimaryNic: string; /** - * @member {string} [timeout] The script timeout. + * A value indicating whether this NIC is selected for failover. */ - timeout?: string; + isSelectedForFailover?: string; /** - * @member {RecoveryPlanActionLocation} fabricLocation The fabric location. - * Possible values include: 'Primary', 'Recovery' + * Target subnet name. */ - fabricLocation: RecoveryPlanActionLocation; + targetSubnetName?: string; + /** + * The target static IP address. + */ + targetStaticIPAddress?: string; + /** + * The test subnet name. + */ + testSubnetName?: string; + /** + * The test static IP address. + */ + testStaticIPAddress?: string; } /** - * @interface - * An interface representing RecoveryPlanShutdownGroupTaskDetails. - * This class represents the recovery plan shutdown group task details. - * + * InMageRcm policy creation input. */ -export interface RecoveryPlanShutdownGroupTaskDetails { +export interface InMageRcmPolicyCreationInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ - instanceType: "RecoveryPlanShutdownGroupTaskDetails"; + instanceType: "InMageRcm"; /** - * @member {ASRTask[]} [childTasks] The child tasks. + * The duration in minutes until which the recovery points need to be stored. */ - childTasks?: ASRTask[]; + recoveryPointHistoryInMinutes?: number; /** - * @member {string} [name] The name. + * The crash consistent snapshot frequency (in minutes). */ - name?: string; + crashConsistentFrequencyInMinutes?: number; /** - * @member {string} [groupId] The group identifier. + * The app consistent snapshot frequency (in minutes). */ - groupId?: string; + appConsistentFrequencyInMinutes?: number; /** - * @member {string} [rpGroupType] The group type. + * A value indicating whether multi-VM sync has to be enabled. */ - rpGroupType?: string; + enableMultiVmSync?: string; } /** - * @interface - * An interface representing RecoveryPlanTestFailoverCleanupInputProperties. - * Recovery plan test failover cleanup input properties. - * + * InMageRcm specific policy details. */ -export interface RecoveryPlanTestFailoverCleanupInputProperties { +export interface InMageRcmPolicyDetails { /** - * @member {string} [comments] The test failover cleanup comments. + * Polymorphic Discriminator */ - comments?: string; -} - -/** - * @interface - * An interface representing RecoveryPlanTestFailoverCleanupInput. - * Recovery plan test failover cleanup input. - * - */ -export interface RecoveryPlanTestFailoverCleanupInput { + instanceType: "InMageRcm"; /** - * @member {RecoveryPlanTestFailoverCleanupInputProperties} properties The - * recovery plan test failover cleanup input properties. + * The duration in minutes until which the recovery points need to be stored. */ - properties: RecoveryPlanTestFailoverCleanupInputProperties; + recoveryPointHistoryInMinutes?: number; + /** + * The app consistent snapshot frequency in minutes. + */ + appConsistentFrequencyInMinutes?: number; + /** + * The crash consistent snapshot frequency in minutes. + */ + crashConsistentFrequencyInMinutes?: number; + /** + * A value indicating whether multi-VM sync has to be enabled. + */ + enableMultiVmSync?: string; } /** - * @interface - * An interface representing RecoveryPlanTestFailoverInputProperties. - * Recovery plan test failover input properties. - * + * InMageRcm disk level sync details. */ -export interface RecoveryPlanTestFailoverInputProperties { +export interface InMageRcmSyncDetails { /** - * @member {PossibleOperationsDirections} failoverDirection The failover - * direction. Possible values include: 'PrimaryToRecovery', - * 'RecoveryToPrimary' + * The progress health. Possible values include: 'None', 'InProgress', 'SlowProgress', + * 'NoProgress', 'Queued' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - failoverDirection: PossibleOperationsDirections; + readonly progressHealth?: DiskReplicationProgressHealth; /** - * @member {string} networkType The network type to be used for test - * failover. + * The transferred bytes from source VM to azure for the disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - networkType: string; + readonly transferredBytes?: number; /** - * @member {string} [networkId] The Id of the network to be used for test - * failover. + * The bytes transferred in last 15 minutes from source VM to azure. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - networkId?: string; + readonly last15MinutesTransferredBytes?: number; /** - * @member {string} [skipTestFailoverCleanup] A value indicating whether the - * test failover cleanup is to be skipped. + * The time of the last data transfer from source VM to azure. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - skipTestFailoverCleanup?: string; + readonly lastDataTransferTimeUtc?: string; /** - * @member {RecoveryPlanProviderSpecificFailoverInputUnion[]} - * [providerSpecificDetails] The provider specific properties. + * The total processed bytes. This includes bytes that are transferred from source VM to azure + * and matched bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - providerSpecificDetails?: RecoveryPlanProviderSpecificFailoverInputUnion[]; -} - -/** - * @interface - * An interface representing RecoveryPlanTestFailoverInput. - * Recovery plan test failover input. - * - */ -export interface RecoveryPlanTestFailoverInput { + readonly processedBytes?: number; /** - * @member {RecoveryPlanTestFailoverInputProperties} properties The recovery - * plan test failover input properties. + * The start time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties: RecoveryPlanTestFailoverInputProperties; + readonly startTime?: string; + /** + * The last refresh time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastRefreshTime?: string; + /** + * Progress in percentage. Progress percentage is calculated based on processed bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly progressPercentage?: number; } /** - * @interface - * An interface representing RecoveryPlanUnplannedFailoverInputProperties. - * Recovery plan unplanned failover input properties. - * + * InMageRcm protected disk details. */ -export interface RecoveryPlanUnplannedFailoverInputProperties { +export interface InMageRcmProtectedDiskDetails { /** - * @member {PossibleOperationsDirections} failoverDirection The failover - * direction. Possible values include: 'PrimaryToRecovery', - * 'RecoveryToPrimary' + * The disk Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - failoverDirection: PossibleOperationsDirections; + readonly diskId?: string; /** - * @member {SourceSiteOperations} sourceSiteOperations A value indicating - * whether source site operations are required. Possible values include: - * 'Required', 'NotRequired' + * The disk name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceSiteOperations: SourceSiteOperations; + readonly diskName?: string; /** - * @member {RecoveryPlanProviderSpecificFailoverInputUnion[]} - * [providerSpecificDetails] The provider specific properties. + * A value indicating whether the disk is the OS disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - providerSpecificDetails?: RecoveryPlanProviderSpecificFailoverInputUnion[]; -} - -/** - * @interface - * An interface representing RecoveryPlanUnplannedFailoverInput. - * Recovery plan unplanned failover input. - * - */ -export interface RecoveryPlanUnplannedFailoverInput { + readonly isOSDisk?: string; /** - * @member {RecoveryPlanUnplannedFailoverInputProperties} properties The - * recovery plan unplanned failover input properties. + * The disk capacity in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties: RecoveryPlanUnplannedFailoverInputProperties; -} + readonly capacityInBytes?: number; + /** + * The log storage account ARM Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly logStorageAccountId?: string; + /** + * The DiskEncryptionSet ARM Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly diskEncryptionSetId?: string; + /** + * The ARM Id of the seed managed disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly seedManagedDiskId?: string; + /** + * The ARM Id of the target managed disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly targetManagedDiskId?: string; + /** + * The disk type. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + */ + diskType?: DiskAccountType; + /** + * The data pending in log data store in MB. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataPendingInLogDataStoreInMB?: number; + /** + * The data pending at source agent in MB. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataPendingAtSourceAgentInMB?: number; + /** + * A value indicating whether initial replication is complete or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isInitialReplicationComplete?: string; + /** + * The initial replication details. + */ + irDetails?: InMageRcmSyncDetails; + /** + * The resync details. + */ + resyncDetails?: InMageRcmSyncDetails; +} /** - * @interface - * An interface representing RecoveryPointProperties. - * Recovery point properties. - * + * InMageRcm provider specific container mapping details. */ -export interface RecoveryPointProperties { - /** - * @member {Date} [recoveryPointTime] The recovery point time. - */ - recoveryPointTime?: Date; +export interface InMageRcmProtectionContainerMappingDetails { /** - * @member {string} [recoveryPointType] The recovery point type: - * ApplicationConsistent, CrashConsistent. + * Polymorphic Discriminator */ - recoveryPointType?: string; + instanceType: "InMageRcm"; /** - * @member {ProviderSpecificRecoveryPointDetailsUnion} - * [providerSpecificDetails] The provider specific details for the recovery - * point. + * A value indicating whether the flag for enable agent auto upgrade. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - providerSpecificDetails?: ProviderSpecificRecoveryPointDetailsUnion; + readonly enableAgentAutoUpgrade?: string; } /** - * @interface - * An interface representing RecoveryPoint. - * Base class representing a recovery point. - * - * @extends Resource + * InMageRcm provider specific recovery point details. */ -export interface RecoveryPoint extends Resource { +export interface InMageRcmRecoveryPointDetails { /** - * @member {RecoveryPointProperties} [properties] Recovery point related - * data. + * Polymorphic Discriminator */ - properties?: RecoveryPointProperties; + instanceType: "InMageRcm"; + /** + * A value indicating whether the recovery point is multi VM consistent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isMultiVmSyncPoint?: string; } /** - * @interface - * An interface representing RecoveryServicesProviderProperties. - * Recovery services provider properties. - * + * InMageRcm provider specific details. */ -export interface RecoveryServicesProviderProperties { +export interface InMageRcmReplicationDetails { /** - * @member {string} [fabricType] Type of the site. + * Polymorphic Discriminator */ - fabricType?: string; + instanceType: "InMageRcm"; /** - * @member {string} [friendlyName] Friendly name of the DRA. + * The virtual machine internal identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - friendlyName?: string; + readonly internalIdentifier?: string; /** - * @member {string} [providerVersion] The provider version. + * The ARM Id of the discovered VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - providerVersion?: string; + readonly fabricDiscoveryMachineId?: string; /** - * @member {string} [serverVersion] The fabric provider. + * The multi VM group name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - serverVersion?: string; + readonly multiVmGroupName?: string; /** - * @member {string} [providerVersionState] DRA version status. + * The type of the discovered VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - providerVersionState?: string; + readonly discoveryType?: string; /** - * @member {Date} [providerVersionExpiryDate] Expiry date of the version. + * The process server Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - providerVersionExpiryDate?: Date; + readonly processServerId?: string; /** - * @member {string} [fabricFriendlyName] The fabric friendly name. + * The processor core count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - fabricFriendlyName?: string; + readonly processorCoreCount?: number; /** - * @member {Date} [lastHeartBeat] Time when last heartbeat was sent by the - * DRA. + * The allocated memory in MB. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastHeartBeat?: Date; + readonly allocatedMemoryInMB?: number; /** - * @member {string} [connectionStatus] A value indicating whether DRA is - * responsive. + * The process server name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - connectionStatus?: string; + readonly processServerName?: string; /** - * @member {number} [protectedItemCount] Number of protected VMs currently - * managed by the DRA. + * The run-as account Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - protectedItemCount?: number; + readonly runAsAccountId?: string; /** - * @member {string[]} [allowedScenarios] The scenarios allowed on this - * provider. + * The type of the OS on the VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - allowedScenarios?: string[]; + readonly osType?: string; /** - * @member {HealthError[]} [healthErrorDetails] The recovery services - * provider health error details. + * The firmware type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - healthErrorDetails?: HealthError[]; + readonly firmwareType?: string; /** - * @member {string} [draIdentifier] The DRA Id. + * The IP address of the primary network interface. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - draIdentifier?: string; + readonly primaryNicIpAddress?: string; /** - * @member {IdentityInformation} [identityDetails] The identity details. + * The target generation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - identityDetails?: IdentityInformation; + readonly targetGeneration?: string; /** - * @member {VersionDetails} [providerVersionDetails] The provider version - * details. + * License Type of the VM to be used. */ - providerVersionDetails?: VersionDetails; -} - -/** - * @interface - * An interface representing RecoveryServicesProvider. - * Provider details. - * - * @extends Resource - */ -export interface RecoveryServicesProvider extends Resource { + licenseType?: string; /** - * @member {RecoveryServicesProviderProperties} [properties] Provider - * properties. + * Target VM name. */ - properties?: RecoveryServicesProviderProperties; -} - -/** - * @interface - * An interface representing ReplicationProviderContainerUnmappingInput. - * Provider specific input for unpairing operations. - * - */ -export interface ReplicationProviderContainerUnmappingInput { + targetVmName?: string; /** - * @member {string} [instanceType] The class type. + * The target VM size. */ - instanceType?: string; -} - -/** - * @interface - * An interface representing RemoveProtectionContainerMappingInputProperties. - * Unpairing input properties. - * - */ -export interface RemoveProtectionContainerMappingInputProperties { + targetVmSize?: string; /** - * @member {ReplicationProviderContainerUnmappingInput} - * [providerSpecificInput] Provider specific input for unpairing. + * The target resource group Id. */ - providerSpecificInput?: ReplicationProviderContainerUnmappingInput; -} - -/** - * @interface - * An interface representing RemoveProtectionContainerMappingInput. - * Container unpairing input. - * - */ -export interface RemoveProtectionContainerMappingInput { + targetResourceGroupId?: string; /** - * @member {RemoveProtectionContainerMappingInputProperties} [properties] - * Configure protection input properties. + * The target location. */ - properties?: RemoveProtectionContainerMappingInputProperties; -} - -/** - * @interface - * An interface representing RenewCertificateInputProperties. - * Renew Certificate input properties. - * - */ -export interface RenewCertificateInputProperties { + targetLocation?: string; /** - * @member {string} [renewCertificateType] Renew certificate type. + * The target availability set Id. */ - renewCertificateType?: string; -} - -/** - * @interface - * An interface representing RenewCertificateInput. - * Certificate renewal input. - * - */ -export interface RenewCertificateInput { + targetAvailabilitySetId?: string; /** - * @member {RenewCertificateInputProperties} [properties] Renew certificate - * input properties. + * The target availability zone. */ - properties?: RenewCertificateInputProperties; -} - -/** - * @interface - * An interface representing ReplicationGroupDetails. - * Replication group details. This will be used in case of San and Wvr. - * - */ -export interface ReplicationGroupDetails { + targetAvailabilityZone?: string; /** - * @member {string} instanceType Polymorphic Discriminator + * The target proximity placement group Id. */ - instanceType: "ReplicationGroupDetails"; -} - -/** - * @interface - * An interface representing ReplicationProtectedItemProperties. - * Replication protected item custom data details. - * - */ -export interface ReplicationProtectedItemProperties { + targetProximityPlacementGroupId?: string; /** - * @member {string} [friendlyName] The name. + * The target boot diagnostics storage account ARM Id. */ - friendlyName?: string; + targetBootDiagnosticsStorageAccountId?: string; /** - * @member {string} [protectedItemType] The type of protected item type. + * The target network Id. */ - protectedItemType?: string; + targetNetworkId?: string; /** - * @member {string} [protectableItemId] The protected item ARM Id. + * The test network Id. */ - protectableItemId?: string; + testNetworkId?: string; /** - * @member {string} [recoveryServicesProviderId] The recovery provider ARM - * Id. + * The recovery point Id to which the VM was failed over. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryServicesProviderId?: string; + readonly failoverRecoveryPointId?: string; /** - * @member {string} [primaryFabricFriendlyName] The friendly name of the - * primary fabric. + * The last recovery point received time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - primaryFabricFriendlyName?: string; + readonly lastRecoveryPointReceived?: Date; /** - * @member {string} [primaryFabricProvider] The fabric provider of the - * primary fabric. + * The last recovery point objective value. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - primaryFabricProvider?: string; + readonly lastRpoInSeconds?: number; /** - * @member {string} [recoveryFabricFriendlyName] The friendly name of - * recovery fabric. + * The last recovery point objective calculated time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryFabricFriendlyName?: string; + readonly lastRpoCalculatedTime?: Date; /** - * @member {string} [recoveryFabricId] The Arm Id of recovery fabric. + * The last recovery point Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryFabricId?: string; + readonly lastRecoveryPointId?: string; /** - * @member {string} [primaryProtectionContainerFriendlyName] The name of - * primary protection container friendly name. + * The initial replication progress percentage. This is calculated based on total bytes processed + * for all disks in the source VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - primaryProtectionContainerFriendlyName?: string; + readonly initialReplicationProgressPercentage?: number; /** - * @member {string} [recoveryProtectionContainerFriendlyName] The name of - * recovery container friendly name. + * The initial replication processed bytes. This includes sum of total bytes transferred and + * matched bytes on all selected disks in source VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryProtectionContainerFriendlyName?: string; + readonly initialReplicationProcessedBytes?: number; /** - * @member {string} [protectionState] The protection status. + * The initial replication transferred bytes from source VM to azure for all selected disks on + * source VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - protectionState?: string; + readonly initialReplicationTransferredBytes?: number; /** - * @member {string} [protectionStateDescription] The protection state - * description. + * The initial replication progress health. Possible values include: 'None', 'InProgress', + * 'SlowProgress', 'NoProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - protectionStateDescription?: string; + readonly initialReplicationProgressHealth?: VmReplicationProgressHealth; /** - * @member {string} [activeLocation] The Current active location of the PE. + * The resync progress percentage. This is calculated based on total bytes processed for all + * disks in the source VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - activeLocation?: string; + readonly resyncProgressPercentage?: number; /** - * @member {string} [testFailoverState] The Test failover state. + * The resync processed bytes. This includes sum of total bytes transferred and matched bytes on + * all selected disks in source VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - testFailoverState?: string; + readonly resyncProcessedBytes?: number; /** - * @member {string} [testFailoverStateDescription] The Test failover state - * description. + * The resync transferred bytes from source VM to azure for all selected disks on source VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - testFailoverStateDescription?: string; + readonly resyncTransferredBytes?: number; /** - * @member {string[]} [allowedOperations] The allowed operations on the - * Replication protected item. + * The resync progress health. Possible values include: 'None', 'InProgress', 'SlowProgress', + * 'NoProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - allowedOperations?: string[]; + readonly resyncProgressHealth?: VmReplicationProgressHealth; /** - * @member {string} [replicationHealth] The consolidated protection health - * for the VM taking any issues with SRS as well as all the replication units - * associated with the VM's replication group into account. This is a string - * representation of the ProtectionHealth enumeration. + * A value indicating whether resync is required. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - replicationHealth?: string; + readonly resyncRequired?: string; /** - * @member {string} [failoverHealth] The consolidated failover health for the - * VM. + * The resync state. Possible values include: 'None', 'PreparedForResynchronization', + * 'StartedResynchronization' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - failoverHealth?: string; + readonly resyncState?: ResyncState; /** - * @member {HealthError[]} [healthErrors] List of health errors. + * The agent auto upgrade state. Possible values include: 'None', 'Started', 'Completed', + * 'Commit' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - healthErrors?: HealthError[]; + readonly agentUpgradeState?: MobilityAgentUpgradeState; /** - * @member {string} [policyId] The ID of Policy governing this PE. + * The last agent upgrade type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - policyId?: string; + readonly lastAgentUpgradeType?: string; /** - * @member {string} [policyFriendlyName] The name of Policy governing this - * PE. + * The agent upgrade job Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - policyFriendlyName?: string; + readonly agentUpgradeJobId?: string; /** - * @member {Date} [lastSuccessfulFailoverTime] The Last successful failover - * time. + * The agent version to which last agent upgrade was attempted. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastSuccessfulFailoverTime?: Date; + readonly agentUpgradeAttemptToVersion?: string; /** - * @member {Date} [lastSuccessfulTestFailoverTime] The Last successful test - * failover time. + * The list of protected disks. */ - lastSuccessfulTestFailoverTime?: Date; + protectedDisks?: InMageRcmProtectedDiskDetails[]; /** - * @member {CurrentScenarioDetails} [currentScenario] The current scenario. + * A value indicating whether last agent upgrade was successful or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - currentScenario?: CurrentScenarioDetails; + readonly isLastUpgradeSuccessful?: string; /** - * @member {string} [failoverRecoveryPointId] The recovery point ARM Id to - * which the Vm was failed over. + * A value indicating whether agent registration was successful after failover. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - failoverRecoveryPointId?: string; + readonly isAgentRegistrationSuccessfulAfterFailover?: boolean; /** - * @member {ReplicationProviderSpecificSettingsUnion} - * [providerSpecificDetails] The Replication provider custom settings. + * The mobility agent information. */ - providerSpecificDetails?: ReplicationProviderSpecificSettingsUnion; + mobilityAgentDetails?: InMageRcmMobilityAgentDetails; /** - * @member {string} [recoveryContainerId] The recovery container Id. + * The last agent upgrade error information. */ - recoveryContainerId?: string; -} - -/** - * @interface - * An interface representing ReplicationProtectedItem. - * Replication protected item. - * - * @extends Resource - */ -export interface ReplicationProtectedItem extends Resource { + lastAgentUpgradeErrorDetails?: InMageRcmLastAgentUpgradeErrorDetails[]; /** - * @member {ReplicationProtectedItemProperties} [properties] The custom data. + * The agent upgrade blocking error information. */ - properties?: ReplicationProtectedItemProperties; -} - -/** - * @interface - * An interface representing ResourceHealthSummary. - * Base class to define the health summary of the resources contained under an - * Arm resource. - * - */ -export interface ResourceHealthSummary { + agentUpgradeBlockingErrorDetails?: InMageRcmAgentUpgradeBlockingErrorDetails[]; /** - * @member {number} [resourceCount] The count of total resources umder the - * container. + * The network details. */ - resourceCount?: number; + vmNics?: InMageRcmNicDetails[]; /** - * @member {HealthErrorSummary[]} [issues] The list of summary of health - * errors across the resources under the container. + * The discovered VM details. */ - issues?: HealthErrorSummary[]; + discoveredVmDetails?: InMageRcmDiscoveredProtectedVmDetails; } /** - * @interface - * An interface representing ResumeJobParamsProperties. - * Resume job properties. - * + * InMageRcm specific provider input. */ -export interface ResumeJobParamsProperties { +export interface InMageRcmReprotectInput { /** - * @member {string} [comments] Resume job comments. + * Polymorphic Discriminator */ - comments?: string; + instanceType: "InMageRcm"; + /** + * The reprotect agent Id. + */ + reprotectAgentId: string; + /** + * The target datastore name. + */ + datastoreName: string; + /** + * The log storage account ARM Id. + */ + logStorageAccountId: string; + /** + * The Policy Id. + */ + policyId?: string; } /** - * @interface - * An interface representing ResumeJobParams. - * Resume job params. - * + * InMageRcm provider specific input for test failover. */ -export interface ResumeJobParams { +export interface InMageRcmTestFailoverInput { /** - * @member {ResumeJobParamsProperties} [properties] Resume job properties. + * Polymorphic Discriminator */ - properties?: ResumeJobParamsProperties; + instanceType: "InMageRcm"; + /** + * The test network Id. + */ + networkId?: string; + /** + * The recovery point id to be passed to test failover to a particular recovery point. In case of + * latest recovery point, null should be passed. + */ + recoveryPointId?: string; } /** - * @interface - * An interface representing ReverseReplicationInputProperties. - * Reverse replication input properties. - * + * InMageRcm provider specific input for unplanned failover. */ -export interface ReverseReplicationInputProperties { +export interface InMageRcmUnplannedFailoverInput { /** - * @member {string} [failoverDirection] Failover direction. + * Polymorphic Discriminator */ - failoverDirection?: string; + instanceType: "InMageRcm"; /** - * @member {ReverseReplicationProviderSpecificInputUnion} - * [providerSpecificDetails] Provider specific reverse replication input. + * A value indicating whether VM is to be shutdown. */ - providerSpecificDetails?: ReverseReplicationProviderSpecificInputUnion; + performShutdown: string; + /** + * The recovery point id to be passed to failover to a particular recovery point. In case of + * latest recovery point, null should be passed. + */ + recoveryPointId?: string; } /** - * @interface - * An interface representing ReverseReplicationInput. - * Reverse replication input. - * + * Contains the possible cases for UpdateApplianceForReplicationProtectedItemProviderSpecificInput. */ -export interface ReverseReplicationInput { +export type UpdateApplianceForReplicationProtectedItemProviderSpecificInputUnion = UpdateApplianceForReplicationProtectedItemProviderSpecificInput | InMageRcmUpdateApplianceForReplicationProtectedItemInput; + +/** + * Update replication protected item provider specific input. + */ +export interface UpdateApplianceForReplicationProtectedItemProviderSpecificInput { /** - * @member {ReverseReplicationInputProperties} [properties] Reverse - * replication properties + * Polymorphic Discriminator */ - properties?: ReverseReplicationInputProperties; + instanceType: "UpdateApplianceForReplicationProtectedItemProviderSpecificInput"; } /** - * @interface - * An interface representing RunAsAccount. - * CS Accounts Details. - * + * InMageRcm provider specific input to update appliance for replication protected item. */ -export interface RunAsAccount { +export interface InMageRcmUpdateApplianceForReplicationProtectedItemInput { /** - * @member {string} [accountId] The CS RunAs account Id. + * Polymorphic Discriminator */ - accountId?: string; + instanceType: "InMageRcm"; /** - * @member {string} [accountName] The CS RunAs account name. + * The run as account Id. */ - accountName?: string; + runAsAccountId?: string; } /** - * @interface - * An interface representing SanEnableProtectionInput. - * San enable protection provider specific input. - * + * InMageRcm update protection container mapping. */ -export interface SanEnableProtectionInput { +export interface InMageRcmUpdateContainerMappingInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ - instanceType: "San"; + instanceType: "InMageRcm"; + /** + * A value indicating whether agent auto upgrade has to be enabled. + */ + enableAgentAutoUpgrade: string; } /** - * @interface - * An interface representing ScriptActionTaskDetails. - * This class represents the script action task details. - * + * InMageRcm provider specific input to update replication protected item. */ -export interface ScriptActionTaskDetails { +export interface InMageRcmUpdateReplicationProtectedItemInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ - instanceType: "ScriptActionTaskDetails"; + instanceType: "InMageRcm"; /** - * @member {string} [name] The name. + * The target VM name. */ - name?: string; + targetVmName?: string; /** - * @member {string} [path] The path. + * The target VM size. */ - path?: string; + targetVmSize?: string; /** - * @member {string} [output] The output. + * The target resource group ARM Id. */ - output?: string; + targetResourceGroupId?: string; /** - * @member {boolean} [isPrimarySideScript] A value indicating whether it is a - * primary side script or not. + * The target availability set ARM Id. */ - isPrimarySideScript?: boolean; + targetAvailabilitySetId?: string; + /** + * The target availability zone. + */ + targetAvailabilityZone?: string; + /** + * The target proximity placement group Id. + */ + targetProximityPlacementGroupId?: string; + /** + * The target boot diagnostics storage account ARM Id. + */ + targetBootDiagnosticsStorageAccountId?: string; + /** + * The target network ARM Id. + */ + targetNetworkId?: string; + /** + * The test network ARM Id. + */ + testNetworkId?: string; + /** + * The list of NIC details. + */ + vmNics?: InMageRcmNicInput[]; + /** + * The license type. Possible values include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' + */ + licenseType?: LicenseType; } /** - * @interface - * An interface representing StorageClassificationProperties. - * Storage object properties. - * + * Details of the OS Disk. */ -export interface StorageClassificationProperties { +export interface OSDiskDetails { /** - * @member {string} [friendlyName] Friendly name of the Storage - * classification. + * The id of the disk containing the OS. */ - friendlyName?: string; -} - -/** - * @interface - * An interface representing StorageClassification. - * Storage object definition. - * - * @extends Resource - */ -export interface StorageClassification extends Resource { + osVhdId?: string; /** - * @member {StorageClassificationProperties} [properties] Proprties of the - * storage object. + * The type of the OS on the VM. */ - properties?: StorageClassificationProperties; -} - -/** - * @interface - * An interface representing StorageClassificationMappingProperties. - * Storage mapping properties. - * - */ -export interface StorageClassificationMappingProperties { + osType?: string; /** - * @member {string} [targetStorageClassificationId] Target storage object Id. + * The OS disk VHD name. */ - targetStorageClassificationId?: string; + vhdName?: string; } /** - * @interface - * An interface representing StorageClassificationMapping. - * Storage mapping object. - * - * @extends Resource + * InMage provider specific settings. */ -export interface StorageClassificationMapping extends Resource { +export interface InMageReplicationDetails { /** - * @member {StorageClassificationMappingProperties} [properties] Proprties of - * the storage mappping object. + * Polymorphic Discriminator */ - properties?: StorageClassificationMappingProperties; -} - -/** - * @interface - * An interface representing StorageMappingInputProperties. - * Storage mapping input properties. - * - */ -export interface StorageMappingInputProperties { + instanceType: "InMage"; /** - * @member {string} [targetStorageClassificationId] The ID of the storage - * object. + * The active location of the VM. If the VM is being protected from Azure, this field will take + * values from { Azure, OnPrem }. If the VM is being protected between two data-centers, this + * field will be OnPrem always. */ - targetStorageClassificationId?: string; -} - -/** - * @interface - * An interface representing StorageClassificationMappingInput. - * Storage mapping input. - * - */ -export interface StorageClassificationMappingInput { + activeSiteType?: string; /** - * @member {StorageMappingInputProperties} [properties] Storage mapping input - * properties. + * The CPU count of the VM on the primary side. */ - properties?: StorageMappingInputProperties; -} - -/** - * @interface - * An interface representing SwitchProtectionInputProperties. - * Switch protection input properties. - * - */ -export interface SwitchProtectionInputProperties { + sourceVmCpuCount?: number; /** - * @member {string} [replicationProtectedItemName] The unique replication - * protected item name. + * The RAM size of the VM on the primary side. */ - replicationProtectedItemName?: string; + sourceVmRamSizeInMB?: number; /** - * @member {SwitchProtectionProviderSpecificInputUnion} - * [providerSpecificDetails] Provider specific switch protection input. + * The OS details. */ - providerSpecificDetails?: SwitchProtectionProviderSpecificInputUnion; -} - -/** - * @interface - * An interface representing SwitchProtectionInput. - * Switch protection input. - * - */ -export interface SwitchProtectionInput { + osDetails?: OSDiskDetails; /** - * @member {SwitchProtectionInputProperties} [properties] Switch protection - * properties + * The protection stage. */ - properties?: SwitchProtectionInputProperties; -} - -/** - * @interface - * An interface representing SwitchProtectionJobDetails. - * This class represents details for switch protection job. - * - */ -export interface SwitchProtectionJobDetails { + protectionStage?: string; /** - * @member {string} instanceType Polymorphic Discriminator + * The virtual machine Id. */ - instanceType: "SwitchProtectionJobDetails"; + vmId?: string; /** - * @member {{ [propertyName: string]: string }} [affectedObjectDetails] The - * affected object properties like source server, source cloud, target - * server, target cloud etc. based on the workflow object details. + * The protection state for the vm. */ - affectedObjectDetails?: { [propertyName: string]: string }; + vmProtectionState?: string; /** - * @member {string} [newReplicationProtectedItemId] ARM Id of the new - * replication protected item. + * The protection state description for the vm. */ - newReplicationProtectedItemId?: string; -} - -/** - * @interface - * An interface representing TargetComputeSizeProperties. - * Represents applicable recovery vm sizes properties. - * - */ -export interface TargetComputeSizeProperties { + vmProtectionStateDescription?: string; /** - * @member {string} [name] Target compute size name. + * The resync details of the machine. */ - name?: string; + resyncDetails?: InitialReplicationDetails; /** - * @member {string} [friendlyName] Target compute size display name. + * The retention window start time. */ - friendlyName?: string; + retentionWindowStart?: Date; /** - * @member {number} [cpuCoresCount] The maximum cpu cores count supported by - * target compute size. + * The retention window end time. */ - cpuCoresCount?: number; + retentionWindowEnd?: Date; /** - * @member {number} [memoryInGB] The maximum memory in GB supported by target - * compute size. + * The compressed data change rate in MB. */ - memoryInGB?: number; + compressedDataRateInMB?: number; /** - * @member {number} [maxDataDiskCount] The maximum data disks count supported - * by target compute size. + * The uncompressed data change rate in MB. */ - maxDataDiskCount?: number; + uncompressedDataRateInMB?: number; /** - * @member {number} [maxNicsCount] The maximum Nics count supported by target - * compute size. + * The RPO in seconds. */ - maxNicsCount?: number; + rpoInSeconds?: number; /** - * @member {ComputeSizeErrorDetails[]} [errors] The reasons why the target - * compute size is not applicable for the protected item. + * The list of protected disks. */ - errors?: ComputeSizeErrorDetails[]; + protectedDisks?: InMageProtectedDiskDetails[]; /** - * @member {string} [highIopsSupported] The value indicating whether the - * target compute size supports high Iops. + * The source IP address. */ - highIopsSupported?: string; -} - -/** - * @interface - * An interface representing TargetComputeSize. - * Represents applicable recovery vm sizes. - * - */ -export interface TargetComputeSize { + ipAddress?: string; /** - * @member {string} [id] The Id. + * The last heartbeat received from the source server. */ - id?: string; + lastHeartbeat?: Date; /** - * @member {string} [name] The name. + * The process server Id. */ - name?: string; + processServerId?: string; /** - * @member {string} [type] The Type of the object. + * The master target Id. */ - type?: string; + masterTargetId?: string; /** - * @member {TargetComputeSizeProperties} [properties] The custom data. + * The collection of Consistency points. */ - properties?: TargetComputeSizeProperties; -} - -/** - * @interface - * An interface representing TestFailoverCleanupInputProperties. - * Input definition for test failover cleanup input properties. - * - */ -export interface TestFailoverCleanupInputProperties { + consistencyPoints?: { [propertyName: string]: Date } | { [propertyName: string]: string }; /** - * @member {string} [comments] Test failover cleanup comments. + * A value indicating whether any disk is resized for this VM. */ - comments?: string; -} - -/** - * @interface - * An interface representing TestFailoverCleanupInput. - * Input definition for test failover cleanup. - * - */ -export interface TestFailoverCleanupInput { + diskResized?: string; /** - * @member {TestFailoverCleanupInputProperties} properties Test failover - * cleanup input properties. + * A value indicating whether the source server requires a restart after update. */ - properties: TestFailoverCleanupInputProperties; -} - -/** - * @interface - * An interface representing TestFailoverInputProperties. - * Input definition for planned failover input properties. - * - */ -export interface TestFailoverInputProperties { + rebootAfterUpdateStatus?: string; /** - * @member {string} [failoverDirection] Failover direction. + * The multi vm group Id, if any. */ - failoverDirection?: string; + multiVmGroupId?: string; /** - * @member {string} [networkType] Network type to be used for test failover. + * The multi vm group name, if any. */ - networkType?: string; + multiVmGroupName?: string; /** - * @member {string} [networkId] The id of the network to be used for test - * failover + * A value indicating whether the multi vm sync is enabled or disabled. */ - networkId?: string; + multiVmSyncStatus?: string; /** - * @member {string} [skipTestFailoverCleanup] A value indicating whether the - * test failover cleanup is to be skipped. + * The agent details. */ - skipTestFailoverCleanup?: string; + agentDetails?: InMageAgentDetails; /** - * @member {ProviderSpecificFailoverInputUnion} [providerSpecificDetails] - * Provider specific settings + * The vCenter infrastructure Id. */ - providerSpecificDetails?: ProviderSpecificFailoverInputUnion; -} - -/** - * @interface - * An interface representing TestFailoverInput. - * Input definition for planned failover. - * - */ -export interface TestFailoverInput { + vCenterInfrastructureId?: string; /** - * @member {TestFailoverInputProperties} [properties] Planned failover input - * properties + * The infrastructure VM Id. */ - properties?: TestFailoverInputProperties; -} - -/** - * @interface - * An interface representing TestFailoverJobDetails. - * This class represents the details for a test failover job. - * - */ -export interface TestFailoverJobDetails { + infrastructureVmId?: string; /** - * @member {string} instanceType Polymorphic Discriminator + * The PE Network details. */ - instanceType: "TestFailoverJobDetails"; + vmNics?: VMNicDetails[]; /** - * @member {{ [propertyName: string]: string }} [affectedObjectDetails] The - * affected object properties like source server, source cloud, target - * server, target cloud etc. based on the workflow object details. + * A value indicating the discovery type of the machine. */ - affectedObjectDetails?: { [propertyName: string]: string }; + discoveryType?: string; /** - * @member {string} [testFailoverStatus] The test failover status. + * A value indicating the underlying Azure storage account. If the VM is not running in Azure, + * this value shall be set to null. */ - testFailoverStatus?: string; + azureStorageAccountId?: string; /** - * @member {string} [comments] The test failover comments. + * The datastores of the on-premise machine Value can be list of strings that contain datastore + * names. */ - comments?: string; + datastores?: string[]; /** - * @member {string} [networkName] The test network name. + * The validation errors of the on-premise machine Value can be list of validation errors. */ - networkName?: string; + validationErrors?: HealthError[]; /** - * @member {string} [networkFriendlyName] The test network friendly name. + * The last RPO calculated time. */ - networkFriendlyName?: string; + lastRpoCalculatedTime?: Date; /** - * @member {string} [networkType] The test network type (see - * TestFailoverInput enum for possible values). + * The last update time received from on-prem components. */ - networkType?: string; + lastUpdateReceivedTime?: Date; /** - * @member {FailoverReplicationProtectedItemDetails[]} [protectedItemDetails] - * The test VM details. + * The replica id of the protected item. */ - protectedItemDetails?: FailoverReplicationProtectedItemDetails[]; -} - -/** - * @interface - * An interface representing UnplannedFailoverInputProperties. - * Input definition for planned failover input properties. - * - */ -export interface UnplannedFailoverInputProperties { + replicaId?: string; /** - * @member {string} [failoverDirection] Failover direction. + * The OS Version of the protected item. */ - failoverDirection?: string; + osVersion?: string; /** - * @member {string} [sourceSiteOperations] Source site operations status + * A value indicating whether additional IR stats are available or not. */ - sourceSiteOperations?: string; + isAdditionalStatsAvailable?: boolean; /** - * @member {ProviderSpecificFailoverInputUnion} [providerSpecificDetails] - * Provider specific settings + * The total transferred data in bytes. */ - providerSpecificDetails?: ProviderSpecificFailoverInputUnion; -} - -/** - * @interface - * An interface representing UnplannedFailoverInput. - * Input definition for planned failover. - * - */ -export interface UnplannedFailoverInput { + totalDataTransferred?: number; /** - * @member {UnplannedFailoverInputProperties} [properties] Planned failover - * input properties + * The progress health. */ - properties?: UnplannedFailoverInputProperties; + totalProgressHealth?: string; } /** - * @interface - * An interface representing UpdateMobilityServiceRequestProperties. - * The properties of an update mobility service request. - * + * InMageAzureV2 specific provider input. */ -export interface UpdateMobilityServiceRequestProperties { +export interface InMageReprotectInput { /** - * @member {string} [runAsAccountId] The CS run as account Id. + * Polymorphic Discriminator */ - runAsAccountId?: string; -} - -/** - * @interface - * An interface representing UpdateMobilityServiceRequest. - * Request to update the mobility service on a protected item. - * - */ -export interface UpdateMobilityServiceRequest { + instanceType: "InMage"; /** - * @member {UpdateMobilityServiceRequestProperties} [properties] The - * properties of the update mobility service request. + * The Master Target Id. */ - properties?: UpdateMobilityServiceRequestProperties; -} - -/** - * @interface - * An interface representing UpdateNetworkMappingInputProperties. - * Common input details for network mapping operation. - * - */ -export interface UpdateNetworkMappingInputProperties { + masterTargetId: string; /** - * @member {string} [recoveryFabricName] Recovery fabric name. + * The Process Server Id. */ - recoveryFabricName?: string; + processServerId: string; /** - * @member {string} [recoveryNetworkId] Recovery network Id. + * The retention drive to use on the MT. */ - recoveryNetworkId?: string; + retentionDrive: string; /** - * @member {FabricSpecificUpdateNetworkMappingInputUnion} - * [fabricSpecificDetails] Fabrics specific input network Id. + * The CS account Id. */ - fabricSpecificDetails?: FabricSpecificUpdateNetworkMappingInputUnion; -} - -/** - * @interface - * An interface representing UpdateNetworkMappingInput. - * Update network mapping input. - * - */ -export interface UpdateNetworkMappingInput { + runAsAccountId?: string; /** - * @member {UpdateNetworkMappingInputProperties} [properties] The input - * properties needed to update network mapping. + * The target datastore name. */ - properties?: UpdateNetworkMappingInputProperties; -} - -/** - * @interface - * An interface representing UpdatePolicyInputProperties. - * Policy update properties. - * - */ -export interface UpdatePolicyInputProperties { + datastoreName?: string; /** - * @member {PolicyProviderSpecificInputUnion} [replicationProviderSettings] - * The ReplicationProviderSettings. + * The enable disk exclusion input. */ - replicationProviderSettings?: PolicyProviderSpecificInputUnion; -} - -/** - * @interface - * An interface representing UpdatePolicyInput. - * Update policy input. - * - */ -export interface UpdatePolicyInput { + diskExclusionInput?: InMageDiskExclusionInput; /** - * @member {UpdatePolicyInputProperties} [properties] The - * ReplicationProviderSettings. + * The Policy Id. */ - properties?: UpdatePolicyInputProperties; -} - -/** - * @interface - * An interface representing UpdateProtectionContainerMappingInputProperties. - * Container pairing update input. - * - */ -export interface UpdateProtectionContainerMappingInputProperties { + profileId: string; /** - * @member {ReplicationProviderSpecificUpdateContainerMappingInputUnion} - * [providerSpecificInput] Provider specific input for updating protection - * container mapping. + * The disks to include list. */ - providerSpecificInput?: ReplicationProviderSpecificUpdateContainerMappingInputUnion; + disksToInclude?: string[]; } /** - * @interface - * An interface representing UpdateProtectionContainerMappingInput. - * Container pairing update input. - * + * Provider specific input for InMage test failover. */ -export interface UpdateProtectionContainerMappingInput { +export interface InMageTestFailoverInput { /** - * @member {UpdateProtectionContainerMappingInputProperties} [properties] - * Update protection container mapping input properties. + * Polymorphic Discriminator */ - properties?: UpdateProtectionContainerMappingInputProperties; -} - -/** - * @interface - * An interface representing UpdateRecoveryPlanInputProperties. - * Recovery plan updation properties. - * - */ -export interface UpdateRecoveryPlanInputProperties { + instanceType: "InMage"; /** - * @member {RecoveryPlanGroup[]} [groups] The recovery plan groups. + * The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, + * the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery + * point id will be ignored. Possible values include: 'LatestTime', 'LatestTag', 'Custom' */ - groups?: RecoveryPlanGroup[]; + recoveryPointType?: RecoveryPointType; + /** + * The recovery point id to be passed to test failover to a particular recovery point. In case of + * latest recovery point, null should be passed. + */ + recoveryPointId?: string; } /** - * @interface - * An interface representing UpdateRecoveryPlanInput. - * Update recovery plan input class. - * + * Provider specific input for InMage unplanned failover. */ -export interface UpdateRecoveryPlanInput { +export interface InMageUnplannedFailoverInput { /** - * @member {UpdateRecoveryPlanInputProperties} [properties] Recovery plan - * update properties. + * Polymorphic Discriminator */ - properties?: UpdateRecoveryPlanInputProperties; + instanceType: "InMage"; + /** + * The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, + * the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery + * point id will be ignored. Possible values include: 'LatestTime', 'LatestTag', 'Custom' + */ + recoveryPointType?: RecoveryPointType; + /** + * The recovery point id to be passed to failover to a particular recovery point. In case of + * latest recovery point, null should be passed. + */ + recoveryPointId?: string; } /** - * @interface - * An interface representing VMNicInputDetails. - * Hyper V VM network input details. - * + * Job custom data details. */ -export interface VMNicInputDetails { +export interface JobProperties { /** - * @member {string} [nicId] The nic Id. + * The activity id. */ - nicId?: string; + activityId?: string; /** - * @member {string} [recoveryVMSubnetName] Recovery VM subnet name. + * The ScenarioName. */ - recoveryVMSubnetName?: string; + scenarioName?: string; /** - * @member {string} [replicaNicStaticIPAddress] Replica nic static IP - * address. + * The DisplayName. */ - replicaNicStaticIPAddress?: string; + friendlyName?: string; /** - * @member {string} [selectionType] Selection type for failover. + * The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, + * Cancelled, Suspended or Other. */ - selectionType?: string; + state?: string; /** - * @member {boolean} [enableAcceleratedNetworkingOnRecovery] Whether the NIC - * has accerated networking enabled. + * The description of the state of the Job. For e.g. - For Succeeded state, description can be + * Completed, PartiallySucceeded, CompletedWithInformation or Skipped. */ - enableAcceleratedNetworkingOnRecovery?: boolean; -} - -/** - * @interface - * An interface representing UpdateReplicationProtectedItemInputProperties. - * Update protected item input properties. - * - */ -export interface UpdateReplicationProtectedItemInputProperties { + stateDescription?: string; /** - * @member {string} [recoveryAzureVMName] Target azure VM name given by the - * user. + * The tasks. */ - recoveryAzureVMName?: string; + tasks?: ASRTask[]; /** - * @member {string} [recoveryAzureVMSize] Target Azure Vm size. + * The errors. */ - recoveryAzureVMSize?: string; + errors?: JobErrorDetails[]; /** - * @member {string} [selectedRecoveryAzureNetworkId] Target Azure Network Id. + * The start time. */ - selectedRecoveryAzureNetworkId?: string; + startTime?: Date; /** - * @member {string} [selectedSourceNicId] The selected source nic Id which - * will be used as the primary nic during failover. + * The end time. */ - selectedSourceNicId?: string; + endTime?: Date; /** - * @member {string} [enableRdpOnTargetOption] The selected option to enable - * RDP\SSH on target vm after failover. String value of - * {SrsDataContract.EnableRDPOnTargetOption} enum. + * The Allowed action the job. */ - enableRdpOnTargetOption?: string; + allowedActions?: string[]; /** - * @member {VMNicInputDetails[]} [vmNics] The list of vm nic details. + * The affected Object Id. */ - vmNics?: VMNicInputDetails[]; + targetObjectId?: string; /** - * @member {LicenseType} [licenseType] License type. Possible values include: - * 'NotSpecified', 'NoLicenseType', 'WindowsServer' + * The name of the affected object. */ - licenseType?: LicenseType; + targetObjectName?: string; /** - * @member {string} [recoveryAvailabilitySetId] The target availability set - * id. + * The type of the affected object which is of + * Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class. */ - recoveryAvailabilitySetId?: string; + targetInstanceType?: string; /** - * @member {UpdateReplicationProtectedItemProviderInputUnion} - * [providerSpecificDetails] The provider specific input to update - * replication protected item. + * The custom job details like test failover job details. */ - providerSpecificDetails?: UpdateReplicationProtectedItemProviderInputUnion; + customDetails?: JobDetailsUnion; } /** - * @interface - * An interface representing UpdateReplicationProtectedItemInput. - * Update replication protected item input. - * + * Job details. */ -export interface UpdateReplicationProtectedItemInput { +export interface Job extends Resource { /** - * @member {UpdateReplicationProtectedItemInputProperties} [properties] - * Update replication protected item properties. + * The custom data. */ - properties?: UpdateReplicationProtectedItemInputProperties; + properties?: JobProperties; } /** - * @interface - * An interface representing UpdateVCenterRequestProperties. - * The properties of an update vCenter request. - * + * This class contains the minimal job details required to navigate to the desired drill down. */ -export interface UpdateVCenterRequestProperties { +export interface JobEntity { /** - * @member {string} [friendlyName] The friendly name of the vCenter. + * The job id. */ - friendlyName?: string; + jobId?: string; /** - * @member {string} [ipAddress] The IP address of the vCenter to be - * discovered. + * The job display name. */ - ipAddress?: string; + jobFriendlyName?: string; /** - * @member {string} [processServerId] The process server Id from where the - * update can be orchestrated. + * The object id. */ - processServerId?: string; + targetObjectId?: string; /** - * @member {string} [port] The port number for discovery. + * The object name. */ - port?: string; + targetObjectName?: string; /** - * @member {string} [runAsAccountId] The CS account Id which has priviliges - * to update the vCenter. + * The workflow affected object type. */ - runAsAccountId?: string; -} - -/** - * @interface - * An interface representing UpdateVCenterRequest. - * Input required to update vCenter. - * - */ -export interface UpdateVCenterRequest { + targetInstanceType?: string; /** - * @member {UpdateVCenterRequestProperties} [properties] The update VCenter - * Request Properties. + * The job name. Enum type ScenarioName. */ - properties?: UpdateVCenterRequestProperties; + jobScenarioName?: string; } /** - * @interface - * An interface representing VaultHealthProperties. - * class to define the health summary of the Vault. - * + * Query parameter to enumerate jobs. */ -export interface VaultHealthProperties { +export interface JobQueryParameter { /** - * @member {HealthError[]} [vaultErrors] The list of errors on the vault. + * Date time to get jobs from. */ - vaultErrors?: HealthError[]; + startTime?: string; /** - * @member {ResourceHealthSummary} [protectedItemsHealth] The list of the - * health detail of the protected items in the vault. + * Date time to get jobs upto. */ - protectedItemsHealth?: ResourceHealthSummary; + endTime?: string; /** - * @member {ResourceHealthSummary} [fabricsHealth] The list of the health - * detail of the fabrics in the vault. + * The Id of the fabric to search jobs under. */ - fabricsHealth?: ResourceHealthSummary; + fabricId?: string; /** - * @member {ResourceHealthSummary} [containersHealth] The list of the health - * detail of the containers in the vault. + * The type of objects. */ - containersHealth?: ResourceHealthSummary; -} - -/** - * @interface - * An interface representing VaultHealthDetails. - * Vault health details definition. - * - * @extends Resource - */ -export interface VaultHealthDetails extends Resource { + affectedObjectTypes?: string; /** - * @member {VaultHealthProperties} [properties] The vault health related - * data. + * The states of the job to be filtered can be in. */ - properties?: VaultHealthProperties; -} - -/** - * @interface - * An interface representing VCenterProperties. - * vCenter properties. - * - */ -export interface VCenterProperties { + jobStatus?: string; /** - * @member {string} [friendlyName] Friendly name of the vCenter. + * The output type of the jobs. Possible values include: 'Json', 'Xml', 'Excel' */ - friendlyName?: string; + jobOutputType?: ExportJobOutputSerializationType; /** - * @member {string} [internalId] VCenter internal ID. + * The job Name. */ - internalId?: string; + jobName?: string; /** - * @member {Date} [lastHeartbeat] The time when the last heartbeat was - * reveived by vCenter. + * The timezone offset for the location of the request (in minutes). */ - lastHeartbeat?: Date; + timezoneOffset?: number; +} + +/** + * Model class for event details of a job status event. + */ +export interface JobStatusEventDetails { /** - * @member {string} [discoveryStatus] The VCenter discovery status. + * Polymorphic Discriminator */ - discoveryStatus?: string; + instanceType: "JobStatus"; /** - * @member {string} [processServerId] The process server Id. + * Job arm id for the event. */ - processServerId?: string; + jobId?: string; /** - * @member {string} [ipAddress] The IP address of the vCenter. + * JobName for the Event. */ - ipAddress?: string; + jobFriendlyName?: string; /** - * @member {string} [infrastructureId] The infrastructure Id of vCenter. + * JobStatus for the Event. */ - infrastructureId?: string; + jobStatus?: string; /** - * @member {string} [port] The port number for discovery. + * AffectedObjectType for the event. */ - port?: string; + affectedObjectType?: string; +} + +/** + * Logical Network Properties. + */ +export interface LogicalNetworkProperties { /** - * @member {string} [runAsAccountId] The account Id which has privileges to - * discover the vCenter. + * The Friendly Name. */ - runAsAccountId?: string; + friendlyName?: string; /** - * @member {string} [fabricArmResourceName] The ARM resource name of the - * fabric containing this VCenter. + * A value indicating whether Network Virtualization is enabled for the logical network. */ - fabricArmResourceName?: string; + networkVirtualizationStatus?: string; /** - * @member {HealthError[]} [healthErrors] The health errors for this VCenter. + * A value indicating whether logical network is used as private test network by test failover. */ - healthErrors?: HealthError[]; + logicalNetworkUsage?: string; + /** + * A value indicating whether logical network definitions are isolated. + */ + logicalNetworkDefinitionsStatus?: string; } /** - * @interface - * An interface representing VCenter. - * vCenter definition. - * - * @extends Resource + * Logical network data model. */ -export interface VCenter extends Resource { +export interface LogicalNetwork extends Resource { /** - * @member {VCenterProperties} [properties] VCenter related data. + * The Logical Network Properties. */ - properties?: VCenterProperties; + properties?: LogicalNetworkProperties; } /** - * @interface - * An interface representing VirtualMachineTaskDetails. - * This class represents the virtual machine task details. - * + * This class represents the manual action task details. */ -export interface VirtualMachineTaskDetails { +export interface ManualActionTaskDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ - instanceType: "VirtualMachineTaskDetails"; + instanceType: "ManualActionTaskDetails"; /** - * @member {string} [skippedReason] The skipped reason. + * The name. */ - skippedReason?: string; + name?: string; /** - * @member {string} [skippedReasonString] The skipped reason string. + * The instructions. */ - skippedReasonString?: string; + instructions?: string; /** - * @member {JobEntity} [jobTask] The job entity. + * The observation. */ - jobTask?: JobEntity; + observation?: string; } /** - * @interface - * An interface representing VmmDetails. - * VMM fabric specific details. - * + * The retention details of the MT. */ -export interface VmmDetails { +export interface RetentionVolume { /** - * @member {string} instanceType Polymorphic Discriminator + * The volume name. */ - instanceType: "VMM"; + volumeName?: string; + /** + * The volume capacity. + */ + capacityInBytes?: number; + /** + * The free space available in this volume. + */ + freeSpaceInBytes?: number; + /** + * The threshold percentage. + */ + thresholdPercentage?: number; } /** - * @interface - * An interface representing VmmToAzureCreateNetworkMappingInput. - * Create network mappings input properties/behaviour specific to Vmm to Azure - * Network mapping. - * + * Version related details. */ -export interface VmmToAzureCreateNetworkMappingInput { +export interface VersionDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * The agent version. */ - instanceType: "VmmToAzure"; + version?: string; + /** + * Version expiry date. + */ + expiryDate?: Date; + /** + * A value indicating whether security update required. Possible values include: 'Supported', + * 'NotSupported', 'Deprecated', 'UpdateRequired', 'SecurityUpdateRequired' + */ + status?: AgentVersionStatus; } /** - * @interface - * An interface representing VmmToAzureNetworkMappingSettings. - * E2A Network Mapping fabric specific settings. - * + * Details of a Master Target Server. */ -export interface VmmToAzureNetworkMappingSettings { +export interface MasterTargetServer { /** - * @member {string} instanceType Polymorphic Discriminator + * The server Id. */ - instanceType: "VmmToAzure"; + id?: string; + /** + * The IP address of the server. + */ + ipAddress?: string; + /** + * The server name. + */ + name?: string; + /** + * The OS type of the server. + */ + osType?: string; + /** + * The version of the scout component on the server. + */ + agentVersion?: string; + /** + * The last heartbeat received from the server. + */ + lastHeartbeat?: Date; + /** + * Version status. + */ + versionStatus?: string; + /** + * The retention volumes of Master target Server. + */ + retentionVolumes?: RetentionVolume[]; + /** + * The list of data stores in the fabric. + */ + dataStores?: DataStore[]; + /** + * Validation errors. + */ + validationErrors?: HealthError[]; + /** + * Health errors. + */ + healthErrors?: HealthError[]; + /** + * Disk count of the master target. + */ + diskCount?: number; + /** + * OS Version of the master target. + */ + osVersion?: string; + /** + * Agent expiry date. + */ + agentExpiryDate?: Date; + /** + * MARS agent version. + */ + marsAgentVersion?: string; + /** + * MARS agent expiry date. + */ + marsAgentExpiryDate?: Date; + /** + * Agent version details. + */ + agentVersionDetails?: VersionDetails; + /** + * Mars agent version details. + */ + marsAgentVersionDetails?: VersionDetails; } /** - * @interface - * An interface representing VmmToAzureUpdateNetworkMappingInput. - * Update network mappings input properties/behaviour specific to vmm to azure. - * + * Contains the possible cases for MigrateProviderSpecificInput. */ -export interface VmmToAzureUpdateNetworkMappingInput { +export type MigrateProviderSpecificInputUnion = MigrateProviderSpecificInput | VMwareCbtMigrateInput; + +/** + * Migrate provider specific input. + */ +export interface MigrateProviderSpecificInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ - instanceType: "VmmToAzure"; + instanceType: "MigrateProviderSpecificInput"; } /** - * @interface - * An interface representing VmmToVmmCreateNetworkMappingInput. - * Create network mappings input properties/behaviour specific to vmm to vmm - * Network mapping. - * + * Migrate input properties. */ -export interface VmmToVmmCreateNetworkMappingInput { +export interface MigrateInputProperties { /** - * @member {string} instanceType Polymorphic Discriminator + * The provider specific details. */ - instanceType: "VmmToVmm"; + providerSpecificDetails: MigrateProviderSpecificInputUnion; } /** - * @interface - * An interface representing VmmToVmmNetworkMappingSettings. - * E2E Network Mapping fabric specific settings. - * + * Input for migrate. */ -export interface VmmToVmmNetworkMappingSettings { +export interface MigrateInput { /** - * @member {string} instanceType Polymorphic Discriminator + * Migrate input properties. */ - instanceType: "VmmToVmm"; + properties: MigrateInputProperties; } /** - * @interface - * An interface representing VmmToVmmUpdateNetworkMappingInput. - * Update network mappings input properties/behaviour specific to vmm to vmm. - * + * Contains the possible cases for MigrationProviderSpecificSettings. */ -export interface VmmToVmmUpdateNetworkMappingInput { +export type MigrationProviderSpecificSettingsUnion = MigrationProviderSpecificSettings | VMwareCbtMigrationDetails; + +/** + * Migration provider specific settings. + */ +export interface MigrationProviderSpecificSettings { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ - instanceType: "VmmToVmm"; + instanceType: "MigrationProviderSpecificSettings"; } /** - * @interface - * An interface representing VmmVirtualMachineDetails. - * VMM fabric provider specific VM settings. - * + * Migration item properties. */ -export interface VmmVirtualMachineDetails { +export interface MigrationItemProperties { /** - * @member {string} instanceType Polymorphic Discriminator + * The on-premise virtual machine name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "VmmVirtualMachine"; + readonly machineName?: string; /** - * @member {string} [sourceItemId] The source id of the object. + * The ARM Id of policy governing this item. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceItemId?: string; + readonly policyId?: string; /** - * @member {string} [generation] The id of the object in fabric. + * The name of policy governing this item. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - generation?: string; + readonly policyFriendlyName?: string; /** - * @member {OSDetails} [osDetails] The Last replication time. + * The migration status. Possible values include: 'None', 'EnableMigrationInProgress', + * 'EnableMigrationFailed', 'DisableMigrationInProgress', 'DisableMigrationFailed', + * 'InitialSeedingInProgress', 'InitialSeedingFailed', 'Replicating', 'MigrationInProgress', + * 'MigrationSucceeded', 'MigrationFailed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osDetails?: OSDetails; + readonly migrationState?: MigrationState; /** - * @member {DiskDetails[]} [diskDetails] The Last successful failover time. + * The migration state description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - diskDetails?: DiskDetails[]; + readonly migrationStateDescription?: string; /** - * @member {PresenceStatus} [hasPhysicalDisk] A value indicating whether the - * VM has a physical disk attached. String value of - * {SrsDataContract.PresenceStatus} enum. Possible values include: 'Unknown', - * 'Present', 'NotPresent' + * The last test migration time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hasPhysicalDisk?: PresenceStatus; + readonly lastTestMigrationTime?: Date; /** - * @member {PresenceStatus} [hasFibreChannelAdapter] A value indicating - * whether the VM has a fibre channel adapter attached. String value of - * {SrsDataContract.PresenceStatus} enum. Possible values include: 'Unknown', - * 'Present', 'NotPresent' + * The status of the last test migration. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hasFibreChannelAdapter?: PresenceStatus; + readonly lastTestMigrationStatus?: string; /** - * @member {PresenceStatus} [hasSharedVhd] A value indicating whether the VM - * has a shared VHD attached. String value of - * {SrsDataContract.PresenceStatus} enum. Possible values include: 'Unknown', - * 'Present', 'NotPresent' + * The test migrate state. Possible values include: 'None', 'TestMigrationInProgress', + * 'TestMigrationSucceeded', 'TestMigrationFailed', 'TestMigrationCleanupInProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hasSharedVhd?: PresenceStatus; -} - -/** - * @interface - * An interface representing VmNicUpdatesTaskDetails. - * This class represents the vm NicUpdates task details. - * - */ -export interface VmNicUpdatesTaskDetails { + readonly testMigrateState?: TestMigrationState; /** - * @member {string} instanceType Polymorphic Discriminator + * The test migrate state description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "VmNicUpdatesTaskDetails"; + readonly testMigrateStateDescription?: string; /** - * @member {string} [vmId] Virtual machine Id. + * The consolidated health. Possible values include: 'None', 'Normal', 'Warning', 'Critical' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmId?: string; + readonly health?: ProtectionHealth; /** - * @member {string} [nicId] Nic Id. + * The list of health errors. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nicId?: string; + readonly healthErrors?: HealthError[]; /** - * @member {string} [name] Name of the Nic. + * The allowed operations on the migration item based on the current migration state of the item. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly allowedOperations?: MigrationItemOperation[]; + /** + * The current job details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentJob?: CurrentJobDetails; + /** + * The correlation Id for events associated with this migration item. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly eventCorrelationId?: string; + /** + * The migration provider custom settings. + */ + providerSpecificDetails?: MigrationProviderSpecificSettingsUnion; } /** - * @interface - * An interface representing VMwareCbtPolicyCreationInput. - * VMware Cbt Policy creation input. - * + * Migration item. */ -export interface VMwareCbtPolicyCreationInput { +export interface MigrationItem extends Resource { /** - * @member {string} instanceType Polymorphic Discriminator + * The migration item properties. */ - instanceType: "VMwareCbt"; + properties?: MigrationItemProperties; +} + +/** + * Query parameter to enumerate migration items. + */ +export interface MigrationItemsQueryParameter { /** - * @member {number} [recoveryPointHistory] The duration in minutes until - * which the recovery points need to be stored. + * The source fabric name filter. */ - recoveryPointHistory?: number; + sourceFabricName?: string; /** - * @member {number} [crashConsistentFrequencyInMinutes] The crash consistent - * snapshot frequency (in minutes). + * The source container name filter. */ - crashConsistentFrequencyInMinutes?: number; + sourceContainerName?: string; /** - * @member {number} [appConsistentFrequencyInMinutes] The app consistent - * snapshot frequency (in minutes). + * The replication provider type. */ - appConsistentFrequencyInMinutes?: number; + instanceType?: string; } /** - * @interface - * An interface representing VmwareCbtPolicyDetails. - * VMware Cbt specific policy details. - * + * Migration item recovery point properties. */ -export interface VmwareCbtPolicyDetails { +export interface MigrationRecoveryPointProperties { /** - * @member {string} instanceType Polymorphic Discriminator + * The recovery point time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceType: "VMwareCbt"; + readonly recoveryPointTime?: Date; /** - * @member {number} [recoveryPointThresholdInMinutes] The recovery point - * threshold in minutes. + * The recovery point type. Possible values include: 'NotSpecified', 'ApplicationConsistent', + * 'CrashConsistent' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryPointThresholdInMinutes?: number; + readonly recoveryPointType?: MigrationRecoveryPointType; +} + +/** + * Recovery point for a migration item. + */ +export interface MigrationRecoveryPoint extends Resource { /** - * @member {number} [recoveryPointHistory] The duration in minutes until - * which the recovery points need to be stored. + * Recovery point properties. */ - recoveryPointHistory?: number; + properties?: MigrationRecoveryPointProperties; +} + +/** + * The Mobility Service update details. + */ +export interface MobilityServiceUpdate { /** - * @member {number} [appConsistentFrequencyInMinutes] The app consistent - * snapshot frequency in minutes. + * The version of the latest update. */ - appConsistentFrequencyInMinutes?: number; + version?: string; /** - * @member {number} [crashConsistentFrequencyInMinutes] The crash consistent - * snapshot frequency in minutes. + * The reboot status of the update - whether it is required or not. */ - crashConsistentFrequencyInMinutes?: number; + rebootStatus?: string; + /** + * The OS type. + */ + osType?: string; } /** - * @interface - * An interface representing VMwareDetails. - * Store the fabric details specific to the VMware fabric. - * + * Subnets of the network. */ -export interface VMwareDetails { +export interface Subnet { /** - * @member {string} instanceType Polymorphic Discriminator + * The subnet name. */ - instanceType: "VMware"; + name?: string; /** - * @member {ProcessServer[]} [processServers] The list of Process Servers - * associated with the fabric. + * The subnet friendly name. */ - processServers?: ProcessServer[]; + friendlyName?: string; /** - * @member {MasterTargetServer[]} [masterTargetServers] The list of Master - * Target servers associated with the fabric. + * The list of addresses for the subnet. */ - masterTargetServers?: MasterTargetServer[]; + addressList?: string[]; +} + +/** + * Network Properties. + */ +export interface NetworkProperties { /** - * @member {RunAsAccount[]} [runAsAccounts] The list of run as accounts - * created on the server. + * The Fabric Type. */ - runAsAccounts?: RunAsAccount[]; + fabricType?: string; /** - * @member {string} [replicationPairCount] The number of replication pairs - * configured in this CS. + * The List of subnets. */ - replicationPairCount?: string; + subnets?: Subnet[]; /** - * @member {string} [processServerCount] The number of process servers. + * The Friendly Name. */ - processServerCount?: string; + friendlyName?: string; /** - * @member {string} [agentCount] The number of source and target servers - * configured to talk to this CS. + * The Network Type. */ - agentCount?: string; + networkType?: string; +} + +/** + * Network model. + */ +export interface Network extends Resource { /** - * @member {string} [protectedServers] The number of protected servers. + * The Network Properties. */ - protectedServers?: string; + properties?: NetworkProperties; +} + +/** + * Network Mapping Properties. + */ +export interface NetworkMappingProperties { /** - * @member {string} [systemLoad] The percentage of the system load. + * The pairing state for network mapping. */ - systemLoad?: string; + state?: string; /** - * @member {string} [systemLoadStatus] The system load status. + * The primary network friendly name. */ - systemLoadStatus?: string; + primaryNetworkFriendlyName?: string; /** - * @member {string} [cpuLoad] The percentage of the CPU load. + * The primary network id for network mapping. */ - cpuLoad?: string; + primaryNetworkId?: string; /** - * @member {string} [cpuLoadStatus] The CPU load status. + * The primary fabric friendly name. */ - cpuLoadStatus?: string; + primaryFabricFriendlyName?: string; /** - * @member {number} [totalMemoryInBytes] The total memory. + * The recovery network friendly name. */ - totalMemoryInBytes?: number; + recoveryNetworkFriendlyName?: string; /** - * @member {number} [availableMemoryInBytes] The available memory. + * The recovery network id for network mapping. */ - availableMemoryInBytes?: number; + recoveryNetworkId?: string; /** - * @member {string} [memoryUsageStatus] The memory usage status. + * The recovery fabric ARM id. */ - memoryUsageStatus?: string; + recoveryFabricArmId?: string; /** - * @member {number} [totalSpaceInBytes] The total space. + * The recovery fabric friendly name. */ - totalSpaceInBytes?: number; + recoveryFabricFriendlyName?: string; /** - * @member {number} [availableSpaceInBytes] The available space. + * The fabric specific settings. */ - availableSpaceInBytes?: number; + fabricSpecificSettings?: NetworkMappingFabricSpecificSettingsUnion; +} + +/** + * Network Mapping model. Ideally it should have been possible to inherit this class from prev + * version in InheritedModels as long as there is no difference in structure or method signature. + * Since there were no base Models for certain fields and methods viz NetworkMappingProperties and + * Load with required return type, the class has been introduced in its entirety with references to + * base models to facilitate extensions in subsequent versions. + */ +export interface NetworkMapping extends Resource { /** - * @member {string} [spaceUsageStatus] The space usage status. + * The Network Mapping Properties. */ - spaceUsageStatus?: string; + properties?: NetworkMappingProperties; +} + +/** + * New Protection profile input. + */ +export interface NewProtectionProfile { /** - * @member {string} [webLoad] The web load. + * Polymorphic Discriminator */ - webLoad?: string; + resourceType: "New"; /** - * @member {string} [webLoadStatus] The web load status. + * The protection profile input. */ - webLoadStatus?: string; + policyName: string; /** - * @member {string} [databaseServerLoad] The database server load. + * The duration in minutes until which the recovery points need to be stored. */ - databaseServerLoad?: string; + recoveryPointHistory?: number; /** - * @member {string} [databaseServerLoadStatus] The database server load - * status. + * The crash consistent snapshot frequency (in minutes). */ - databaseServerLoadStatus?: string; + crashConsistentFrequencyInMinutes?: number; /** - * @member {string} [csServiceStatus] The CS service status. + * The app consistent snapshot frequency (in minutes). */ - csServiceStatus?: string; + appConsistentFrequencyInMinutes?: number; /** - * @member {string} [ipAddress] The IP address. + * A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or + * 'Disabled'. Possible values include: 'Enable', 'Disable' */ - ipAddress?: string; + multiVmSyncStatus: SetMultiVmSyncStatus; +} + +/** + * Recovery virtual network input to create new virtual network from given source network. + */ +export interface NewRecoveryVirtualNetwork { /** - * @member {string} [agentVersion] The agent Version. + * Polymorphic Discriminator */ - agentVersion?: string; + resourceType: "New"; /** - * @member {string} [hostName] The host name. + * The name of the resource group to be used to create the recovery virtual network. If absent, + * target network would be created in the same resource group as target VM. */ - hostName?: string; + recoveryVirtualNetworkResourceGroupName?: string; /** - * @member {Date} [lastHeartbeat] The last heartbeat received from CS server. + * The recovery virtual network name. */ - lastHeartbeat?: Date; + recoveryVirtualNetworkName?: string; +} + +/** + * Operations discovery class. + */ +export interface OperationsDiscovery { /** - * @member {string} [versionStatus] Version status + * Name of the API. The name of the operation being performed on this particular object. It + * should match the action name that appears in RBAC / the event service. Examples of operations + * include: * Microsoft.Compute/virtualMachine/capture/action * + * Microsoft.Compute/virtualMachine/restart/action * Microsoft.Compute/virtualMachine/write * + * Microsoft.Compute/virtualMachine/read * Microsoft.Compute/virtualMachine/delete Each action + * should include, in order: (1) Resource Provider Namespace (2) Type hierarchy for which the + * action applies (e.g. server/databases for a SQL Azure database) (3) Read, Write, Action or + * Delete indicating which type applies. If it is a PUT/PATCH on a collection or named value, + * Write should be used. If it is a GET, Read should be used. If it is a DELETE, Delete should be + * used. If it is a POST, Action should be used. As a note: all resource providers would need to + * include the "{Resource Provider Namespace}/register/action" operation in their response. This + * API is used to register for their service, and should include details about the operation + * (e.g. a localized name for the resource provider + any special considerations like PII + * release). */ - versionStatus?: string; + name?: string; /** - * @member {Date} [sslCertExpiryDate] CS SSL cert expiry date. + * Object type. */ - sslCertExpiryDate?: Date; + display?: Display; /** - * @member {number} [sslCertExpiryRemainingDays] CS SSL cert expiry date. + * Origin. The intended executor of the operation; governs the display of the operation in the + * RBAC UX and the audit logs UX. Default value is "user,system". */ - sslCertExpiryRemainingDays?: number; + origin?: string; /** - * @member {string} [psTemplateVersion] PS template version. + * Properties. Reserved for future use. */ - psTemplateVersion?: string; + properties?: any; +} + +/** + * Wrapper model for OSVersion to include version and service pack info. + */ +export interface OSVersionWrapper { /** - * @member {Date} [agentExpiryDate] Agent expiry date. + * The version. */ - agentExpiryDate?: Date; + version?: string; /** - * @member {VersionDetails} [agentVersionDetails] The agent version details. + * The service pack. */ - agentVersionDetails?: VersionDetails; + servicePack?: string; } /** - * @interface - * An interface representing VMwareV2FabricCreationInput. - * Fabric provider specific settings. - * + * Input definition for planned failover input properties. */ -export interface VMwareV2FabricCreationInput { - /** - * @member {string} instanceType Polymorphic Discriminator - */ - instanceType: "VMwareV2"; +export interface PlannedFailoverInputProperties { /** - * @member {string} [keyVaultUrl] The Key Vault URL. + * Failover direction. */ - keyVaultUrl?: string; + failoverDirection?: string; /** - * @member {string} [keyVaultResourceArmId] The Key Vault ARM Id. + * Provider specific settings. */ - keyVaultResourceArmId?: string; + providerSpecificDetails?: PlannedFailoverProviderSpecificFailoverInputUnion; } /** - * @interface - * An interface representing VMwareV2FabricSpecificDetails. - * VMwareV2 fabric Specific Details. - * + * Input definition for planned failover. */ -export interface VMwareV2FabricSpecificDetails { - /** - * @member {string} instanceType Polymorphic Discriminator - */ - instanceType: "VMwareV2"; +export interface PlannedFailoverInput { /** - * @member {string} [srsServiceEndpoint] The endpoint for making requests to - * the SRS Service. + * Planned failover input properties. */ - srsServiceEndpoint?: string; + properties?: PlannedFailoverInputProperties; +} + +/** + * Protection profile custom data details. + */ +export interface PolicyProperties { /** - * @member {string} [rcmServiceEndpoint] The endpoint for making requests to - * the RCM Service. + * The FriendlyName. */ - rcmServiceEndpoint?: string; + friendlyName?: string; /** - * @member {string} [keyVaultUrl] The Key Vault URL. + * The ReplicationChannelSetting. */ - keyVaultUrl?: string; + providerSpecificDetails?: PolicyProviderSpecificDetailsUnion; +} + +/** + * Protection profile details. + */ +export interface Policy extends Resource { /** - * @member {string} [keyVaultResourceArmId] The Key Vault ARM Id. + * The custom data. */ - keyVaultResourceArmId?: string; + properties?: PolicyProperties; } /** - * @interface - * An interface representing VMwareVirtualMachineDetails. - * VMware provider specific settings - * + * Details of the Process Server. */ -export interface VMwareVirtualMachineDetails { +export interface ProcessServer { /** - * @member {string} instanceType Polymorphic Discriminator + * The Process Server's friendly name. */ - instanceType: "VMwareVirtualMachine"; + friendlyName?: string; /** - * @member {string} [agentGeneratedId] The ID generated by the InMage agent - * after it gets installed on guest. This is the ID to be used during InMage - * CreateProtection. + * The Process Server Id. */ - agentGeneratedId?: string; + id?: string; /** - * @member {string} [agentInstalled] The value indicating if InMage scout - * agent is installed on guest. + * The IP address of the server. */ - agentInstalled?: string; + ipAddress?: string; /** - * @member {string} [osType] The OsType installed on VM. + * The OS type of the server. */ osType?: string; /** - * @member {string} [agentVersion] The agent version. + * The version of the scout component on the server. */ agentVersion?: string; /** - * @member {string} [ipAddress] The IP address. + * The last heartbeat received from the server. */ - ipAddress?: string; + lastHeartbeat?: Date; /** - * @member {string} [poweredOn] The value indicating whether VM is powered - * on. + * Version status. */ - poweredOn?: string; + versionStatus?: string; /** - * @member {string} [vCenterInfrastructureId] The VCenter infrastructure Id. + * The list of the mobility service updates available on the Process Server. */ - vCenterInfrastructureId?: string; + mobilityServiceUpdates?: MobilityServiceUpdate[]; /** - * @member {string} [discoveryType] A value inidicating the discovery type of - * the machine. Value can be vCenter or physical. + * The agent generated Id. */ - discoveryType?: string; + hostId?: string; /** - * @member {InMageDiskDetails[]} [diskDetails] The disk details. + * The servers configured with this PS. */ - diskDetails?: InMageDiskDetails[]; + machineCount?: string; /** - * @member {HealthError[]} [validationErrors] The validation errors. + * The number of replication pairs configured in this PS. */ - validationErrors?: HealthError[]; -} - -/** - * @interface - * An interface representing ReplicationEventsListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface ReplicationEventsListOptionalParams extends msRest.RequestOptionsBase { + replicationPairCount?: string; /** - * @member {string} [filter] OData filter options. + * The percentage of the system load. */ - filter?: string; -} - -/** - * @interface - * An interface representing ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams extends msRest.RequestOptionsBase { + systemLoad?: string; /** - * @member {string} [filter] OData filter options. + * The system load status. */ - filter?: string; + systemLoadStatus?: string; + /** + * The percentage of the CPU load. + */ + cpuLoad?: string; + /** + * The CPU load status. + */ + cpuLoadStatus?: string; + /** + * The total memory. + */ + totalMemoryInBytes?: number; + /** + * The available memory. + */ + availableMemoryInBytes?: number; + /** + * The memory usage status. + */ + memoryUsageStatus?: string; + /** + * The total space. + */ + totalSpaceInBytes?: number; + /** + * The available space. + */ + availableSpaceInBytes?: number; + /** + * The space usage status. + */ + spaceUsageStatus?: string; + /** + * The PS service status. + */ + psServiceStatus?: string; + /** + * The PS SSL cert expiry date. + */ + sslCertExpiryDate?: Date; + /** + * CS SSL cert expiry date. + */ + sslCertExpiryRemainingDays?: number; + /** + * OS Version of the process server. Note: This will get populated if user has CS version greater + * than 9.12.0.0. + */ + osVersion?: string; + /** + * Health errors. + */ + healthErrors?: HealthError[]; + /** + * Agent expiry date. + */ + agentExpiryDate?: Date; + /** + * The agent version details. + */ + agentVersionDetails?: VersionDetails; + /** + * The health of Process Server. Possible values include: 'None', 'Normal', 'Warning', 'Critical' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly health?: ProtectionHealth; + /** + * The process server stats refresh time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly psStatsRefreshTime?: Date; + /** + * The uploading pending data in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly throughputUploadPendingDataInBytes?: number; + /** + * The throughput in MBps. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly throughputInMBps?: number; + /** + * The throughput in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly throughputInBytes?: number; + /** + * The throughput status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly throughputStatus?: string; + /** + * The MARS communication status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly marsCommunicationStatus?: string; + /** + * The MARS registration status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly marsRegistrationStatus?: string; } /** - * @interface - * An interface representing ReplicationProtectedItemsListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * Replication protected item custom data details. */ -export interface ReplicationProtectedItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectableItemProperties { /** - * @member {string} [skipToken] The pagination token. Possible values: - * "FabricId" or "FabricId_CloudId" or null + * The name. */ - skipToken?: string; + friendlyName?: string; /** - * @member {string} [filter] OData filter options. + * The protection status. */ - filter?: string; + protectionStatus?: string; + /** + * The ARM resource of protected items. + */ + replicationProtectedItemId?: string; + /** + * The recovery provider ARM Id. + */ + recoveryServicesProviderId?: string; + /** + * The Current protection readiness errors. + */ + protectionReadinessErrors?: string[]; + /** + * The list of replication providers supported for the protectable item. + */ + supportedReplicationProviders?: string[]; + /** + * The Replication provider custom settings. + */ + customDetails?: ConfigurationSettingsUnion; } /** - * @interface - * An interface representing ReplicationJobsListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * Replication protected item. */ -export interface ReplicationJobsListOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectableItem extends Resource { /** - * @member {string} [filter] OData filter options. + * The custom data. */ - filter?: string; + properties?: ProtectableItemProperties; } /** - * @interface - * An interface representing SiteRecoveryManagementClientOptions. - * @extends AzureServiceClientOptions + * Query parameter to enumerate Protectable items. */ -export interface SiteRecoveryManagementClientOptions extends AzureServiceClientOptions { +export interface ProtectableItemQueryParameter { /** - * @member {string} [baseUri] + * State of the Protectable item query filter. */ - baseUri?: string; + state?: string; } - /** - * @interface - * An interface representing the OperationsDiscoveryCollection. - * Collection of ClientDiscovery details. - * - * @extends Array + * Query parameter to enumerate protected items. */ -export interface OperationsDiscoveryCollection extends Array { +export interface ProtectedItemsQueryParameter { /** - * @member {string} [nextLink] The value of next link. + * The source fabric name filter. */ - nextLink?: string; + sourceFabricName?: string; + /** + * The recovery plan filter. + */ + recoveryPlanName?: string; + /** + * The source fabric location filter. + */ + sourceFabricLocation?: string; + /** + * The fabric object Id filter. + */ + fabricObjectId?: string; + /** + * The vCenter name filter. + */ + vCenterName?: string; + /** + * The replication provider type. + */ + instanceType?: string; + /** + * Whether Multi VM group is auto created or specified by user. Possible values include: + * 'AutoCreated', 'UserSpecified' + */ + multiVmGroupCreateOption?: MultiVmGroupCreateOption; + /** + * The process server Id filter. + */ + processServerId?: string; } /** - * @interface - * An interface representing the AlertCollection. - * Collection of alerts. - * - * @extends Array + * Base class for fabric specific details of container. */ -export interface AlertCollection extends Array { +export interface ProtectionContainerFabricSpecificDetails { /** - * @member {string} [nextLink] The value of next link. + * Gets the class type. Overridden in derived classes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly instanceType?: string; } /** - * @interface - * An interface representing the EventCollection. - * Collection of fabric details. - * - * @extends Array + * Protection profile custom data details. */ -export interface EventCollection extends Array { +export interface ProtectionContainerProperties { /** - * @member {string} [nextLink] The value of next link. + * Fabric friendly name. */ - nextLink?: string; + fabricFriendlyName?: string; + /** + * The name. + */ + friendlyName?: string; + /** + * The fabric type. + */ + fabricType?: string; + /** + * Number of protected PEs. + */ + protectedItemCount?: number; + /** + * The pairing status of this cloud. + */ + pairingStatus?: string; + /** + * The role of this cloud. + */ + role?: string; + /** + * Fabric specific details. + */ + fabricSpecificDetails?: ProtectionContainerFabricSpecificDetails; } /** - * @interface - * An interface representing the FabricCollection. - * Collection of fabric details. - * - * @extends Array + * Protection container details. */ -export interface FabricCollection extends Array { +export interface ProtectionContainer extends Resource { /** - * @member {string} [nextLink] The value of next link. + * The custom data. */ - nextLink?: string; + properties?: ProtectionContainerProperties; } /** - * @interface - * An interface representing the LogicalNetworkCollection. - * List of logical networks. - * - * @extends Array + * Protection container mapping properties. */ -export interface LogicalNetworkCollection extends Array { +export interface ProtectionContainerMappingProperties { /** - * @member {string} [nextLink] The value of next link. + * Paired protection container ARM ID. */ - nextLink?: string; + targetProtectionContainerId?: string; + /** + * Friendly name of paired container. + */ + targetProtectionContainerFriendlyName?: string; + /** + * Provider specific provider details. + */ + providerSpecificDetails?: ProtectionContainerMappingProviderSpecificDetailsUnion; + /** + * Health of pairing. + */ + health?: string; + /** + * Health error. + */ + healthErrorDetails?: HealthError[]; + /** + * Policy ARM Id. + */ + policyId?: string; + /** + * Association Status. + */ + state?: string; + /** + * Friendly name of source protection container. + */ + sourceProtectionContainerFriendlyName?: string; + /** + * Friendly name of source fabric. + */ + sourceFabricFriendlyName?: string; + /** + * Friendly name of target fabric. + */ + targetFabricFriendlyName?: string; + /** + * Friendly name of replication policy. + */ + policyFriendlyName?: string; } /** - * @interface - * An interface representing the NetworkCollection. - * List of networks. - * - * @extends Array + * Protection container mapping object. */ -export interface NetworkCollection extends Array { +export interface ProtectionContainerMapping extends Resource { /** - * @member {string} [nextLink] The value of next link. + * The custom data. */ - nextLink?: string; + properties?: ProtectionContainerMappingProperties; } /** - * @interface - * An interface representing the NetworkMappingCollection. - * List of network mappings. As with NetworkMapping, it should be possible to - * reuse a prev version of this class. It doesn't seem likely this class could - * be anything more than a slightly bespoke collection of NetworkMapping. Hence - * it makes sense to override Load with Base.NetworkMapping instead of existing - * CurrentVersion.NetworkMapping. - * - * @extends Array + * Contains the possible cases for RecoveryPlanProviderSpecificDetails. */ -export interface NetworkMappingCollection extends Array { - /** - * @member {string} [nextLink] The value of next link. - */ - nextLink?: string; -} +export type RecoveryPlanProviderSpecificDetailsUnion = RecoveryPlanProviderSpecificDetails | RecoveryPlanA2ADetails; /** - * @interface - * An interface representing the ProtectionContainerCollection. - * Protection Container collection. - * - * @extends Array + * Recovery plan provider specific details. */ -export interface ProtectionContainerCollection extends Array { +export interface RecoveryPlanProviderSpecificDetails { /** - * @member {string} [nextLink] The value of next link. + * Polymorphic Discriminator */ - nextLink?: string; + instanceType: "RecoveryPlanProviderSpecificDetails"; } /** - * @interface - * An interface representing the ProtectableItemCollection. - * Protectable item collection. - * - * @extends Array + * Recovery plan properties. */ -export interface ProtectableItemCollection extends Array { +export interface RecoveryPlanProperties { /** - * @member {string} [nextLink] The value of next link. + * The friendly name. */ - nextLink?: string; + friendlyName?: string; + /** + * The primary fabric Id. + */ + primaryFabricId?: string; + /** + * The primary fabric friendly name. + */ + primaryFabricFriendlyName?: string; + /** + * The recovery fabric Id. + */ + recoveryFabricId?: string; + /** + * The recovery fabric friendly name. + */ + recoveryFabricFriendlyName?: string; + /** + * The failover deployment model. + */ + failoverDeploymentModel?: string; + /** + * The list of replication providers. + */ + replicationProviders?: string[]; + /** + * The list of allowed operations. + */ + allowedOperations?: string[]; + /** + * The start time of the last planned failover. + */ + lastPlannedFailoverTime?: Date; + /** + * The start time of the last unplanned failover. + */ + lastUnplannedFailoverTime?: Date; + /** + * The start time of the last test failover. + */ + lastTestFailoverTime?: Date; + /** + * The current scenario details. + */ + currentScenario?: CurrentScenarioDetails; + /** + * The recovery plan status. + */ + currentScenarioStatus?: string; + /** + * The recovery plan status description. + */ + currentScenarioStatusDescription?: string; + /** + * The recovery plan groups. + */ + groups?: RecoveryPlanGroup[]; + /** + * The provider id and provider specific details. + */ + providerSpecificDetails?: RecoveryPlanProviderSpecificDetailsUnion[]; } /** - * @interface - * An interface representing the ReplicationProtectedItemCollection. - * Replication protected item collection. - * - * @extends Array + * Recovery plan details. */ -export interface ReplicationProtectedItemCollection extends Array { +export interface RecoveryPlan extends Resource { /** - * @member {string} [nextLink] The value of next link. + * The custom details. */ - nextLink?: string; + properties?: RecoveryPlanProperties; } /** - * @interface - * An interface representing the RecoveryPointCollection. - * Collection of recovery point details. - * - * @extends Array + * Recovery plan A2A specific details. */ -export interface RecoveryPointCollection extends Array { +export interface RecoveryPlanA2ADetails { /** - * @member {string} [nextLink] The value of next link. + * Polymorphic Discriminator */ - nextLink?: string; + instanceType: "A2A"; + /** + * The primary zone. + */ + primaryZone?: string; + /** + * The recovery zone. + */ + recoveryZone?: string; } /** - * @interface - * An interface representing the TargetComputeSizeCollection. - * Target compute size collection. - * - * @extends Array + * Contains the possible cases for RecoveryPlanProviderSpecificFailoverInput. */ -export interface TargetComputeSizeCollection extends Array { - /** - * @member {string} [nextLink] The value of next link. - */ - nextLink?: string; -} +export type RecoveryPlanProviderSpecificFailoverInputUnion = RecoveryPlanProviderSpecificFailoverInput | RecoveryPlanA2AFailoverInput | RecoveryPlanHyperVReplicaAzureFailbackInput | RecoveryPlanHyperVReplicaAzureFailoverInput | RecoveryPlanInMageAzureV2FailoverInput | RecoveryPlanInMageFailoverInput | RecoveryPlanInMageRcmFailbackFailoverInput | RecoveryPlanInMageRcmFailoverInput; /** - * @interface - * An interface representing the ProtectionContainerMappingCollection. - * Protection container mapping collection class. - * - * @extends Array + * Recovery plan provider specific failover input. */ -export interface ProtectionContainerMappingCollection extends Array { +export interface RecoveryPlanProviderSpecificFailoverInput { /** - * @member {string} [nextLink] Link to fetch rest of the data. + * Polymorphic Discriminator */ - nextLink?: string; + instanceType: "RecoveryPlanProviderSpecificFailoverInput"; } /** - * @interface - * An interface representing the RecoveryServicesProviderCollection. - * Collection of providers. - * - * @extends Array + * Recovery plan A2A failover input. */ -export interface RecoveryServicesProviderCollection extends Array { +export interface RecoveryPlanA2AFailoverInput { /** - * @member {string} [nextLink] The value of next link. + * Polymorphic Discriminator */ - nextLink?: string; + instanceType: "A2A"; + /** + * The recovery point type. Possible values include: 'Latest', 'LatestApplicationConsistent', + * 'LatestCrashConsistent', 'LatestProcessed' + */ + recoveryPointType: A2ARpRecoveryPointType; + /** + * A value indicating whether to use recovery cloud service for TFO or not. + */ + cloudServiceCreationOption?: string; + /** + * A value indicating whether multi VM sync enabled VMs should use multi VM sync points for + * failover. Possible values include: 'UseMultiVmSyncRecoveryPoint', 'UsePerVmRecoveryPoint' + */ + multiVmSyncPointOption?: MultiVmSyncPointOption; } /** - * @interface - * An interface representing the StorageClassificationCollection. - * Collection of storage details. - * - * @extends Array + * Recovery plan A2A input. */ -export interface StorageClassificationCollection extends Array { +export interface RecoveryPlanA2AInput { /** - * @member {string} [nextLink] The value of next link. + * Polymorphic Discriminator */ - nextLink?: string; + instanceType: "A2A"; + /** + * The primary zone. + */ + primaryZone?: string; + /** + * The recovery zone. + */ + recoveryZone?: string; } /** - * @interface - * An interface representing the StorageClassificationMappingCollection. - * Collection of storage mapping details. - * - * @extends Array + * Recovery plan Automation runbook action details. */ -export interface StorageClassificationMappingCollection extends Array { +export interface RecoveryPlanAutomationRunbookActionDetails { /** - * @member {string} [nextLink] The value of next link. + * Polymorphic Discriminator */ - nextLink?: string; + instanceType: "AutomationRunbookActionDetails"; + /** + * The runbook ARM Id. + */ + runbookId?: string; + /** + * The runbook timeout. + */ + timeout?: string; + /** + * The fabric location. Possible values include: 'Primary', 'Recovery' + */ + fabricLocation: RecoveryPlanActionLocation; } /** - * @interface - * An interface representing the VCenterCollection. - * Collection of vCenter details. - * - * @extends Array + * Contains the possible cases for RecoveryPlanGroupTaskDetails. */ -export interface VCenterCollection extends Array { - /** - * @member {string} [nextLink] The value of next link. - */ - nextLink?: string; -} +export type RecoveryPlanGroupTaskDetailsUnion = RecoveryPlanGroupTaskDetails | RecoveryPlanShutdownGroupTaskDetails; /** - * @interface - * An interface representing the JobCollection. - * Collection of jobs. - * - * @extends Array + * This class represents the recovery plan group task. */ -export interface JobCollection extends Array { +export interface RecoveryPlanGroupTaskDetails { /** - * @member {string} [nextLink] The value of next link. + * Polymorphic Discriminator */ - nextLink?: string; + instanceType: "RecoveryPlanGroupTaskDetails"; + /** + * The child tasks. + */ + childTasks?: ASRTask[]; + /** + * The name. + */ + name?: string; + /** + * The group identifier. + */ + groupId?: string; + /** + * The group type. + */ + rpGroupType?: string; } /** - * @interface - * An interface representing the PolicyCollection. - * Protection Profile Collection details. - * - * @extends Array + * Recovery plan HVR Azure failback input. */ -export interface PolicyCollection extends Array { +export interface RecoveryPlanHyperVReplicaAzureFailbackInput { /** - * @member {string} [nextLink] The value of next link. + * Polymorphic Discriminator */ - nextLink?: string; + instanceType: "HyperVReplicaAzureFailback"; + /** + * The data sync option. Possible values include: 'ForDownTime', 'ForSynchronization' + */ + dataSyncOption: DataSyncStatus; + /** + * The ALR option. Possible values include: 'CreateVmIfNotFound', 'NoAction' + */ + recoveryVmCreationOption: AlternateLocationRecoveryOption; } /** - * @interface - * An interface representing the RecoveryPlanCollection. - * Recovery plan collection details. - * - * @extends Array + * Recovery plan HVR Azure failover input. */ -export interface RecoveryPlanCollection extends Array { +export interface RecoveryPlanHyperVReplicaAzureFailoverInput { /** - * @member {string} [nextLink] The value of next link. + * Polymorphic Discriminator */ - nextLink?: string; -} - -/** - * Defines values for AgentAutoUpdateStatus. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type AgentAutoUpdateStatus = 'Disabled' | 'Enabled'; + instanceType: "HyperVReplicaAzure"; + /** + * The primary KEK certificate PFX. + */ + primaryKekCertificatePfx?: string; + /** + * The secondary KEK certificate PFX. + */ + secondaryKekCertificatePfx?: string; + /** + * The recovery point type. Possible values include: 'Latest', 'LatestApplicationConsistent', + * 'LatestProcessed' + */ + recoveryPointType?: HyperVReplicaAzureRpRecoveryPointType; +} /** - * Defines values for SetMultiVmSyncStatus. - * Possible values include: 'Enable', 'Disable' - * @readonly - * @enum {string} + * Recovery plan InMageAzureV2 failover input. */ -export type SetMultiVmSyncStatus = 'Enable' | 'Disable'; +export interface RecoveryPlanInMageAzureV2FailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "InMageAzureV2"; + /** + * The recovery point type. Possible values include: 'Latest', 'LatestApplicationConsistent', + * 'LatestCrashConsistent', 'LatestProcessed' + */ + recoveryPointType: InMageV2RpRecoveryPointType; + /** + * A value indicating whether multi VM sync enabled VMs should use multi VM sync points for + * failover. + */ + useMultiVmSyncPoint?: string; +} /** - * Defines values for RecoveryPointSyncType. - * Possible values include: 'MultiVmSyncRecoveryPoint', 'PerVmRecoveryPoint' - * @readonly - * @enum {string} + * Recovery plan InMage failover input. */ -export type RecoveryPointSyncType = 'MultiVmSyncRecoveryPoint' | 'PerVmRecoveryPoint'; +export interface RecoveryPlanInMageFailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "InMage"; + /** + * The recovery point type. Possible values include: 'LatestTime', 'LatestTag', 'Custom' + */ + recoveryPointType: RpInMageRecoveryPointType; +} /** - * Defines values for MultiVmGroupCreateOption. - * Possible values include: 'AutoCreated', 'UserSpecified' - * @readonly - * @enum {string} + * Recovery plan InMageRcmFailback failover input. */ -export type MultiVmGroupCreateOption = 'AutoCreated' | 'UserSpecified'; +export interface RecoveryPlanInMageRcmFailbackFailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "InMageRcmFailback"; + /** + * The recovery point type. Possible values include: 'ApplicationConsistent', 'CrashConsistent' + */ + recoveryPointType: InMageRcmFailbackRecoveryPointType; + /** + * A value indicating whether multi VM sync enabled VMs should use multi VM sync points for + * failover. + */ + useMultiVmSyncPoint?: string; +} /** - * Defines values for FailoverDeploymentModel. - * Possible values include: 'NotApplicable', 'Classic', 'ResourceManager' - * @readonly - * @enum {string} + * Recovery plan InMageRcm failover input. */ -export type FailoverDeploymentModel = 'NotApplicable' | 'Classic' | 'ResourceManager'; +export interface RecoveryPlanInMageRcmFailoverInput { + /** + * Polymorphic Discriminator + */ + instanceType: "InMageRcm"; + /** + * The recovery point type. Possible values include: 'Latest', 'LatestApplicationConsistent', + * 'LatestCrashConsistent', 'LatestProcessed' + */ + recoveryPointType: RecoveryPlanPointType; + /** + * A value indicating whether multi VM sync enabled VMs should use multi VM sync points for + * failover. + */ + useMultiVmSyncPoint?: string; +} /** - * Defines values for RecoveryPlanGroupType. - * Possible values include: 'Shutdown', 'Boot', 'Failover' - * @readonly - * @enum {string} + * Recovery plan manual action details. */ -export type RecoveryPlanGroupType = 'Shutdown' | 'Boot' | 'Failover'; +export interface RecoveryPlanManualActionDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "ManualActionDetails"; + /** + * The manual action description. + */ + description?: string; +} /** - * Defines values for ReplicationProtectedItemOperation. - * Possible values include: 'ReverseReplicate', 'Commit', 'PlannedFailover', 'UnplannedFailover', - * 'DisableProtection', 'TestFailover', 'TestFailoverCleanup', 'Failback', 'FinalizeFailback', - * 'ChangePit', 'RepairReplication', 'SwitchProtection', 'CompleteMigration' - * @readonly - * @enum {string} + * Recovery plan planned failover input properties. */ -export type ReplicationProtectedItemOperation = 'ReverseReplicate' | 'Commit' | 'PlannedFailover' | 'UnplannedFailover' | 'DisableProtection' | 'TestFailover' | 'TestFailoverCleanup' | 'Failback' | 'FinalizeFailback' | 'ChangePit' | 'RepairReplication' | 'SwitchProtection' | 'CompleteMigration'; +export interface RecoveryPlanPlannedFailoverInputProperties { + /** + * The failover direction. Possible values include: 'PrimaryToRecovery', 'RecoveryToPrimary' + */ + failoverDirection: PossibleOperationsDirections; + /** + * The provider specific properties. + */ + providerSpecificDetails?: RecoveryPlanProviderSpecificFailoverInputUnion[]; +} /** - * Defines values for PossibleOperationsDirections. - * Possible values include: 'PrimaryToRecovery', 'RecoveryToPrimary' - * @readonly - * @enum {string} + * Recovery plan planned failover input. */ -export type PossibleOperationsDirections = 'PrimaryToRecovery' | 'RecoveryToPrimary'; +export interface RecoveryPlanPlannedFailoverInput { + /** + * The recovery plan planned failover input properties. + */ + properties: RecoveryPlanPlannedFailoverInputProperties; +} /** - * Defines values for DisableProtectionReason. - * Possible values include: 'NotSpecified', 'MigrationComplete' - * @readonly - * @enum {string} + * Recovery plan script action details. */ -export type DisableProtectionReason = 'NotSpecified' | 'MigrationComplete'; +export interface RecoveryPlanScriptActionDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "ScriptActionDetails"; + /** + * The script path. + */ + path: string; + /** + * The script timeout. + */ + timeout?: string; + /** + * The fabric location. Possible values include: 'Primary', 'Recovery' + */ + fabricLocation: RecoveryPlanActionLocation; +} /** - * Defines values for HealthErrorCategory. - * Possible values include: 'None', 'Replication', 'TestFailover', 'Configuration', - * 'FabricInfrastructure', 'VersionExpiry', 'AgentAutoUpdate' - * @readonly - * @enum {string} + * This class represents the recovery plan shutdown group task details. */ -export type HealthErrorCategory = 'None' | 'Replication' | 'TestFailover' | 'Configuration' | 'FabricInfrastructure' | 'VersionExpiry' | 'AgentAutoUpdate'; +export interface RecoveryPlanShutdownGroupTaskDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "RecoveryPlanShutdownGroupTaskDetails"; + /** + * The child tasks. + */ + childTasks?: ASRTask[]; + /** + * The name. + */ + name?: string; + /** + * The group identifier. + */ + groupId?: string; + /** + * The group type. + */ + rpGroupType?: string; +} /** - * Defines values for Severity. - * Possible values include: 'NONE', 'Warning', 'Error', 'Info' - * @readonly - * @enum {string} + * Recovery plan test failover cleanup input properties. */ -export type Severity = 'NONE' | 'Warning' | 'Error' | 'Info'; +export interface RecoveryPlanTestFailoverCleanupInputProperties { + /** + * The test failover cleanup comments. + */ + comments?: string; +} /** - * Defines values for PresenceStatus. - * Possible values include: 'Unknown', 'Present', 'NotPresent' - * @readonly - * @enum {string} + * Recovery plan test failover cleanup input. */ -export type PresenceStatus = 'Unknown' | 'Present' | 'NotPresent'; +export interface RecoveryPlanTestFailoverCleanupInput { + /** + * The recovery plan test failover cleanup input properties. + */ + properties: RecoveryPlanTestFailoverCleanupInputProperties; +} /** - * Defines values for IdentityProviderType. - * Possible values include: 'RecoveryServicesActiveDirectory' - * @readonly - * @enum {string} + * Recovery plan test failover input properties. */ -export type IdentityProviderType = 'RecoveryServicesActiveDirectory'; +export interface RecoveryPlanTestFailoverInputProperties { + /** + * The failover direction. Possible values include: 'PrimaryToRecovery', 'RecoveryToPrimary' + */ + failoverDirection: PossibleOperationsDirections; + /** + * The network type to be used for test failover. + */ + networkType: string; + /** + * The Id of the network to be used for test failover. + */ + networkId?: string; + /** + * The provider specific properties. + */ + providerSpecificDetails?: RecoveryPlanProviderSpecificFailoverInputUnion[]; +} /** - * Defines values for AgentVersionStatus. - * Possible values include: 'Supported', 'NotSupported', 'Deprecated', 'UpdateRequired', - * 'SecurityUpdateRequired' - * @readonly - * @enum {string} + * Recovery plan test failover input. */ -export type AgentVersionStatus = 'Supported' | 'NotSupported' | 'Deprecated' | 'UpdateRequired' | 'SecurityUpdateRequired'; +export interface RecoveryPlanTestFailoverInput { + /** + * The recovery plan test failover input properties. + */ + properties: RecoveryPlanTestFailoverInputProperties; +} /** - * Defines values for RecoveryPointType. - * Possible values include: 'LatestTime', 'LatestTag', 'Custom' - * @readonly - * @enum {string} + * Recovery plan unplanned failover input properties. */ -export type RecoveryPointType = 'LatestTime' | 'LatestTag' | 'Custom'; +export interface RecoveryPlanUnplannedFailoverInputProperties { + /** + * The failover direction. Possible values include: 'PrimaryToRecovery', 'RecoveryToPrimary' + */ + failoverDirection: PossibleOperationsDirections; + /** + * A value indicating whether source site operations are required. Possible values include: + * 'Required', 'NotRequired' + */ + sourceSiteOperations: SourceSiteOperations; + /** + * The provider specific properties. + */ + providerSpecificDetails?: RecoveryPlanProviderSpecificFailoverInputUnion[]; +} /** - * Defines values for MultiVmSyncStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Recovery plan unplanned failover input. */ -export type MultiVmSyncStatus = 'Enabled' | 'Disabled'; +export interface RecoveryPlanUnplannedFailoverInput { + /** + * The recovery plan unplanned failover input properties. + */ + properties: RecoveryPlanUnplannedFailoverInputProperties; +} /** - * Defines values for A2ARpRecoveryPointType. - * Possible values include: 'Latest', 'LatestApplicationConsistent', 'LatestCrashConsistent', - * 'LatestProcessed' - * @readonly - * @enum {string} + * Recovery point properties. */ -export type A2ARpRecoveryPointType = 'Latest' | 'LatestApplicationConsistent' | 'LatestCrashConsistent' | 'LatestProcessed'; +export interface RecoveryPointProperties { + /** + * The recovery point time. + */ + recoveryPointTime?: Date; + /** + * The recovery point type: ApplicationConsistent, CrashConsistent. + */ + recoveryPointType?: string; + /** + * The provider specific details for the recovery point. + */ + providerSpecificDetails?: ProviderSpecificRecoveryPointDetailsUnion; +} /** - * Defines values for MultiVmSyncPointOption. + * Recovery point. + */ +export interface RecoveryPoint extends Resource { + /** + * The recovery point properties. + */ + properties?: RecoveryPointProperties; +} + +/** + * Recovery services provider properties. + */ +export interface RecoveryServicesProviderProperties { + /** + * Type of the site. + */ + fabricType?: string; + /** + * Friendly name of the DRA. + */ + friendlyName?: string; + /** + * The provider version. + */ + providerVersion?: string; + /** + * The fabric provider. + */ + serverVersion?: string; + /** + * DRA version status. + */ + providerVersionState?: string; + /** + * Expiry date of the version. + */ + providerVersionExpiryDate?: Date; + /** + * The fabric friendly name. + */ + fabricFriendlyName?: string; + /** + * Time when last heartbeat was sent by the DRA. + */ + lastHeartBeat?: Date; + /** + * A value indicating whether DRA is responsive. + */ + connectionStatus?: string; + /** + * Number of protected VMs currently managed by the DRA. + */ + protectedItemCount?: number; + /** + * The scenarios allowed on this provider. + */ + allowedScenarios?: string[]; + /** + * The recovery services provider health error details. + */ + healthErrorDetails?: HealthError[]; + /** + * The DRA Id. + */ + draIdentifier?: string; + /** + * The machine Id. + */ + machineId?: string; + /** + * The machine name. + */ + machineName?: string; + /** + * The Bios Id. + */ + biosId?: string; + /** + * The authentication identity details. + */ + authenticationIdentityDetails?: IdentityProviderDetails; + /** + * The resource access identity details. + */ + resourceAccessIdentityDetails?: IdentityProviderDetails; + /** + * The data plane authentication identity details. + */ + dataPlaneAuthenticationIdentityDetails?: IdentityProviderDetails; + /** + * The provider version details. + */ + providerVersionDetails?: VersionDetails; +} + +/** + * Provider details. + */ +export interface RecoveryServicesProvider extends Resource { + /** + * Provider properties. + */ + properties?: RecoveryServicesProviderProperties; +} + +/** + * Remove Disk input properties. + */ +export interface RemoveDisksInputProperties { + /** + * The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be + * AzureEnableProtectionInput object. For San provider, it will be SanEnableProtectionInput + * object. For HyperVReplicaAzure provider, it can be null. + */ + providerSpecificDetails?: RemoveDisksProviderSpecificInputUnion; +} + +/** + * Input for remove disk(s) operation. + */ +export interface RemoveDisksInput { + /** + * Remove disk input properties. + */ + properties?: RemoveDisksInputProperties; +} + +/** + * Provider specific input for unpairing operations. + */ +export interface ReplicationProviderContainerUnmappingInput { + /** + * The class type. + */ + instanceType?: string; +} + +/** + * Unpairing input properties. + */ +export interface RemoveProtectionContainerMappingInputProperties { + /** + * Provider specific input for unpairing. + */ + providerSpecificInput?: ReplicationProviderContainerUnmappingInput; +} + +/** + * Container unpairing input. + */ +export interface RemoveProtectionContainerMappingInput { + /** + * Configure protection input properties. + */ + properties?: RemoveProtectionContainerMappingInputProperties; +} + +/** + * Renew Certificate input properties. + */ +export interface RenewCertificateInputProperties { + /** + * Renew certificate type. + */ + renewCertificateType?: string; +} + +/** + * Certificate renewal input. + */ +export interface RenewCertificateInput { + /** + * Renew certificate input properties. + */ + properties?: RenewCertificateInputProperties; +} + +/** + * Error model that can be exposed to the user. + */ +export interface ReplicationEligibilityResultsErrorInfo { + /** + * The error code. + */ + code?: string; + /** + * The error message. + */ + message?: string; + /** + * The possible causes. + */ + possibleCauses?: string; + /** + * The recommended action. + */ + recommendedAction?: string; + /** + * The error status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; +} + +/** + * Properties model for replication eligibility results API. + */ +export interface ReplicationEligibilityResultsProperties { + /** + * The client request Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientRequestId?: string; + /** + * The error details. + */ + errors?: ReplicationEligibilityResultsErrorInfo[]; +} + +/** + * Replication eligibility results response model. + */ +export interface ReplicationEligibilityResults { + /** + * Gets the name of this object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Gets the object type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Gets Unique ARM identifier for this object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Gets properties model for replication eligibility results API. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly properties?: ReplicationEligibilityResultsProperties; +} + +/** + * Replication eligibility results collection response model. + */ +export interface ReplicationEligibilityResultsCollection { + /** + * The replication eligibility results details. + */ + value?: ReplicationEligibilityResults[]; +} + +/** + * Replication group details. This will be used in case of San. + */ +export interface ReplicationGroupDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "ReplicationGroupDetails"; +} + +/** + * Replication protected item custom data details. + */ +export interface ReplicationProtectedItemProperties { + /** + * The name. + */ + friendlyName?: string; + /** + * The type of protected item type. + */ + protectedItemType?: string; + /** + * The protected item ARM Id. + */ + protectableItemId?: string; + /** + * The recovery provider ARM Id. + */ + recoveryServicesProviderId?: string; + /** + * The friendly name of the primary fabric. + */ + primaryFabricFriendlyName?: string; + /** + * The fabric provider of the primary fabric. + */ + primaryFabricProvider?: string; + /** + * The friendly name of recovery fabric. + */ + recoveryFabricFriendlyName?: string; + /** + * The Arm Id of recovery fabric. + */ + recoveryFabricId?: string; + /** + * The name of primary protection container friendly name. + */ + primaryProtectionContainerFriendlyName?: string; + /** + * The name of recovery container friendly name. + */ + recoveryProtectionContainerFriendlyName?: string; + /** + * The protection status. + */ + protectionState?: string; + /** + * The protection state description. + */ + protectionStateDescription?: string; + /** + * The Current active location of the PE. + */ + activeLocation?: string; + /** + * The Test failover state. + */ + testFailoverState?: string; + /** + * The Test failover state description. + */ + testFailoverStateDescription?: string; + /** + * The allowed operations on the Replication protected item. + */ + allowedOperations?: string[]; + /** + * The consolidated protection health for the VM taking any issues with SRS as well as all the + * replication units associated with the VM's replication group into account. This is a string + * representation of the ProtectionHealth enumeration. + */ + replicationHealth?: string; + /** + * The consolidated failover health for the VM. + */ + failoverHealth?: string; + /** + * List of health errors. + */ + healthErrors?: HealthError[]; + /** + * The ID of Policy governing this PE. + */ + policyId?: string; + /** + * The name of Policy governing this PE. + */ + policyFriendlyName?: string; + /** + * The Last successful failover time. + */ + lastSuccessfulFailoverTime?: Date; + /** + * The Last successful test failover time. + */ + lastSuccessfulTestFailoverTime?: Date; + /** + * The current scenario. + */ + currentScenario?: CurrentScenarioDetails; + /** + * The recovery point ARM Id to which the Vm was failed over. + */ + failoverRecoveryPointId?: string; + /** + * The Replication provider custom settings. + */ + providerSpecificDetails?: ReplicationProviderSpecificSettingsUnion; + /** + * The recovery container Id. + */ + recoveryContainerId?: string; + /** + * The correlation Id for events associated with this protected item. + */ + eventCorrelationId?: string; +} + +/** + * Replication protected item. + */ +export interface ReplicationProtectedItem extends Resource { + /** + * The custom data. + */ + properties?: ReplicationProtectedItemProperties; +} + +/** + * Replication protection intent custom data details. + */ +export interface ReplicationProtectionIntentProperties { + /** + * The name. + */ + friendlyName?: string; + /** + * The job Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly jobId?: string; + /** + * The job state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly jobState?: string; + /** + * A value indicating whether the intent object is active. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isActive?: boolean; + /** + * The creation time in UTC. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationTimeUTC?: string; + /** + * The Replication provider custom settings. + */ + providerSpecificDetails?: ReplicationProtectionIntentProviderSpecificSettingsUnion; +} + +/** + * Replication protection intent. + */ +export interface ReplicationProtectionIntent extends Resource { + /** + * The custom data. + */ + properties?: ReplicationProtectionIntentProperties; +} + +/** + * Resolve health errors input properties. + */ +export interface ResolveHealthError { + /** + * Health error id. + */ + healthErrorId?: string; +} + +/** + * Resolve health input properties. + */ +export interface ResolveHealthInputProperties { + /** + * Health errors. + */ + healthErrors?: ResolveHealthError[]; +} + +/** + * Resolve health input. + */ +export interface ResolveHealthInput { + /** + * Disable resolve health input properties. + */ + properties?: ResolveHealthInputProperties; +} + +/** + * Base class to define the health summary of the resources contained under an Arm resource. + */ +export interface ResourceHealthSummary { + /** + * The count of total resources under the container. + */ + resourceCount?: number; + /** + * The list of summary of health errors across the resources under the container. + */ + issues?: HealthErrorSummary[]; + /** + * The categorized resource counts. + */ + categorizedResourceCounts?: { [propertyName: string]: number }; +} + +/** + * Resume job properties. + */ +export interface ResumeJobParamsProperties { + /** + * Resume job comments. + */ + comments?: string; +} + +/** + * Resume job params. + */ +export interface ResumeJobParams { + /** + * Resume job properties. + */ + properties?: ResumeJobParamsProperties; +} + +/** + * Contains the possible cases for ResyncProviderSpecificInput. + */ +export type ResyncProviderSpecificInputUnion = ResyncProviderSpecificInput | VMwareCbtResyncInput; + +/** + * Resync provider specific input. + */ +export interface ResyncProviderSpecificInput { + /** + * Polymorphic Discriminator + */ + instanceType: "ResyncProviderSpecificInput"; +} + +/** + * Resync input properties. + */ +export interface ResyncInputProperties { + /** + * The provider specific details. + */ + providerSpecificDetails: ResyncProviderSpecificInputUnion; +} + +/** + * Resync input. + */ +export interface ResyncInput { + /** + * Resync input properties. + */ + properties: ResyncInputProperties; +} + +/** + * Reverse replication input properties. + */ +export interface ReverseReplicationInputProperties { + /** + * Failover direction. + */ + failoverDirection?: string; + /** + * Provider specific reverse replication input. + */ + providerSpecificDetails?: ReverseReplicationProviderSpecificInputUnion; +} + +/** + * Reverse replication input. + */ +export interface ReverseReplicationInput { + /** + * Reverse replication properties. + */ + properties?: ReverseReplicationInputProperties; +} + +/** + * Azure role assignment details. + */ +export interface RoleAssignment { + /** + * The ARM Id of the role assignment. + */ + id?: string; + /** + * The name of the role assignment. + */ + name?: string; + /** + * Role assignment scope. + */ + scope?: string; + /** + * Principal Id. + */ + principalId?: string; + /** + * Role definition id. + */ + roleDefinitionId?: string; +} + +/** + * CS Accounts Details. + */ +export interface RunAsAccount { + /** + * The CS RunAs account Id. + */ + accountId?: string; + /** + * The CS RunAs account name. + */ + accountName?: string; +} + +/** + * This class represents the script action task details. + */ +export interface ScriptActionTaskDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "ScriptActionTaskDetails"; + /** + * The name. + */ + name?: string; + /** + * The path. + */ + path?: string; + /** + * The output. + */ + output?: string; + /** + * A value indicating whether it is a primary side script or not. + */ + isPrimarySideScript?: boolean; +} + +/** + * An interface representing IPConfigInputDetails. + */ +export interface IPConfigInputDetails { + ipConfigName?: string; + isPrimary?: boolean; + isSeletedForFailover?: boolean; + recoverySubnetName?: string; + recoveryStaticIPAddress?: string; + recoveryPublicIPAddressId?: string; + recoveryLBBackendAddressPoolIds?: string[]; + tfoSubnetName?: string; + tfoStaticIPAddress?: string; + tfoPublicIPAddressId?: string; + tfoLBBackendAddressPoolIds?: string[]; +} + +/** + * Storage object properties. + */ +export interface StorageClassificationProperties { + /** + * Friendly name of the Storage classification. + */ + friendlyName?: string; +} + +/** + * Storage object definition. + */ +export interface StorageClassification extends Resource { + /** + * Properties of the storage object. + */ + properties?: StorageClassificationProperties; +} + +/** + * Storage mapping properties. + */ +export interface StorageClassificationMappingProperties { + /** + * Target storage object Id. + */ + targetStorageClassificationId?: string; +} + +/** + * Storage mapping object. + */ +export interface StorageClassificationMapping extends Resource { + /** + * Properties of the storage mapping object. + */ + properties?: StorageClassificationMappingProperties; +} + +/** + * Storage mapping input properties. + */ +export interface StorageMappingInputProperties { + /** + * The ID of the storage object. + */ + targetStorageClassificationId?: string; +} + +/** + * Storage mapping input. + */ +export interface StorageClassificationMappingInput { + /** + * Storage mapping input properties. + */ + properties?: StorageMappingInputProperties; +} + +/** + * Supported operating system details. + */ +export interface SupportedOSDetails { + /** + * The name. + */ + osName?: string; + /** + * The type. + */ + osType?: string; + /** + * The list of version for operating system. + */ + osVersions?: OSVersionWrapper[]; +} + +/** + * Supported operating systems property. + */ +export interface SupportedOSProperty { + /** + * The replication provider type. + */ + instanceType?: string; + /** + * The list of supported operating systems. + */ + supportedOs?: SupportedOSDetails[]; +} + +/** + * Supported operating systems properties. + */ +export interface SupportedOSProperties { + /** + * The supported operating systems property list. + */ + supportedOsList?: SupportedOSProperty[]; +} + +/** + * Supported operating systems. + */ +export interface SupportedOperatingSystems extends Resource { + /** + * The supported operating systems properties. + */ + properties?: SupportedOSProperties; +} + +/** + * Switch protection input properties. + */ +export interface SwitchProtectionInputProperties { + /** + * The unique replication protected item name. + */ + replicationProtectedItemName?: string; + /** + * Provider specific switch protection input. + */ + providerSpecificDetails?: SwitchProtectionProviderSpecificInputUnion; +} + +/** + * Switch protection input. + */ +export interface SwitchProtectionInput { + /** + * Switch protection properties. + */ + properties?: SwitchProtectionInputProperties; +} + +/** + * This class represents details for switch protection job. + */ +export interface SwitchProtectionJobDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "SwitchProtectionJobDetails"; + /** + * The affected object properties like source server, source cloud, target server, target cloud + * etc. based on the workflow object details. + */ + affectedObjectDetails?: { [propertyName: string]: string }; + /** + * ARM Id of the new replication protected item. + */ + newReplicationProtectedItemId?: string; +} + +/** + * Represents applicable recovery vm sizes properties. + */ +export interface TargetComputeSizeProperties { + /** + * Target compute size name. + */ + name?: string; + /** + * Target compute size display name. + */ + friendlyName?: string; + /** + * The maximum cpu cores count supported by target compute size. + */ + cpuCoresCount?: number; + /** + * The Available vCPUs supported by target compute size. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vCPUsAvailable?: number; + /** + * The maximum memory in GB supported by target compute size. + */ + memoryInGB?: number; + /** + * The maximum data disks count supported by target compute size. + */ + maxDataDiskCount?: number; + /** + * The maximum Nics count supported by target compute size. + */ + maxNicsCount?: number; + /** + * The reasons why the target compute size is not applicable for the protected item. + */ + errors?: ComputeSizeErrorDetails[]; + /** + * The value indicating whether the target compute size supports high Iops. + */ + highIopsSupported?: string; + /** + * The supported HyperV Generations. + */ + hyperVGenerations?: string[]; +} + +/** + * Represents applicable recovery vm sizes. + */ +export interface TargetComputeSize { + /** + * The Id. + */ + id?: string; + /** + * The name. + */ + name?: string; + /** + * The Type of the object. + */ + type?: string; + /** + * The custom data. + */ + properties?: TargetComputeSizeProperties; +} + +/** + * Input definition for test failover cleanup input properties. + */ +export interface TestFailoverCleanupInputProperties { + /** + * Test failover cleanup comments. + */ + comments?: string; +} + +/** + * Input definition for test failover cleanup. + */ +export interface TestFailoverCleanupInput { + /** + * Test failover cleanup input properties. + */ + properties: TestFailoverCleanupInputProperties; +} + +/** + * Input definition for test failover input properties. + */ +export interface TestFailoverInputProperties { + /** + * Test failover direction. + */ + failoverDirection?: string; + /** + * Network type to be used for test failover. + */ + networkType?: string; + /** + * The id of the network to be used for test failover. + */ + networkId?: string; + /** + * Provider specific settings. + */ + providerSpecificDetails?: TestFailoverProviderSpecificInputUnion; +} + +/** + * Input definition for test failover. + */ +export interface TestFailoverInput { + /** + * Test failover input properties. + */ + properties: TestFailoverInputProperties; +} + +/** + * This class represents the details for a test failover job. + */ +export interface TestFailoverJobDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "TestFailoverJobDetails"; + /** + * The affected object properties like source server, source cloud, target server, target cloud + * etc. based on the workflow object details. + */ + affectedObjectDetails?: { [propertyName: string]: string }; + /** + * The test failover status. + */ + testFailoverStatus?: string; + /** + * The test failover comments. + */ + comments?: string; + /** + * The test network name. + */ + networkName?: string; + /** + * The test network friendly name. + */ + networkFriendlyName?: string; + /** + * The test network type (see TestFailoverInput enum for possible values). + */ + networkType?: string; + /** + * The test VM details. + */ + protectedItemDetails?: FailoverReplicationProtectedItemDetails[]; +} + +/** + * Test migrate cleanup input properties. + */ +export interface TestMigrateCleanupInputProperties { + /** + * Test migrate cleanup comments. + */ + comments?: string; +} + +/** + * Input for test migrate cleanup. + */ +export interface TestMigrateCleanupInput { + /** + * Test migrate cleanup input properties. + */ + properties: TestMigrateCleanupInputProperties; +} + +/** + * Contains the possible cases for TestMigrateProviderSpecificInput. + */ +export type TestMigrateProviderSpecificInputUnion = TestMigrateProviderSpecificInput | VMwareCbtTestMigrateInput; + +/** + * Test migrate provider specific input. + */ +export interface TestMigrateProviderSpecificInput { + /** + * Polymorphic Discriminator + */ + instanceType: "TestMigrateProviderSpecificInput"; +} + +/** + * Test migrate input properties. + */ +export interface TestMigrateInputProperties { + /** + * The provider specific details. + */ + providerSpecificDetails: TestMigrateProviderSpecificInputUnion; +} + +/** + * Input for test migrate. + */ +export interface TestMigrateInput { + /** + * Test migrate input properties. + */ + properties: TestMigrateInputProperties; +} + +/** + * Input definition for unplanned failover input properties. + */ +export interface UnplannedFailoverInputProperties { + /** + * Failover direction. + */ + failoverDirection?: string; + /** + * Source site operations status. + */ + sourceSiteOperations?: string; + /** + * Provider specific settings. + */ + providerSpecificDetails?: UnplannedFailoverProviderSpecificInputUnion; +} + +/** + * Input definition for unplanned failover. + */ +export interface UnplannedFailoverInput { + /** + * Unplanned failover input properties. + */ + properties: UnplannedFailoverInputProperties; +} + +/** + * Update appliance for protected item input properties. + */ +export interface UpdateApplianceForReplicationProtectedItemInputProperties { + /** + * The target appliance Id. + */ + targetApplianceId: string; + /** + * The provider specific input to update replication protected item. + */ + providerSpecificDetails: UpdateApplianceForReplicationProtectedItemProviderSpecificInputUnion; +} + +/** + * Update appliance for replication protected item input. + */ +export interface UpdateApplianceForReplicationProtectedItemInput { + /** + * Update appliance replication protected item properties. + */ + properties: UpdateApplianceForReplicationProtectedItemInputProperties; +} + +/** + * Contains the possible cases for UpdateMigrationItemProviderSpecificInput. + */ +export type UpdateMigrationItemProviderSpecificInputUnion = UpdateMigrationItemProviderSpecificInput | VMwareCbtUpdateMigrationItemInput; + +/** + * Update migration item provider specific input. + */ +export interface UpdateMigrationItemProviderSpecificInput { + /** + * Polymorphic Discriminator + */ + instanceType: "UpdateMigrationItemProviderSpecificInput"; +} + +/** + * Update migration item input properties. + */ +export interface UpdateMigrationItemInputProperties { + /** + * The provider specific input to update migration item. + */ + providerSpecificDetails: UpdateMigrationItemProviderSpecificInputUnion; +} + +/** + * Update migration item input. + */ +export interface UpdateMigrationItemInput { + /** + * Update migration item input properties. + */ + properties?: UpdateMigrationItemInputProperties; +} + +/** + * The properties of an update mobility service request. + */ +export interface UpdateMobilityServiceRequestProperties { + /** + * The CS run as account Id. + */ + runAsAccountId?: string; +} + +/** + * Request to update the mobility service on a protected item. + */ +export interface UpdateMobilityServiceRequest { + /** + * The properties of the update mobility service request. + */ + properties?: UpdateMobilityServiceRequestProperties; +} + +/** + * Common input details for network mapping operation. + */ +export interface UpdateNetworkMappingInputProperties { + /** + * Recovery fabric name. + */ + recoveryFabricName?: string; + /** + * Recovery network Id. + */ + recoveryNetworkId?: string; + /** + * Fabrics specific input network Id. + */ + fabricSpecificDetails?: FabricSpecificUpdateNetworkMappingInputUnion; +} + +/** + * Update network mapping input. + */ +export interface UpdateNetworkMappingInput { + /** + * The input properties needed to update network mapping. + */ + properties?: UpdateNetworkMappingInputProperties; +} + +/** + * Policy update properties. + */ +export interface UpdatePolicyInputProperties { + /** + * The ReplicationProviderSettings. + */ + replicationProviderSettings?: PolicyProviderSpecificInputUnion; +} + +/** + * Update policy input. + */ +export interface UpdatePolicyInput { + /** + * The ReplicationProviderSettings. + */ + properties?: UpdatePolicyInputProperties; +} + +/** + * Container pairing update input. + */ +export interface UpdateProtectionContainerMappingInputProperties { + /** + * Provider specific input for updating protection container mapping. + */ + providerSpecificInput?: ReplicationProviderSpecificUpdateContainerMappingInputUnion; +} + +/** + * Container pairing update input. + */ +export interface UpdateProtectionContainerMappingInput { + /** + * Update protection container mapping input properties. + */ + properties?: UpdateProtectionContainerMappingInputProperties; +} + +/** + * Recovery plan update properties. + */ +export interface UpdateRecoveryPlanInputProperties { + /** + * The recovery plan groups. + */ + groups?: RecoveryPlanGroup[]; +} + +/** + * Update recovery plan input class. + */ +export interface UpdateRecoveryPlanInput { + /** + * Recovery plan update properties. + */ + properties?: UpdateRecoveryPlanInputProperties; +} + +/** + * Hyper V VM network input details. + */ +export interface VMNicInputDetails { + /** + * The nic Id. + */ + nicId?: string; + /** + * The IP configurations to be used by NIC during test failover and failover. + */ + ipConfigs?: IPConfigInputDetails[]; + /** + * Selection type for failover. + */ + selectionType?: string; + /** + * The id of the NSG associated with the NIC. + */ + recoveryNetworkSecurityGroupId?: string; + /** + * Whether the NIC has accelerated networking enabled. + */ + enableAcceleratedNetworkingOnRecovery?: boolean; + /** + * The NSG to be used by NIC during test failover. + */ + tfoNetworkSecurityGroupId?: string; + /** + * Whether the test NIC has accelerated networking enabled. + */ + enableAcceleratedNetworkingOnTfo?: boolean; + /** + * The name of the NIC to be used when creating target NICs. + */ + recoveryNicName?: string; + /** + * The resource group of the NIC to be used when creating target NICs. + */ + recoveryNicResourceGroupName?: string; + /** + * A value indicating whether an existing NIC is allowed to be reused during failover subject to + * availability. + */ + reuseExistingNic?: boolean; + /** + * The name of the NIC to be used when creating target NICs in TFO. + */ + tfoNicName?: string; + /** + * The resource group of the NIC to be used when creating target NICs in TFO. + */ + tfoNicResourceGroupName?: string; + /** + * A value indicating whether an existing NIC is allowed to be reused during test failover + * subject to availability. + */ + tfoReuseExistingNic?: boolean; +} + +/** + * Update protected item input properties. + */ +export interface UpdateReplicationProtectedItemInputProperties { + /** + * Target Azure VM name given by the user. + */ + recoveryAzureVMName?: string; + /** + * Target Azure VM size. + */ + recoveryAzureVMSize?: string; + /** + * Target Azure Network Id. + */ + selectedRecoveryAzureNetworkId?: string; + /** + * The Azure Network Id for test failover. + */ + selectedTfoAzureNetworkId?: string; + /** + * The selected source nic Id which will be used as the primary nic during failover. + */ + selectedSourceNicId?: string; + /** + * The selected option to enable RDP\SSH on target vm after failover. String value of + * SrsDataContract.EnableRDPOnTargetOption enum. + */ + enableRdpOnTargetOption?: string; + /** + * The list of VM nic details. + */ + vmNics?: VMNicInputDetails[]; + /** + * License type. Possible values include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' + */ + licenseType?: LicenseType; + /** + * The target availability set Id. + */ + recoveryAvailabilitySetId?: string; + /** + * The provider specific input to update replication protected item. + */ + providerSpecificDetails?: UpdateReplicationProtectedItemProviderInputUnion; +} + +/** + * Update replication protected item input. + */ +export interface UpdateReplicationProtectedItemInput { + /** + * Update replication protected item properties. + */ + properties?: UpdateReplicationProtectedItemInputProperties; +} + +/** + * The properties of an update vCenter request. + */ +export interface UpdateVCenterRequestProperties { + /** + * The friendly name of the vCenter. + */ + friendlyName?: string; + /** + * The IP address of the vCenter to be discovered. + */ + ipAddress?: string; + /** + * The process server Id from where the update can be orchestrated. + */ + processServerId?: string; + /** + * The port number for discovery. + */ + port?: string; + /** + * The CS account Id which has privileges to update the vCenter. + */ + runAsAccountId?: string; +} + +/** + * Input required to update vCenter. + */ +export interface UpdateVCenterRequest { + /** + * The update VCenter Request Properties. + */ + properties?: UpdateVCenterRequestProperties; +} + +/** + * class to define the health summary of the Vault. + */ +export interface VaultHealthProperties { + /** + * The list of errors on the vault. + */ + vaultErrors?: HealthError[]; + /** + * The list of the health detail of the protected items in the vault. + */ + protectedItemsHealth?: ResourceHealthSummary; + /** + * The list of the health detail of the fabrics in the vault. + */ + fabricsHealth?: ResourceHealthSummary; + /** + * The list of the health detail of the containers in the vault. + */ + containersHealth?: ResourceHealthSummary; +} + +/** + * Vault health details definition. + */ +export interface VaultHealthDetails extends Resource { + /** + * The vault health related data. + */ + properties?: VaultHealthProperties; +} + +/** + * Vault setting properties. + */ +export interface VaultSettingProperties { + /** + * The migration solution ARM Id. + */ + migrationSolutionId?: string; + /** + * VMware to Azure provider type. + */ + vmwareToAzureProviderType?: string; +} + +/** + * Vault setting. + */ +export interface VaultSetting extends Resource { + /** + * The vault setting properties. + */ + properties?: VaultSettingProperties; +} + +/** + * Input to create vault setting. + */ +export interface VaultSettingCreationInputProperties { + /** + * The migration solution Id. + */ + migrationSolutionId?: string; + /** + * VMware to Azure provider type. + */ + vmwareToAzureProviderType?: string; +} + +/** + * Input to create vault setting. + */ +export interface VaultSettingCreationInput { + /** + * Vault setting creation input properties. + */ + properties: VaultSettingCreationInputProperties; +} + +/** + * vCenter properties. + */ +export interface VCenterProperties { + /** + * Friendly name of the vCenter. + */ + friendlyName?: string; + /** + * VCenter internal ID. + */ + internalId?: string; + /** + * The time when the last heartbeat was received by vCenter. + */ + lastHeartbeat?: Date; + /** + * The VCenter discovery status. + */ + discoveryStatus?: string; + /** + * The process server Id. + */ + processServerId?: string; + /** + * The IP address of the vCenter. + */ + ipAddress?: string; + /** + * The infrastructure Id of vCenter. + */ + infrastructureId?: string; + /** + * The port number for discovery. + */ + port?: string; + /** + * The account Id which has privileges to discover the vCenter. + */ + runAsAccountId?: string; + /** + * The ARM resource name of the fabric containing this VCenter. + */ + fabricArmResourceName?: string; + /** + * The health errors for this VCenter. + */ + healthErrors?: HealthError[]; +} + +/** + * vCenter definition. + */ +export interface VCenter extends Resource { + /** + * VCenter related data. + */ + properties?: VCenterProperties; +} + +/** + * This class represents the virtual machine task details. + */ +export interface VirtualMachineTaskDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VirtualMachineTaskDetails"; + /** + * The job entity. + */ + jobTask?: JobEntity; + /** + * The skipped reason. + */ + skippedReason?: string; + /** + * The skipped reason string. + */ + skippedReasonString?: string; +} + +/** + * VMM fabric specific details. + */ +export interface VmmDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VMM"; +} + +/** + * Create network mappings input properties/behavior specific to Vmm to Azure Network mapping. + */ +export interface VmmToAzureCreateNetworkMappingInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VmmToAzure"; +} + +/** + * E2A Network Mapping fabric specific settings. + */ +export interface VmmToAzureNetworkMappingSettings { + /** + * Polymorphic Discriminator + */ + instanceType: "VmmToAzure"; +} + +/** + * Update network mappings input properties/behavior specific to vmm to azure. + */ +export interface VmmToAzureUpdateNetworkMappingInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VmmToAzure"; +} + +/** + * Create network mappings input properties/behavior specific to vmm to vmm Network mapping. + */ +export interface VmmToVmmCreateNetworkMappingInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VmmToVmm"; +} + +/** + * E2E Network Mapping fabric specific settings. + */ +export interface VmmToVmmNetworkMappingSettings { + /** + * Polymorphic Discriminator + */ + instanceType: "VmmToVmm"; +} + +/** + * Update network mappings input properties/behavior specific to vmm to vmm. + */ +export interface VmmToVmmUpdateNetworkMappingInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VmmToVmm"; +} + +/** + * VMM fabric provider specific VM settings. + */ +export interface VmmVirtualMachineDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VmmVirtualMachine"; + /** + * The source id of the object. + */ + sourceItemId?: string; + /** + * The id of the object in fabric. + */ + generation?: string; + /** + * The Last replication time. + */ + osDetails?: OSDetails; + /** + * The Last successful failover time. + */ + diskDetails?: DiskDetails[]; + /** + * A value indicating whether the VM has a physical disk attached. String value of + * SrsDataContract.PresenceStatus enum. Possible values include: 'Unknown', 'Present', + * 'NotPresent' + */ + hasPhysicalDisk?: PresenceStatus; + /** + * A value indicating whether the VM has a fibre channel adapter attached. String value of + * SrsDataContract.PresenceStatus enum. Possible values include: 'Unknown', 'Present', + * 'NotPresent' + */ + hasFibreChannelAdapter?: PresenceStatus; + /** + * A value indicating whether the VM has a shared VHD attached. String value of + * SrsDataContract.PresenceStatus enum. Possible values include: 'Unknown', 'Present', + * 'NotPresent' + */ + hasSharedVhd?: PresenceStatus; +} + +/** + * This class represents the vm NicUpdates task details. + */ +export interface VmNicUpdatesTaskDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VmNicUpdatesTaskDetails"; + /** + * Virtual machine Id. + */ + vmId?: string; + /** + * Nic Id. + */ + nicId?: string; + /** + * Name of the Nic. + */ + name?: string; +} + +/** + * VMwareCbt container creation input. + */ +export interface VMwareCbtContainerCreationInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; +} + +/** + * VMwareCbt container mapping input. + */ +export interface VMwareCbtContainerMappingInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * The target key vault ARM Id. + */ + keyVaultId: string; + /** + * The target key vault URL. + */ + keyVaultUri: string; + /** + * The storage account ARM Id. + */ + storageAccountId: string; + /** + * The secret name of the storage account. + */ + storageAccountSasSecretName: string; + /** + * The secret name of the service bus connection string. + */ + serviceBusConnectionStringSecretName: string; + /** + * The target location. + */ + targetLocation: string; +} + +/** + * VMwareCbt disk input. + */ +export interface VMwareCbtDiskInput { + /** + * The disk Id. + */ + diskId: string; + /** + * The disk type. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + */ + diskType?: DiskAccountType; + /** + * A value indicating whether the disk is the OS disk. + */ + isOSDisk: string; + /** + * The log storage account ARM Id. + */ + logStorageAccountId: string; + /** + * The key vault secret name of the log storage account. + */ + logStorageAccountSasSecretName: string; + /** + * The DiskEncryptionSet ARM Id. + */ + diskEncryptionSetId?: string; +} + +/** + * VMwareCbt specific enable migration input. + */ +export interface VMwareCbtEnableMigrationInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * The ARM Id of the VM discovered in VMware. + */ + vmwareMachineId: string; + /** + * The disks to include list. + */ + disksToInclude: VMwareCbtDiskInput[]; + /** + * License type. Possible values include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' + */ + licenseType?: LicenseType; + /** + * The SQL Server license type. Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + * 'AHUB' + */ + sqlServerLicenseType?: SqlServerLicenseType; + /** + * The data mover run as account Id. + */ + dataMoverRunAsAccountId: string; + /** + * The snapshot run as account Id. + */ + snapshotRunAsAccountId: string; + /** + * The target VM name. + */ + targetVmName?: string; + /** + * The target VM size. + */ + targetVmSize?: string; + /** + * The target resource group ARM Id. + */ + targetResourceGroupId: string; + /** + * The target network ARM Id. + */ + targetNetworkId: string; + /** + * The target subnet name. + */ + targetSubnetName?: string; + /** + * The target availability set ARM Id. + */ + targetAvailabilitySetId?: string; + /** + * The target availability zone. + */ + targetAvailabilityZone?: string; + /** + * The target proximity placement group ARM Id. + */ + targetProximityPlacementGroupId?: string; + /** + * The target boot diagnostics storage account ARM Id. + */ + targetBootDiagnosticsStorageAccountId?: string; + /** + * A value indicating whether auto resync is to be done. + */ + performAutoResync?: string; + /** + * The target VM tags. + */ + targetVmTags?: { [propertyName: string]: string }; + /** + * The tags for the seed disks. + */ + seedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target disks. + */ + targetDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target NICs. + */ + targetNicTags?: { [propertyName: string]: string }; +} + +/** + * Event details for VMwareCbt provider. + */ +export interface VMwareCbtEventDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * The migration item name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly migrationItemName?: string; +} + +/** + * VMwareCbt specific migrate input. + */ +export interface VMwareCbtMigrateInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * A value indicating whether VM is to be shutdown. + */ + performShutdown: string; +} + +/** + * VMwareCbt protected disk details. + */ +export interface VMwareCbtProtectedDiskDetails { + /** + * The disk id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly diskId?: string; + /** + * The disk name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly diskName?: string; + /** + * The disk type. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + */ + diskType?: DiskAccountType; + /** + * The disk path. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly diskPath?: string; + /** + * A value indicating whether the disk is the OS disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isOSDisk?: string; + /** + * The disk capacity in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly capacityInBytes?: number; + /** + * The log storage account ARM Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly logStorageAccountId?: string; + /** + * The key vault secret name of the log storage account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly logStorageAccountSasSecretName?: string; + /** + * The DiskEncryptionSet ARM Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly diskEncryptionSetId?: string; + /** + * The ARM Id of the seed managed disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly seedManagedDiskId?: string; + /** + * The ARM Id of the target managed disk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly targetManagedDiskId?: string; + /** + * The name for the target managed disk. + */ + targetDiskName?: string; +} + +/** + * VMwareCbt NIC details. + */ +export interface VMwareCbtNicDetails { + /** + * The NIC Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nicId?: string; + /** + * A value indicating whether this is the primary NIC. + */ + isPrimaryNic?: string; + /** + * The source IP address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourceIPAddress?: string; + /** + * The source IP address type. Possible values include: 'Dynamic', 'Static' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourceIPAddressType?: EthernetAddressType; + /** + * Source network Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourceNetworkId?: string; + /** + * The target IP address. + */ + targetIPAddress?: string; + /** + * The target IP address type. Possible values include: 'Dynamic', 'Static' + */ + targetIPAddressType?: EthernetAddressType; + /** + * Target subnet name. + */ + targetSubnetName?: string; + /** + * Target NIC name. + */ + targetNicName?: string; + /** + * A value indicating whether this NIC is selected for migration. + */ + isSelectedForMigration?: string; +} + +/** + * VMwareCbt provider specific settings. + */ +export interface VMwareCbtMigrationDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * The ARM Id of the VM discovered in VMware. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vmwareMachineId?: string; + /** + * The type of the OS on the VM. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly osType?: string; + /** + * The firmware type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly firmwareType?: string; + /** + * The target generation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly targetGeneration?: string; + /** + * License Type of the VM to be used. + */ + licenseType?: string; + /** + * The SQL Server license type. + */ + sqlServerLicenseType?: string; + /** + * The data mover run as account Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataMoverRunAsAccountId?: string; + /** + * The snapshot run as account Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly snapshotRunAsAccountId?: string; + /** + * Target VM name. + */ + targetVmName?: string; + /** + * The target VM size. + */ + targetVmSize?: string; + /** + * The target location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly targetLocation?: string; + /** + * The target resource group Id. + */ + targetResourceGroupId?: string; + /** + * The target availability set Id. + */ + targetAvailabilitySetId?: string; + /** + * The target availability zone. + */ + targetAvailabilityZone?: string; + /** + * The target proximity placement group Id. + */ + targetProximityPlacementGroupId?: string; + /** + * The target boot diagnostics storage account ARM Id. + */ + targetBootDiagnosticsStorageAccountId?: string; + /** + * The target VM tags. + */ + targetVmTags?: { [propertyName: string]: string }; + /** + * The list of protected disks. + */ + protectedDisks?: VMwareCbtProtectedDiskDetails[]; + /** + * The target network Id. + */ + targetNetworkId?: string; + /** + * The network details. + */ + vmNics?: VMwareCbtNicDetails[]; + /** + * The tags for the target NICs. + */ + targetNicTags?: { [propertyName: string]: string }; + /** + * The recovery point Id to which the VM was migrated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly migrationRecoveryPointId?: string; + /** + * The last recovery point received time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastRecoveryPointReceived?: Date; + /** + * The last recovery point Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastRecoveryPointId?: string; + /** + * The initial seeding progress percentage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly initialSeedingProgressPercentage?: number; + /** + * The migration progress percentage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly migrationProgressPercentage?: number; + /** + * The resync progress percentage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resyncProgressPercentage?: number; + /** + * The initial seeding retry count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly initialSeedingRetryCount?: number; + /** + * The resync retry count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resyncRetryCount?: number; + /** + * A value indicating whether resync is required. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resyncRequired?: string; + /** + * The resync state. Possible values include: 'None', 'PreparedForResynchronization', + * 'StartedResynchronization' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resyncState?: ResyncState; + /** + * A value indicating whether auto resync is to be done. + */ + performAutoResync?: string; + /** + * The tags for the seed disks. + */ + seedDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target disks. + */ + targetDiskTags?: { [propertyName: string]: string }; +} + +/** + * VMwareCbt NIC input. + */ +export interface VMwareCbtNicInput { + /** + * The NIC Id. + */ + nicId: string; + /** + * A value indicating whether this is the primary NIC. + */ + isPrimaryNic: string; + /** + * Target subnet name. + */ + targetSubnetName?: string; + /** + * The static IP address. + */ + targetStaticIPAddress?: string; + /** + * A value indicating whether this NIC is selected for migration. + */ + isSelectedForMigration?: string; + /** + * Target NIC name. + */ + targetNicName?: string; +} + +/** + * VMware Cbt policy creation input. + */ +export interface VMwareCbtPolicyCreationInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * The duration in minutes until which the recovery points need to be stored. + */ + recoveryPointHistoryInMinutes?: number; + /** + * The crash consistent snapshot frequency (in minutes). + */ + crashConsistentFrequencyInMinutes?: number; + /** + * The app consistent snapshot frequency (in minutes). + */ + appConsistentFrequencyInMinutes?: number; +} + +/** + * VMware Cbt specific policy details. + */ +export interface VmwareCbtPolicyDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * The duration in minutes until which the recovery points need to be stored. + */ + recoveryPointHistoryInMinutes?: number; + /** + * The app consistent snapshot frequency in minutes. + */ + appConsistentFrequencyInMinutes?: number; + /** + * The crash consistent snapshot frequency in minutes. + */ + crashConsistentFrequencyInMinutes?: number; +} + +/** + * VMwareCbt provider specific container mapping details. + */ +export interface VMwareCbtProtectionContainerMappingDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * The target key vault ARM Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly keyVaultId?: string; + /** + * The target key vault URI. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly keyVaultUri?: string; + /** + * The storage account ARM Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly storageAccountId?: string; + /** + * The secret name of the storage account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly storageAccountSasSecretName?: string; + /** + * The secret name of the service bus connection string. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceBusConnectionStringSecretName?: string; + /** + * The target location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly targetLocation?: string; +} + +/** + * VMwareCbt specific resync input. + */ +export interface VMwareCbtResyncInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * A value indicating whether CBT is to be reset. + */ + skipCbtReset: string; +} + +/** + * VMwareCbt specific test migrate input. + */ +export interface VMwareCbtTestMigrateInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * The recovery point Id. + */ + recoveryPointId: string; + /** + * The test network Id. + */ + networkId: string; +} + +/** + * VMwareCbt disk input for update. + */ +export interface VMwareCbtUpdateDiskInput { + /** + * The disk Id. + */ + diskId: string; + /** + * The target disk name. + */ + targetDiskName?: string; +} + +/** + * VMwareCbt specific update migration item input. + */ +export interface VMwareCbtUpdateMigrationItemInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareCbt"; + /** + * The target VM name. + */ + targetVmName?: string; + /** + * The target VM size. + */ + targetVmSize?: string; + /** + * The target resource group ARM Id. + */ + targetResourceGroupId?: string; + /** + * The target availability set ARM Id. + */ + targetAvailabilitySetId?: string; + /** + * The target availability zone. + */ + targetAvailabilityZone?: string; + /** + * The target proximity placement group ARM Id. + */ + targetProximityPlacementGroupId?: string; + /** + * The target boot diagnostics storage account ARM Id. + */ + targetBootDiagnosticsStorageAccountId?: string; + /** + * The target network ARM Id. + */ + targetNetworkId?: string; + /** + * The list of NIC details. + */ + vmNics?: VMwareCbtNicInput[]; + /** + * The list of disk update properties. + */ + vmDisks?: VMwareCbtUpdateDiskInput[]; + /** + * The license type. Possible values include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' + */ + licenseType?: LicenseType; + /** + * The SQL Server license type. Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', + * 'AHUB' + */ + sqlServerLicenseType?: SqlServerLicenseType; + /** + * A value indicating whether auto resync is to be done. + */ + performAutoResync?: string; + /** + * The target VM tags. + */ + targetVmTags?: { [propertyName: string]: string }; + /** + * The tags for the target disks. + */ + targetDiskTags?: { [propertyName: string]: string }; + /** + * The tags for the target NICs. + */ + targetNicTags?: { [propertyName: string]: string }; +} + +/** + * Store the fabric details specific to the VMware fabric. + */ +export interface VMwareDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VMware"; + /** + * The list of Process Servers associated with the fabric. + */ + processServers?: ProcessServer[]; + /** + * The list of Master Target servers associated with the fabric. + */ + masterTargetServers?: MasterTargetServer[]; + /** + * The list of run as accounts created on the server. + */ + runAsAccounts?: RunAsAccount[]; + /** + * The number of replication pairs configured in this CS. + */ + replicationPairCount?: string; + /** + * The number of process servers. + */ + processServerCount?: string; + /** + * The number of source and target servers configured to talk to this CS. + */ + agentCount?: string; + /** + * The number of protected servers. + */ + protectedServers?: string; + /** + * The percentage of the system load. + */ + systemLoad?: string; + /** + * The system load status. + */ + systemLoadStatus?: string; + /** + * The percentage of the CPU load. + */ + cpuLoad?: string; + /** + * The CPU load status. + */ + cpuLoadStatus?: string; + /** + * The total memory. + */ + totalMemoryInBytes?: number; + /** + * The available memory. + */ + availableMemoryInBytes?: number; + /** + * The memory usage status. + */ + memoryUsageStatus?: string; + /** + * The total space. + */ + totalSpaceInBytes?: number; + /** + * The available space. + */ + availableSpaceInBytes?: number; + /** + * The space usage status. + */ + spaceUsageStatus?: string; + /** + * The web load. + */ + webLoad?: string; + /** + * The web load status. + */ + webLoadStatus?: string; + /** + * The database server load. + */ + databaseServerLoad?: string; + /** + * The database server load status. + */ + databaseServerLoadStatus?: string; + /** + * The CS service status. + */ + csServiceStatus?: string; + /** + * The IP address. + */ + ipAddress?: string; + /** + * The agent Version. + */ + agentVersion?: string; + /** + * The host name. + */ + hostName?: string; + /** + * The last heartbeat received from CS server. + */ + lastHeartbeat?: Date; + /** + * Version status. + */ + versionStatus?: string; + /** + * CS SSL cert expiry date. + */ + sslCertExpiryDate?: Date; + /** + * CS SSL cert expiry date. + */ + sslCertExpiryRemainingDays?: number; + /** + * PS template version. + */ + psTemplateVersion?: string; + /** + * Agent expiry date. + */ + agentExpiryDate?: Date; + /** + * The agent version details. + */ + agentVersionDetails?: VersionDetails; +} + +/** + * VMwareV2 fabric provider specific settings. + */ +export interface VMwareV2FabricCreationInput { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareV2"; + /** + * The ARM Id of the VMware site. + */ + vmwareSiteId?: string; + /** + * The ARM Id of the physical site. + */ + physicalSiteId?: string; + /** + * The ARM Id of the migration solution. + */ + migrationSolutionId: string; +} + +/** + * VMwareV2 fabric specific details. + */ +export interface VMwareV2FabricSpecificDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareV2"; + /** + * The ARM Id of the VMware site. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vmwareSiteId?: string; + /** + * The ARM Id of the physical site. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly physicalSiteId?: string; + /** + * The Migration solution ARM Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly migrationSolutionId?: string; + /** + * The service endpoint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceEndpoint?: string; + /** + * The service resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceResourceId?: string; + /** + * The service container Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceContainerId?: string; + /** + * The list of process servers. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly processServers?: ProcessServerDetails[]; +} + +/** + * VMware provider specific settings. + */ +export interface VMwareVirtualMachineDetails { + /** + * Polymorphic Discriminator + */ + instanceType: "VMwareVirtualMachine"; + /** + * The ID generated by the InMage agent after it gets installed on guest. This is the ID to be + * used during InMage CreateProtection. + */ + agentGeneratedId?: string; + /** + * The value indicating if InMage scout agent is installed on guest. + */ + agentInstalled?: string; + /** + * The OsType installed on VM. + */ + osType?: string; + /** + * The agent version. + */ + agentVersion?: string; + /** + * The IP address. + */ + ipAddress?: string; + /** + * The value indicating whether VM is powered on. + */ + poweredOn?: string; + /** + * The VCenter infrastructure Id. + */ + vCenterInfrastructureId?: string; + /** + * A value indicating the discovery type of the machine. Value can be vCenter or physical. + */ + discoveryType?: string; + /** + * The disk details. + */ + diskDetails?: InMageDiskDetails[]; + /** + * The validation errors. + */ + validationErrors?: HealthError[]; +} + +/** + * Optional Parameters. + */ +export interface ReplicationEventsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationEventsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationFabricsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams extends msRest.RequestOptionsBase { + /** + * The pagination token. + */ + skipToken?: string; + /** + * The page size. + */ + takeToken?: string; + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationMigrationItemsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * The delete option. + */ + deleteOption?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationMigrationItemsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The pagination token. + */ + skipToken?: string; + /** + * The page size. + */ + takeToken?: string; + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationMigrationItemsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * The delete option. + */ + deleteOption?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationMigrationItemsListByReplicationProtectionContainersNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The pagination token. + */ + skipToken?: string; + /** + * The page size. + */ + takeToken?: string; + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationMigrationItemsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The pagination token. + */ + skipToken?: string; + /** + * The page size. + */ + takeToken?: string; + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * take OData query parameter. + */ + take?: string; + /** + * skipToken OData query parameter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationProtectableItemsListByReplicationProtectionContainersNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * take OData query parameter. + */ + take?: string; + /** + * skipToken OData query parameter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationProtectedItemsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. + */ + skipToken?: string; + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationProtectedItemsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. + */ + skipToken?: string; + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationJobsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationJobsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationProtectionIntentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The pagination token. + */ + skipToken?: string; + /** + * The page size. + */ + takeToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ReplicationProtectionIntentsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The pagination token. + */ + skipToken?: string; + /** + * The page size. + */ + takeToken?: string; +} + +/** + * Optional Parameters. + */ +export interface SupportedOperatingSystemsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The instance type. + */ + instanceType?: string; +} + +/** + * An interface representing SiteRecoveryManagementClientOptions. + */ +export interface SiteRecoveryManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Collection of ClientDiscovery details. + * @extends Array + */ +export interface OperationsDiscoveryCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Collection of alerts. + * @extends Array + */ +export interface AlertCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Collection of fabric details. + * @extends Array + */ +export interface EventCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Collection of fabric details. + * @extends Array + */ +export interface FabricCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * List of logical networks. + * @extends Array + */ +export interface LogicalNetworkCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * List of networks. + * @extends Array + */ +export interface NetworkCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * List of network mappings. As with NetworkMapping, it should be possible to reuse a prev version + * of this class. It doesn't seem likely this class could be anything more than a slightly bespoke + * collection of NetworkMapping. Hence it makes sense to override Load with Base.NetworkMapping + * instead of existing CurrentVersion.NetworkMapping. + * @extends Array + */ +export interface NetworkMappingCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Protection Container collection. + * @extends Array + */ +export interface ProtectionContainerCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Migration item collection. + * @extends Array + */ +export interface MigrationItemCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Collection of migration recovery points. + * @extends Array + */ +export interface MigrationRecoveryPointCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Protectable item collection. + * @extends Array + */ +export interface ProtectableItemCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Replication protected item collection. + * @extends Array + */ +export interface ReplicationProtectedItemCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Collection of recovery point details. + * @extends Array + */ +export interface RecoveryPointCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Target compute size collection. + * @extends Array + */ +export interface TargetComputeSizeCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Protection container mapping collection class. + * @extends Array + */ +export interface ProtectionContainerMappingCollection extends Array { + /** + * Link to fetch rest of the data. + */ + nextLink?: string; +} + +/** + * @interface + * Collection of providers. + * @extends Array + */ +export interface RecoveryServicesProviderCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Collection of storage details. + * @extends Array + */ +export interface StorageClassificationCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Collection of storage mapping details. + * @extends Array + */ +export interface StorageClassificationMappingCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Collection of vCenter details. + * @extends Array + */ +export interface VCenterCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Collection of jobs. + * @extends Array + */ +export interface JobCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Protection Profile Collection details. + * @extends Array + */ +export interface PolicyCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Replication protection intent objects collection. + * @extends Array + */ +export interface ReplicationProtectionIntentCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Recovery plan collection details. + * @extends Array + */ +export interface RecoveryPlanCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * @interface + * Vault setting collection. + * @extends Array + */ +export interface VaultSettingCollection extends Array { + /** + * The value of next link. + */ + nextLink?: string; +} + +/** + * Defines values for AgentAutoUpdateStatus. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type AgentAutoUpdateStatus = 'Disabled' | 'Enabled'; + +/** + * Defines values for A2ARecoveryAvailabilityType. + * Possible values include: 'Single', 'AvailabilitySet', 'AvailabilityZone' + * @readonly + * @enum {string} + */ +export type A2ARecoveryAvailabilityType = 'Single' | 'AvailabilitySet' | 'AvailabilityZone'; + +/** + * Defines values for AutoProtectionOfDataDisk. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type AutoProtectionOfDataDisk = 'Disabled' | 'Enabled'; + +/** + * Defines values for SetMultiVmSyncStatus. + * Possible values include: 'Enable', 'Disable' + * @readonly + * @enum {string} + */ +export type SetMultiVmSyncStatus = 'Enable' | 'Disable'; + +/** + * Defines values for RecoveryPointSyncType. + * Possible values include: 'MultiVmSyncRecoveryPoint', 'PerVmRecoveryPoint' + * @readonly + * @enum {string} + */ +export type RecoveryPointSyncType = 'MultiVmSyncRecoveryPoint' | 'PerVmRecoveryPoint'; + +/** + * Defines values for MultiVmGroupCreateOption. + * Possible values include: 'AutoCreated', 'UserSpecified' + * @readonly + * @enum {string} + */ +export type MultiVmGroupCreateOption = 'AutoCreated' | 'UserSpecified'; + +/** + * Defines values for VmEncryptionType. + * Possible values include: 'NotEncrypted', 'OnePassEncrypted', 'TwoPassEncrypted' + * @readonly + * @enum {string} + */ +export type VmEncryptionType = 'NotEncrypted' | 'OnePassEncrypted' | 'TwoPassEncrypted'; + +/** + * Defines values for FailoverDeploymentModel. + * Possible values include: 'NotApplicable', 'Classic', 'ResourceManager' + * @readonly + * @enum {string} + */ +export type FailoverDeploymentModel = 'NotApplicable' | 'Classic' | 'ResourceManager'; + +/** + * Defines values for RecoveryPlanGroupType. + * Possible values include: 'Shutdown', 'Boot', 'Failover' + * @readonly + * @enum {string} + */ +export type RecoveryPlanGroupType = 'Shutdown' | 'Boot' | 'Failover'; + +/** + * Defines values for ReplicationProtectedItemOperation. + * Possible values include: 'ReverseReplicate', 'Commit', 'PlannedFailover', 'UnplannedFailover', + * 'DisableProtection', 'TestFailover', 'TestFailoverCleanup', 'Failback', 'FinalizeFailback', + * 'CancelFailover', 'ChangePit', 'RepairReplication', 'SwitchProtection', 'CompleteMigration' + * @readonly + * @enum {string} + */ +export type ReplicationProtectedItemOperation = 'ReverseReplicate' | 'Commit' | 'PlannedFailover' | 'UnplannedFailover' | 'DisableProtection' | 'TestFailover' | 'TestFailoverCleanup' | 'Failback' | 'FinalizeFailback' | 'CancelFailover' | 'ChangePit' | 'RepairReplication' | 'SwitchProtection' | 'CompleteMigration'; + +/** + * Defines values for PossibleOperationsDirections. + * Possible values include: 'PrimaryToRecovery', 'RecoveryToPrimary' + * @readonly + * @enum {string} + */ +export type PossibleOperationsDirections = 'PrimaryToRecovery' | 'RecoveryToPrimary'; + +/** + * Defines values for DisableProtectionReason. + * Possible values include: 'NotSpecified', 'MigrationComplete' + * @readonly + * @enum {string} + */ +export type DisableProtectionReason = 'NotSpecified' | 'MigrationComplete'; + +/** + * Defines values for ProtectionHealth. + * Possible values include: 'None', 'Normal', 'Warning', 'Critical' + * @readonly + * @enum {string} + */ +export type ProtectionHealth = 'None' | 'Normal' | 'Warning' | 'Critical'; + +/** + * Defines values for HealthErrorCustomerResolvability. + * Possible values include: 'Allowed', 'NotAllowed' + * @readonly + * @enum {string} + */ +export type HealthErrorCustomerResolvability = 'Allowed' | 'NotAllowed'; + +/** + * Defines values for HealthErrorCategory. + * Possible values include: 'None', 'Replication', 'TestFailover', 'Configuration', + * 'FabricInfrastructure', 'VersionExpiry', 'AgentAutoUpdateInfra', + * 'AgentAutoUpdateArtifactDeleted', 'AgentAutoUpdateRunAsAccount', + * 'AgentAutoUpdateRunAsAccountExpiry', 'AgentAutoUpdateRunAsAccountExpired' + * @readonly + * @enum {string} + */ +export type HealthErrorCategory = 'None' | 'Replication' | 'TestFailover' | 'Configuration' | 'FabricInfrastructure' | 'VersionExpiry' | 'AgentAutoUpdateInfra' | 'AgentAutoUpdateArtifactDeleted' | 'AgentAutoUpdateRunAsAccount' | 'AgentAutoUpdateRunAsAccountExpiry' | 'AgentAutoUpdateRunAsAccountExpired'; + +/** + * Defines values for Severity. + * Possible values include: 'NONE', 'Warning', 'Error', 'Info' + * @readonly + * @enum {string} + */ +export type Severity = 'NONE' | 'Warning' | 'Error' | 'Info'; + +/** + * Defines values for DiskAccountType. + * Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS' + * @readonly + * @enum {string} + */ +export type DiskAccountType = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS'; + +/** + * Defines values for LicenseType. + * Possible values include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' + * @readonly + * @enum {string} + */ +export type LicenseType = 'NotSpecified' | 'NoLicenseType' | 'WindowsServer'; + +/** + * Defines values for SqlServerLicenseType. + * Possible values include: 'NotSpecified', 'NoLicenseType', 'PAYG', 'AHUB' + * @readonly + * @enum {string} + */ +export type SqlServerLicenseType = 'NotSpecified' | 'NoLicenseType' | 'PAYG' | 'AHUB'; + +/** + * Defines values for PresenceStatus. + * Possible values include: 'Unknown', 'Present', 'NotPresent' + * @readonly + * @enum {string} + */ +export type PresenceStatus = 'Unknown' | 'Present' | 'NotPresent'; + +/** + * Defines values for RcmComponentStatus. + * Possible values include: 'Healthy', 'Warning', 'Critical', 'Unknown' + * @readonly + * @enum {string} + */ +export type RcmComponentStatus = 'Healthy' | 'Warning' | 'Critical' | 'Unknown'; + +/** + * Defines values for AgentUpgradeBlockedReason. + * Possible values include: 'AlreadyOnLatestVersion', 'RebootRequired', 'AgentNoHeartbeat', + * 'RcmProxyNoHeartbeat', 'ProcessServerNoHeartbeat', 'IncompatibleApplianceVersion', + * 'NotProtected', 'UnsupportedProtectionScenario', 'DistroIsNotReported', + * 'DistroNotSupportedForUpgrade', 'MissingUpgradePath', 'InvalidAgentVersion', + * 'InvalidDriverVersion', 'Unknown' + * @readonly + * @enum {string} + */ +export type AgentUpgradeBlockedReason = 'AlreadyOnLatestVersion' | 'RebootRequired' | 'AgentNoHeartbeat' | 'RcmProxyNoHeartbeat' | 'ProcessServerNoHeartbeat' | 'IncompatibleApplianceVersion' | 'NotProtected' | 'UnsupportedProtectionScenario' | 'DistroIsNotReported' | 'DistroNotSupportedForUpgrade' | 'MissingUpgradePath' | 'InvalidAgentVersion' | 'InvalidDriverVersion' | 'Unknown'; + +/** + * Defines values for InMageRcmFailbackRecoveryPointType. + * Possible values include: 'ApplicationConsistent', 'CrashConsistent' + * @readonly + * @enum {string} + */ +export type InMageRcmFailbackRecoveryPointType = 'ApplicationConsistent' | 'CrashConsistent'; + +/** + * Defines values for DiskReplicationProgressHealth. + * Possible values include: 'None', 'InProgress', 'SlowProgress', 'NoProgress', 'Queued' + * @readonly + * @enum {string} + */ +export type DiskReplicationProgressHealth = 'None' | 'InProgress' | 'SlowProgress' | 'NoProgress' | 'Queued'; + +/** + * Defines values for VmReplicationProgressHealth. + * Possible values include: 'None', 'InProgress', 'SlowProgress', 'NoProgress' + * @readonly + * @enum {string} + */ +export type VmReplicationProgressHealth = 'None' | 'InProgress' | 'SlowProgress' | 'NoProgress'; + +/** + * Defines values for ResyncState. + * Possible values include: 'None', 'PreparedForResynchronization', 'StartedResynchronization' + * @readonly + * @enum {string} + */ +export type ResyncState = 'None' | 'PreparedForResynchronization' | 'StartedResynchronization'; + +/** + * Defines values for PlannedFailoverStatus. + * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Unknown' + * @readonly + * @enum {string} + */ +export type PlannedFailoverStatus = 'Succeeded' | 'Failed' | 'Cancelled' | 'Unknown'; + +/** + * Defines values for EthernetAddressType. + * Possible values include: 'Dynamic', 'Static' + * @readonly + * @enum {string} + */ +export type EthernetAddressType = 'Dynamic' | 'Static'; + +/** + * Defines values for MobilityAgentUpgradeState. + * Possible values include: 'None', 'Started', 'Completed', 'Commit' + * @readonly + * @enum {string} + */ +export type MobilityAgentUpgradeState = 'None' | 'Started' | 'Completed' | 'Commit'; + +/** + * Defines values for RecoveryPointType. + * Possible values include: 'LatestTime', 'LatestTag', 'Custom' + * @readonly + * @enum {string} + */ +export type RecoveryPointType = 'LatestTime' | 'LatestTag' | 'Custom'; + +/** + * Defines values for ExportJobOutputSerializationType. + * Possible values include: 'Json', 'Xml', 'Excel' + * @readonly + * @enum {string} + */ +export type ExportJobOutputSerializationType = 'Json' | 'Xml' | 'Excel'; + +/** + * Defines values for AgentVersionStatus. + * Possible values include: 'Supported', 'NotSupported', 'Deprecated', 'UpdateRequired', + * 'SecurityUpdateRequired' + * @readonly + * @enum {string} + */ +export type AgentVersionStatus = 'Supported' | 'NotSupported' | 'Deprecated' | 'UpdateRequired' | 'SecurityUpdateRequired'; + +/** + * Defines values for MigrationState. + * Possible values include: 'None', 'EnableMigrationInProgress', 'EnableMigrationFailed', + * 'DisableMigrationInProgress', 'DisableMigrationFailed', 'InitialSeedingInProgress', + * 'InitialSeedingFailed', 'Replicating', 'MigrationInProgress', 'MigrationSucceeded', + * 'MigrationFailed' + * @readonly + * @enum {string} + */ +export type MigrationState = 'None' | 'EnableMigrationInProgress' | 'EnableMigrationFailed' | 'DisableMigrationInProgress' | 'DisableMigrationFailed' | 'InitialSeedingInProgress' | 'InitialSeedingFailed' | 'Replicating' | 'MigrationInProgress' | 'MigrationSucceeded' | 'MigrationFailed'; + +/** + * Defines values for TestMigrationState. + * Possible values include: 'None', 'TestMigrationInProgress', 'TestMigrationSucceeded', + * 'TestMigrationFailed', 'TestMigrationCleanupInProgress' + * @readonly + * @enum {string} + */ +export type TestMigrationState = 'None' | 'TestMigrationInProgress' | 'TestMigrationSucceeded' | 'TestMigrationFailed' | 'TestMigrationCleanupInProgress'; + +/** + * Defines values for MigrationItemOperation. + * Possible values include: 'DisableMigration', 'TestMigrate', 'TestMigrateCleanup', 'Migrate', + * 'StartResync' + * @readonly + * @enum {string} + */ +export type MigrationItemOperation = 'DisableMigration' | 'TestMigrate' | 'TestMigrateCleanup' | 'Migrate' | 'StartResync'; + +/** + * Defines values for MigrationRecoveryPointType. + * Possible values include: 'NotSpecified', 'ApplicationConsistent', 'CrashConsistent' + * @readonly + * @enum {string} + */ +export type MigrationRecoveryPointType = 'NotSpecified' | 'ApplicationConsistent' | 'CrashConsistent'; + +/** + * Defines values for A2ARpRecoveryPointType. + * Possible values include: 'Latest', 'LatestApplicationConsistent', 'LatestCrashConsistent', + * 'LatestProcessed' + * @readonly + * @enum {string} + */ +export type A2ARpRecoveryPointType = 'Latest' | 'LatestApplicationConsistent' | 'LatestCrashConsistent' | 'LatestProcessed'; + +/** + * Defines values for MultiVmSyncPointOption. * Possible values include: 'UseMultiVmSyncRecoveryPoint', 'UsePerVmRecoveryPoint' * @readonly * @enum {string} */ -export type MultiVmSyncPointOption = 'UseMultiVmSyncRecoveryPoint' | 'UsePerVmRecoveryPoint'; +export type MultiVmSyncPointOption = 'UseMultiVmSyncRecoveryPoint' | 'UsePerVmRecoveryPoint'; + +/** + * Defines values for RecoveryPlanActionLocation. + * Possible values include: 'Primary', 'Recovery' + * @readonly + * @enum {string} + */ +export type RecoveryPlanActionLocation = 'Primary' | 'Recovery'; + +/** + * Defines values for DataSyncStatus. + * Possible values include: 'ForDownTime', 'ForSynchronization' + * @readonly + * @enum {string} + */ +export type DataSyncStatus = 'ForDownTime' | 'ForSynchronization'; + +/** + * Defines values for AlternateLocationRecoveryOption. + * Possible values include: 'CreateVmIfNotFound', 'NoAction' + * @readonly + * @enum {string} + */ +export type AlternateLocationRecoveryOption = 'CreateVmIfNotFound' | 'NoAction'; + +/** + * Defines values for HyperVReplicaAzureRpRecoveryPointType. + * Possible values include: 'Latest', 'LatestApplicationConsistent', 'LatestProcessed' + * @readonly + * @enum {string} + */ +export type HyperVReplicaAzureRpRecoveryPointType = 'Latest' | 'LatestApplicationConsistent' | 'LatestProcessed'; + +/** + * Defines values for InMageV2RpRecoveryPointType. + * Possible values include: 'Latest', 'LatestApplicationConsistent', 'LatestCrashConsistent', + * 'LatestProcessed' + * @readonly + * @enum {string} + */ +export type InMageV2RpRecoveryPointType = 'Latest' | 'LatestApplicationConsistent' | 'LatestCrashConsistent' | 'LatestProcessed'; + +/** + * Defines values for RpInMageRecoveryPointType. + * Possible values include: 'LatestTime', 'LatestTag', 'Custom' + * @readonly + * @enum {string} + */ +export type RpInMageRecoveryPointType = 'LatestTime' | 'LatestTag' | 'Custom'; + +/** + * Defines values for RecoveryPlanPointType. + * Possible values include: 'Latest', 'LatestApplicationConsistent', 'LatestCrashConsistent', + * 'LatestProcessed' + * @readonly + * @enum {string} + */ +export type RecoveryPlanPointType = 'Latest' | 'LatestApplicationConsistent' | 'LatestCrashConsistent' | 'LatestProcessed'; + +/** + * Defines values for SourceSiteOperations. + * Possible values include: 'Required', 'NotRequired' + * @readonly + * @enum {string} + */ +export type SourceSiteOperations = 'Required' | 'NotRequired'; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationsDiscoveryCollection & { + /** + * 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: OperationsDiscoveryCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationsDiscoveryCollection & { + /** + * 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: OperationsDiscoveryCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ReplicationAlertSettingsListResponse = AlertCollection & { + /** + * 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: AlertCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ReplicationAlertSettingsGetResponse = Alert & { + /** + * 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: Alert; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type ReplicationAlertSettingsCreateResponse = Alert & { + /** + * 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: Alert; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ReplicationAlertSettingsListNextResponse = AlertCollection & { + /** + * 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: AlertCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ReplicationEligibilityResultsListResponse = ReplicationEligibilityResultsCollection & { + /** + * 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: ReplicationEligibilityResultsCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ReplicationEligibilityResultsGetResponse = ReplicationEligibilityResults & { + /** + * 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: ReplicationEligibilityResults; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ReplicationEventsListResponse = EventCollection & { + /** + * 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: EventCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ReplicationEventsGetResponse = Event & { + /** + * 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: Event; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ReplicationEventsListNextResponse = EventCollection & { + /** + * 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: EventCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ReplicationFabricsListResponse = FabricCollection & { + /** + * 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: FabricCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ReplicationFabricsGetResponse = Fabric & { + /** + * 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: Fabric; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type ReplicationFabricsCreateResponse = Fabric & { + /** + * 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: Fabric; + }; +}; + +/** + * Contains response data for the checkConsistency operation. + */ +export type ReplicationFabricsCheckConsistencyResponse = Fabric & { + /** + * 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: Fabric; + }; +}; + +/** + * Contains response data for the reassociateGateway operation. + */ +export type ReplicationFabricsReassociateGatewayResponse = Fabric & { + /** + * 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: Fabric; + }; +}; + +/** + * Contains response data for the renewCertificate operation. + */ +export type ReplicationFabricsRenewCertificateResponse = Fabric & { + /** + * 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: Fabric; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type ReplicationFabricsBeginCreateResponse = Fabric & { + /** + * 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: Fabric; + }; +}; + +/** + * Contains response data for the beginCheckConsistency operation. + */ +export type ReplicationFabricsBeginCheckConsistencyResponse = Fabric & { + /** + * 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: Fabric; + }; +}; + +/** + * Contains response data for the beginReassociateGateway operation. + */ +export type ReplicationFabricsBeginReassociateGatewayResponse = Fabric & { + /** + * 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: Fabric; + }; +}; /** - * Defines values for RecoveryPlanActionLocation. - * Possible values include: 'Primary', 'Recovery' - * @readonly - * @enum {string} + * Contains response data for the beginRenewCertificate operation. */ -export type RecoveryPlanActionLocation = 'Primary' | 'Recovery'; +export type ReplicationFabricsBeginRenewCertificateResponse = Fabric & { + /** + * 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: Fabric; + }; +}; /** - * Defines values for DataSyncStatus. - * Possible values include: 'ForDownTime', 'ForSynchronization' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type DataSyncStatus = 'ForDownTime' | 'ForSynchronization'; +export type ReplicationFabricsListNextResponse = FabricCollection & { + /** + * 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: FabricCollection; + }; +}; /** - * Defines values for AlternateLocationRecoveryOption. - * Possible values include: 'CreateVmIfNotFound', 'NoAction' - * @readonly - * @enum {string} + * Contains response data for the listByReplicationFabrics operation. */ -export type AlternateLocationRecoveryOption = 'CreateVmIfNotFound' | 'NoAction'; +export type ReplicationLogicalNetworksListByReplicationFabricsResponse = LogicalNetworkCollection & { + /** + * 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: LogicalNetworkCollection; + }; +}; /** - * Defines values for HyperVReplicaAzureRpRecoveryPointType. - * Possible values include: 'Latest', 'LatestApplicationConsistent', 'LatestProcessed' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type HyperVReplicaAzureRpRecoveryPointType = 'Latest' | 'LatestApplicationConsistent' | 'LatestProcessed'; +export type ReplicationLogicalNetworksGetResponse = LogicalNetwork & { + /** + * 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: LogicalNetwork; + }; +}; /** - * Defines values for InMageV2RpRecoveryPointType. - * Possible values include: 'Latest', 'LatestApplicationConsistent', 'LatestCrashConsistent', - * 'LatestProcessed' - * @readonly - * @enum {string} + * Contains response data for the listByReplicationFabricsNext operation. */ -export type InMageV2RpRecoveryPointType = 'Latest' | 'LatestApplicationConsistent' | 'LatestCrashConsistent' | 'LatestProcessed'; +export type ReplicationLogicalNetworksListByReplicationFabricsNextResponse = LogicalNetworkCollection & { + /** + * 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: LogicalNetworkCollection; + }; +}; /** - * Defines values for RpInMageRecoveryPointType. - * Possible values include: 'LatestTime', 'LatestTag', 'Custom' - * @readonly - * @enum {string} + * Contains response data for the listByReplicationFabrics operation. */ -export type RpInMageRecoveryPointType = 'LatestTime' | 'LatestTag' | 'Custom'; +export type ReplicationNetworksListByReplicationFabricsResponse = NetworkCollection & { + /** + * 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: NetworkCollection; + }; +}; /** - * Defines values for SourceSiteOperations. - * Possible values include: 'Required', 'NotRequired' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type SourceSiteOperations = 'Required' | 'NotRequired'; +export type ReplicationNetworksGetResponse = Network & { + /** + * 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: Network; + }; +}; /** - * Defines values for LicenseType. - * Possible values include: 'NotSpecified', 'NoLicenseType', 'WindowsServer' - * @readonly - * @enum {string} + * Contains response data for the list operation. + */ +export type ReplicationNetworksListResponse = NetworkCollection & { + /** + * 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: NetworkCollection; + }; +}; + +/** + * Contains response data for the listByReplicationFabricsNext operation. + */ +export type ReplicationNetworksListByReplicationFabricsNextResponse = NetworkCollection & { + /** + * 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: NetworkCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ReplicationNetworksListNextResponse = NetworkCollection & { + /** + * 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: NetworkCollection; + }; +}; + +/** + * Contains response data for the listByReplicationNetworks operation. + */ +export type ReplicationNetworkMappingsListByReplicationNetworksResponse = NetworkMappingCollection & { + /** + * 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: NetworkMappingCollection; + }; +}; + +/** + * Contains response data for the get operation. */ -export type LicenseType = 'NotSpecified' | 'NoLicenseType' | 'WindowsServer'; +export type ReplicationNetworkMappingsGetResponse = NetworkMapping & { + /** + * 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: NetworkMapping; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the create operation. */ -export type OperationsListResponse = OperationsDiscoveryCollection & { +export type ReplicationNetworkMappingsCreateResponse = NetworkMapping & { /** * The underlying HTTP response. */ @@ -9707,17 +14636,18 @@ export type OperationsListResponse = OperationsDiscoveryCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: OperationsDiscoveryCollection; + parsedBody: NetworkMapping; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type OperationsListNextResponse = OperationsDiscoveryCollection & { +export type ReplicationNetworkMappingsUpdateResponse = NetworkMapping & { /** * The underlying HTTP response. */ @@ -9726,17 +14656,18 @@ export type OperationsListNextResponse = OperationsDiscoveryCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: OperationsDiscoveryCollection; + parsedBody: NetworkMapping; }; }; /** * Contains response data for the list operation. */ -export type ReplicationAlertSettingsListResponse = AlertCollection & { +export type ReplicationNetworkMappingsListResponse = NetworkMappingCollection & { /** * The underlying HTTP response. */ @@ -9745,17 +14676,18 @@ export type ReplicationAlertSettingsListResponse = AlertCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AlertCollection; + parsedBody: NetworkMappingCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreate operation. */ -export type ReplicationAlertSettingsGetResponse = Alert & { +export type ReplicationNetworkMappingsBeginCreateResponse = NetworkMapping & { /** * The underlying HTTP response. */ @@ -9764,17 +14696,18 @@ export type ReplicationAlertSettingsGetResponse = Alert & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: NetworkMapping; }; }; /** - * Contains response data for the create operation. + * Contains response data for the beginUpdate operation. */ -export type ReplicationAlertSettingsCreateResponse = Alert & { +export type ReplicationNetworkMappingsBeginUpdateResponse = NetworkMapping & { /** * The underlying HTTP response. */ @@ -9783,17 +14716,18 @@ export type ReplicationAlertSettingsCreateResponse = Alert & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: NetworkMapping; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByReplicationNetworksNext operation. */ -export type ReplicationAlertSettingsListNextResponse = AlertCollection & { +export type ReplicationNetworkMappingsListByReplicationNetworksNextResponse = NetworkMappingCollection & { /** * The underlying HTTP response. */ @@ -9802,17 +14736,18 @@ export type ReplicationAlertSettingsListNextResponse = AlertCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AlertCollection; + parsedBody: NetworkMappingCollection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type ReplicationEventsListResponse = EventCollection & { +export type ReplicationNetworkMappingsListNextResponse = NetworkMappingCollection & { /** * The underlying HTTP response. */ @@ -9821,17 +14756,18 @@ export type ReplicationEventsListResponse = EventCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: EventCollection; + parsedBody: NetworkMappingCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByReplicationFabrics operation. */ -export type ReplicationEventsGetResponse = Event & { +export type ReplicationProtectionContainersListByReplicationFabricsResponse = ProtectionContainerCollection & { /** * The underlying HTTP response. */ @@ -9840,17 +14776,18 @@ export type ReplicationEventsGetResponse = Event & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Event; + parsedBody: ProtectionContainerCollection; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type ReplicationEventsListNextResponse = EventCollection & { +export type ReplicationProtectionContainersGetResponse = ProtectionContainer & { /** * The underlying HTTP response. */ @@ -9859,17 +14796,18 @@ export type ReplicationEventsListNextResponse = EventCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: EventCollection; + parsedBody: ProtectionContainer; }; }; /** - * Contains response data for the list operation. + * Contains response data for the create operation. */ -export type ReplicationFabricsListResponse = FabricCollection & { +export type ReplicationProtectionContainersCreateResponse = ProtectionContainer & { /** * The underlying HTTP response. */ @@ -9878,17 +14816,18 @@ export type ReplicationFabricsListResponse = FabricCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: FabricCollection; + parsedBody: ProtectionContainer; }; }; /** - * Contains response data for the get operation. + * Contains response data for the discoverProtectableItem operation. */ -export type ReplicationFabricsGetResponse = Fabric & { +export type ReplicationProtectionContainersDiscoverProtectableItemResponse = ProtectionContainer & { /** * The underlying HTTP response. */ @@ -9897,17 +14836,18 @@ export type ReplicationFabricsGetResponse = Fabric & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Fabric; + parsedBody: ProtectionContainer; }; }; /** - * Contains response data for the create operation. + * Contains response data for the switchProtection operation. */ -export type ReplicationFabricsCreateResponse = Fabric & { +export type ReplicationProtectionContainersSwitchProtectionResponse = ProtectionContainer & { /** * The underlying HTTP response. */ @@ -9916,17 +14856,18 @@ export type ReplicationFabricsCreateResponse = Fabric & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Fabric; + parsedBody: ProtectionContainer; }; }; /** - * Contains response data for the checkConsistency operation. + * Contains response data for the list operation. */ -export type ReplicationFabricsCheckConsistencyResponse = Fabric & { +export type ReplicationProtectionContainersListResponse = ProtectionContainerCollection & { /** * The underlying HTTP response. */ @@ -9935,17 +14876,18 @@ export type ReplicationFabricsCheckConsistencyResponse = Fabric & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Fabric; + parsedBody: ProtectionContainerCollection; }; }; /** - * Contains response data for the reassociateGateway operation. + * Contains response data for the beginCreate operation. */ -export type ReplicationFabricsReassociateGatewayResponse = Fabric & { +export type ReplicationProtectionContainersBeginCreateResponse = ProtectionContainer & { /** * The underlying HTTP response. */ @@ -9954,17 +14896,18 @@ export type ReplicationFabricsReassociateGatewayResponse = Fabric & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Fabric; + parsedBody: ProtectionContainer; }; }; /** - * Contains response data for the renewCertificate operation. + * Contains response data for the beginDiscoverProtectableItem operation. */ -export type ReplicationFabricsRenewCertificateResponse = Fabric & { +export type ReplicationProtectionContainersBeginDiscoverProtectableItemResponse = ProtectionContainer & { /** * The underlying HTTP response. */ @@ -9973,17 +14916,18 @@ export type ReplicationFabricsRenewCertificateResponse = Fabric & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Fabric; + parsedBody: ProtectionContainer; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the beginSwitchProtection operation. */ -export type ReplicationFabricsBeginCreateResponse = Fabric & { +export type ReplicationProtectionContainersBeginSwitchProtectionResponse = ProtectionContainer & { /** * The underlying HTTP response. */ @@ -9992,17 +14936,18 @@ export type ReplicationFabricsBeginCreateResponse = Fabric & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Fabric; + parsedBody: ProtectionContainer; }; }; /** - * Contains response data for the beginCheckConsistency operation. + * Contains response data for the listByReplicationFabricsNext operation. */ -export type ReplicationFabricsBeginCheckConsistencyResponse = Fabric & { +export type ReplicationProtectionContainersListByReplicationFabricsNextResponse = ProtectionContainerCollection & { /** * The underlying HTTP response. */ @@ -10011,17 +14956,18 @@ export type ReplicationFabricsBeginCheckConsistencyResponse = Fabric & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Fabric; + parsedBody: ProtectionContainerCollection; }; }; /** - * Contains response data for the beginReassociateGateway operation. + * Contains response data for the listNext operation. */ -export type ReplicationFabricsBeginReassociateGatewayResponse = Fabric & { +export type ReplicationProtectionContainersListNextResponse = ProtectionContainerCollection & { /** * The underlying HTTP response. */ @@ -10030,17 +14976,18 @@ export type ReplicationFabricsBeginReassociateGatewayResponse = Fabric & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Fabric; + parsedBody: ProtectionContainerCollection; }; }; /** - * Contains response data for the beginRenewCertificate operation. + * Contains response data for the listByReplicationProtectionContainers operation. */ -export type ReplicationFabricsBeginRenewCertificateResponse = Fabric & { +export type ReplicationMigrationItemsListByReplicationProtectionContainersResponse = MigrationItemCollection & { /** * The underlying HTTP response. */ @@ -10049,17 +14996,18 @@ export type ReplicationFabricsBeginRenewCertificateResponse = Fabric & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Fabric; + parsedBody: MigrationItemCollection; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type ReplicationFabricsListNextResponse = FabricCollection & { +export type ReplicationMigrationItemsGetResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10068,17 +15016,18 @@ export type ReplicationFabricsListNextResponse = FabricCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: FabricCollection; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the listByReplicationFabrics operation. + * Contains response data for the create operation. */ -export type ReplicationLogicalNetworksListByReplicationFabricsResponse = LogicalNetworkCollection & { +export type ReplicationMigrationItemsCreateResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10087,17 +15036,18 @@ export type ReplicationLogicalNetworksListByReplicationFabricsResponse = Logical * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: LogicalNetworkCollection; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type ReplicationLogicalNetworksGetResponse = LogicalNetwork & { +export type ReplicationMigrationItemsUpdateResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10106,17 +15056,18 @@ export type ReplicationLogicalNetworksGetResponse = LogicalNetwork & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: LogicalNetwork; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the listByReplicationFabricsNext operation. + * Contains response data for the migrate operation. */ -export type ReplicationLogicalNetworksListByReplicationFabricsNextResponse = LogicalNetworkCollection & { +export type ReplicationMigrationItemsMigrateResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10125,17 +15076,18 @@ export type ReplicationLogicalNetworksListByReplicationFabricsNextResponse = Log * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: LogicalNetworkCollection; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the listByReplicationFabrics operation. + * Contains response data for the resync operation. */ -export type ReplicationNetworksListByReplicationFabricsResponse = NetworkCollection & { +export type ReplicationMigrationItemsResyncResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10144,17 +15096,18 @@ export type ReplicationNetworksListByReplicationFabricsResponse = NetworkCollect * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkCollection; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the get operation. + * Contains response data for the testMigrate operation. */ -export type ReplicationNetworksGetResponse = Network & { +export type ReplicationMigrationItemsTestMigrateResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10163,17 +15116,18 @@ export type ReplicationNetworksGetResponse = Network & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Network; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the list operation. + * Contains response data for the testMigrateCleanup operation. */ -export type ReplicationNetworksListResponse = NetworkCollection & { +export type ReplicationMigrationItemsTestMigrateCleanupResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10182,17 +15136,18 @@ export type ReplicationNetworksListResponse = NetworkCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkCollection; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the listByReplicationFabricsNext operation. + * Contains response data for the list operation. */ -export type ReplicationNetworksListByReplicationFabricsNextResponse = NetworkCollection & { +export type ReplicationMigrationItemsListResponse = MigrationItemCollection & { /** * The underlying HTTP response. */ @@ -10201,17 +15156,18 @@ export type ReplicationNetworksListByReplicationFabricsNextResponse = NetworkCol * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkCollection; + parsedBody: MigrationItemCollection; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginCreate operation. */ -export type ReplicationNetworksListNextResponse = NetworkCollection & { +export type ReplicationMigrationItemsBeginCreateResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10220,17 +15176,18 @@ export type ReplicationNetworksListNextResponse = NetworkCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkCollection; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the listByReplicationNetworks operation. + * Contains response data for the beginUpdate operation. */ -export type ReplicationNetworkMappingsListByReplicationNetworksResponse = NetworkMappingCollection & { +export type ReplicationMigrationItemsBeginUpdateResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10239,17 +15196,18 @@ export type ReplicationNetworkMappingsListByReplicationNetworksResponse = Networ * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkMappingCollection; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginMigrate operation. */ -export type ReplicationNetworkMappingsGetResponse = NetworkMapping & { +export type ReplicationMigrationItemsBeginMigrateResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10258,17 +15216,18 @@ export type ReplicationNetworkMappingsGetResponse = NetworkMapping & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkMapping; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the create operation. + * Contains response data for the beginResync operation. */ -export type ReplicationNetworkMappingsCreateResponse = NetworkMapping & { +export type ReplicationMigrationItemsBeginResyncResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10277,17 +15236,18 @@ export type ReplicationNetworkMappingsCreateResponse = NetworkMapping & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkMapping; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginTestMigrate operation. */ -export type ReplicationNetworkMappingsUpdateResponse = NetworkMapping & { +export type ReplicationMigrationItemsBeginTestMigrateResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10296,17 +15256,18 @@ export type ReplicationNetworkMappingsUpdateResponse = NetworkMapping & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkMapping; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginTestMigrateCleanup operation. */ -export type ReplicationNetworkMappingsListResponse = NetworkMappingCollection & { +export type ReplicationMigrationItemsBeginTestMigrateCleanupResponse = MigrationItem & { /** * The underlying HTTP response. */ @@ -10315,17 +15276,18 @@ export type ReplicationNetworkMappingsListResponse = NetworkMappingCollection & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkMappingCollection; + parsedBody: MigrationItem; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the listByReplicationProtectionContainersNext operation. */ -export type ReplicationNetworkMappingsBeginCreateResponse = NetworkMapping & { +export type ReplicationMigrationItemsListByReplicationProtectionContainersNextResponse = MigrationItemCollection & { /** * The underlying HTTP response. */ @@ -10334,17 +15296,18 @@ export type ReplicationNetworkMappingsBeginCreateResponse = NetworkMapping & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkMapping; + parsedBody: MigrationItemCollection; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listNext operation. */ -export type ReplicationNetworkMappingsBeginUpdateResponse = NetworkMapping & { +export type ReplicationMigrationItemsListNextResponse = MigrationItemCollection & { /** * The underlying HTTP response. */ @@ -10353,17 +15316,18 @@ export type ReplicationNetworkMappingsBeginUpdateResponse = NetworkMapping & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkMapping; + parsedBody: MigrationItemCollection; }; }; /** - * Contains response data for the listByReplicationNetworksNext operation. + * Contains response data for the listByReplicationMigrationItems operation. */ -export type ReplicationNetworkMappingsListByReplicationNetworksNextResponse = NetworkMappingCollection & { +export type MigrationRecoveryPointsListByReplicationMigrationItemsResponse = MigrationRecoveryPointCollection & { /** * The underlying HTTP response. */ @@ -10372,17 +15336,18 @@ export type ReplicationNetworkMappingsListByReplicationNetworksNextResponse = Ne * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkMappingCollection; + parsedBody: MigrationRecoveryPointCollection; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type ReplicationNetworkMappingsListNextResponse = NetworkMappingCollection & { +export type MigrationRecoveryPointsGetResponse = MigrationRecoveryPoint & { /** * The underlying HTTP response. */ @@ -10391,17 +15356,18 @@ export type ReplicationNetworkMappingsListNextResponse = NetworkMappingCollectio * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: NetworkMappingCollection; + parsedBody: MigrationRecoveryPoint; }; }; /** - * Contains response data for the listByReplicationFabrics operation. + * Contains response data for the listByReplicationMigrationItemsNext operation. */ -export type ReplicationProtectionContainersListByReplicationFabricsResponse = ProtectionContainerCollection & { +export type MigrationRecoveryPointsListByReplicationMigrationItemsNextResponse = MigrationRecoveryPointCollection & { /** * The underlying HTTP response. */ @@ -10410,17 +15376,18 @@ export type ReplicationProtectionContainersListByReplicationFabricsResponse = Pr * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainerCollection; + parsedBody: MigrationRecoveryPointCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByReplicationProtectionContainers operation. */ -export type ReplicationProtectionContainersGetResponse = ProtectionContainer & { +export type ReplicationProtectableItemsListByReplicationProtectionContainersResponse = ProtectableItemCollection & { /** * The underlying HTTP response. */ @@ -10429,17 +15396,18 @@ export type ReplicationProtectionContainersGetResponse = ProtectionContainer & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainer; + parsedBody: ProtectableItemCollection; }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type ReplicationProtectionContainersCreateResponse = ProtectionContainer & { +export type ReplicationProtectableItemsGetResponse = ProtectableItem & { /** * The underlying HTTP response. */ @@ -10448,17 +15416,18 @@ export type ReplicationProtectionContainersCreateResponse = ProtectionContainer * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainer; + parsedBody: ProtectableItem; }; }; /** - * Contains response data for the discoverProtectableItem operation. + * Contains response data for the listByReplicationProtectionContainersNext operation. */ -export type ReplicationProtectionContainersDiscoverProtectableItemResponse = ProtectionContainer & { +export type ReplicationProtectableItemsListByReplicationProtectionContainersNextResponse = ProtectableItemCollection & { /** * The underlying HTTP response. */ @@ -10467,17 +15436,18 @@ export type ReplicationProtectionContainersDiscoverProtectableItemResponse = Pro * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainer; + parsedBody: ProtectableItemCollection; }; }; /** - * Contains response data for the switchProtection operation. + * Contains response data for the listByReplicationProtectionContainers operation. */ -export type ReplicationProtectionContainersSwitchProtectionResponse = ProtectionContainer & { +export type ReplicationProtectedItemsListByReplicationProtectionContainersResponse = ReplicationProtectedItemCollection & { /** * The underlying HTTP response. */ @@ -10486,17 +15456,18 @@ export type ReplicationProtectionContainersSwitchProtectionResponse = Protection * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainer; + parsedBody: ReplicationProtectedItemCollection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type ReplicationProtectionContainersListResponse = ProtectionContainerCollection & { +export type ReplicationProtectedItemsGetResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10505,17 +15476,18 @@ export type ReplicationProtectionContainersListResponse = ProtectionContainerCol * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainerCollection; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the create operation. */ -export type ReplicationProtectionContainersBeginCreateResponse = ProtectionContainer & { +export type ReplicationProtectedItemsCreateResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10524,17 +15496,18 @@ export type ReplicationProtectionContainersBeginCreateResponse = ProtectionConta * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainer; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the beginDiscoverProtectableItem operation. + * Contains response data for the update operation. */ -export type ReplicationProtectionContainersBeginDiscoverProtectableItemResponse = ProtectionContainer & { +export type ReplicationProtectedItemsUpdateResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10543,17 +15516,18 @@ export type ReplicationProtectionContainersBeginDiscoverProtectableItemResponse * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainer; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the beginSwitchProtection operation. + * Contains response data for the addDisks operation. */ -export type ReplicationProtectionContainersBeginSwitchProtectionResponse = ProtectionContainer & { +export type ReplicationProtectedItemsAddDisksResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10562,17 +15536,18 @@ export type ReplicationProtectionContainersBeginSwitchProtectionResponse = Prote * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainer; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the listByReplicationFabricsNext operation. + * Contains response data for the applyRecoveryPoint operation. */ -export type ReplicationProtectionContainersListByReplicationFabricsNextResponse = ProtectionContainerCollection & { +export type ReplicationProtectedItemsApplyRecoveryPointResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10581,17 +15556,18 @@ export type ReplicationProtectionContainersListByReplicationFabricsNextResponse * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainerCollection; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the failoverCancel operation. */ -export type ReplicationProtectionContainersListNextResponse = ProtectionContainerCollection & { +export type ReplicationProtectedItemsFailoverCancelResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10600,17 +15576,18 @@ export type ReplicationProtectionContainersListNextResponse = ProtectionContaine * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainerCollection; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the listByReplicationProtectionContainers operation. + * Contains response data for the failoverCommit operation. */ -export type ReplicationProtectableItemsListByReplicationProtectionContainersResponse = ProtectableItemCollection & { +export type ReplicationProtectedItemsFailoverCommitResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10619,17 +15596,18 @@ export type ReplicationProtectableItemsListByReplicationProtectionContainersResp * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectableItemCollection; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the get operation. + * Contains response data for the plannedFailover operation. */ -export type ReplicationProtectableItemsGetResponse = ProtectableItem & { +export type ReplicationProtectedItemsPlannedFailoverResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10638,17 +15616,18 @@ export type ReplicationProtectableItemsGetResponse = ProtectableItem & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectableItem; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the listByReplicationProtectionContainersNext operation. + * Contains response data for the removeDisks operation. */ -export type ReplicationProtectableItemsListByReplicationProtectionContainersNextResponse = ProtectableItemCollection & { +export type ReplicationProtectedItemsRemoveDisksResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10657,17 +15636,18 @@ export type ReplicationProtectableItemsListByReplicationProtectionContainersNext * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ProtectableItemCollection; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the listByReplicationProtectionContainers operation. + * Contains response data for the repairReplication operation. */ -export type ReplicationProtectedItemsListByReplicationProtectionContainersResponse = ReplicationProtectedItemCollection & { +export type ReplicationProtectedItemsRepairReplicationResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10676,17 +15656,18 @@ export type ReplicationProtectedItemsListByReplicationProtectionContainersRespon * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ReplicationProtectedItemCollection; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the get operation. + * Contains response data for the reprotect operation. */ -export type ReplicationProtectedItemsGetResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsReprotectResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10695,6 +15676,7 @@ export type ReplicationProtectedItemsGetResponse = ReplicationProtectedItem & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10703,9 +15685,9 @@ export type ReplicationProtectedItemsGetResponse = ReplicationProtectedItem & { }; /** - * Contains response data for the create operation. + * Contains response data for the resolveHealthErrors operation. */ -export type ReplicationProtectedItemsCreateResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsResolveHealthErrorsResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10714,6 +15696,7 @@ export type ReplicationProtectedItemsCreateResponse = ReplicationProtectedItem & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10722,9 +15705,9 @@ export type ReplicationProtectedItemsCreateResponse = ReplicationProtectedItem & }; /** - * Contains response data for the update operation. + * Contains response data for the testFailover operation. */ -export type ReplicationProtectedItemsUpdateResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsTestFailoverResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10733,6 +15716,7 @@ export type ReplicationProtectedItemsUpdateResponse = ReplicationProtectedItem & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10741,9 +15725,9 @@ export type ReplicationProtectedItemsUpdateResponse = ReplicationProtectedItem & }; /** - * Contains response data for the applyRecoveryPoint operation. + * Contains response data for the testFailoverCleanup operation. */ -export type ReplicationProtectedItemsApplyRecoveryPointResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsTestFailoverCleanupResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10752,6 +15736,7 @@ export type ReplicationProtectedItemsApplyRecoveryPointResponse = ReplicationPro * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10760,9 +15745,9 @@ export type ReplicationProtectedItemsApplyRecoveryPointResponse = ReplicationPro }; /** - * Contains response data for the failoverCommit operation. + * Contains response data for the unplannedFailover operation. */ -export type ReplicationProtectedItemsFailoverCommitResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsUnplannedFailoverResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10771,6 +15756,7 @@ export type ReplicationProtectedItemsFailoverCommitResponse = ReplicationProtect * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10779,9 +15765,9 @@ export type ReplicationProtectedItemsFailoverCommitResponse = ReplicationProtect }; /** - * Contains response data for the plannedFailover operation. + * Contains response data for the updateAppliance operation. */ -export type ReplicationProtectedItemsPlannedFailoverResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsUpdateApplianceResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10790,6 +15776,7 @@ export type ReplicationProtectedItemsPlannedFailoverResponse = ReplicationProtec * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10798,9 +15785,9 @@ export type ReplicationProtectedItemsPlannedFailoverResponse = ReplicationProtec }; /** - * Contains response data for the repairReplication operation. + * Contains response data for the updateMobilityService operation. */ -export type ReplicationProtectedItemsRepairReplicationResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsUpdateMobilityServiceResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10809,6 +15796,7 @@ export type ReplicationProtectedItemsRepairReplicationResponse = ReplicationProt * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10817,9 +15805,9 @@ export type ReplicationProtectedItemsRepairReplicationResponse = ReplicationProt }; /** - * Contains response data for the reprotect operation. + * Contains response data for the list operation. */ -export type ReplicationProtectedItemsReprotectResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsListResponse = ReplicationProtectedItemCollection & { /** * The underlying HTTP response. */ @@ -10828,17 +15816,18 @@ export type ReplicationProtectedItemsReprotectResponse = ReplicationProtectedIte * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ReplicationProtectedItem; + parsedBody: ReplicationProtectedItemCollection; }; }; /** - * Contains response data for the testFailover operation. + * Contains response data for the beginCreate operation. */ -export type ReplicationProtectedItemsTestFailoverResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginCreateResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10847,6 +15836,7 @@ export type ReplicationProtectedItemsTestFailoverResponse = ReplicationProtected * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10855,9 +15845,9 @@ export type ReplicationProtectedItemsTestFailoverResponse = ReplicationProtected }; /** - * Contains response data for the testFailoverCleanup operation. + * Contains response data for the beginUpdate operation. */ -export type ReplicationProtectedItemsTestFailoverCleanupResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginUpdateResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10866,6 +15856,7 @@ export type ReplicationProtectedItemsTestFailoverCleanupResponse = ReplicationPr * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10874,9 +15865,9 @@ export type ReplicationProtectedItemsTestFailoverCleanupResponse = ReplicationPr }; /** - * Contains response data for the unplannedFailover operation. + * Contains response data for the beginAddDisks operation. */ -export type ReplicationProtectedItemsUnplannedFailoverResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginAddDisksResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10885,6 +15876,7 @@ export type ReplicationProtectedItemsUnplannedFailoverResponse = ReplicationProt * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10893,9 +15885,9 @@ export type ReplicationProtectedItemsUnplannedFailoverResponse = ReplicationProt }; /** - * Contains response data for the updateMobilityService operation. + * Contains response data for the beginApplyRecoveryPoint operation. */ -export type ReplicationProtectedItemsUpdateMobilityServiceResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginApplyRecoveryPointResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10904,6 +15896,7 @@ export type ReplicationProtectedItemsUpdateMobilityServiceResponse = Replication * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10912,9 +15905,9 @@ export type ReplicationProtectedItemsUpdateMobilityServiceResponse = Replication }; /** - * Contains response data for the list operation. + * Contains response data for the beginFailoverCancel operation. */ -export type ReplicationProtectedItemsListResponse = ReplicationProtectedItemCollection & { +export type ReplicationProtectedItemsBeginFailoverCancelResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10923,17 +15916,18 @@ export type ReplicationProtectedItemsListResponse = ReplicationProtectedItemColl * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ReplicationProtectedItemCollection; + parsedBody: ReplicationProtectedItem; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the beginFailoverCommit operation. */ -export type ReplicationProtectedItemsBeginCreateResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginFailoverCommitResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10942,6 +15936,7 @@ export type ReplicationProtectedItemsBeginCreateResponse = ReplicationProtectedI * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10950,9 +15945,9 @@ export type ReplicationProtectedItemsBeginCreateResponse = ReplicationProtectedI }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the beginPlannedFailover operation. */ -export type ReplicationProtectedItemsBeginUpdateResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginPlannedFailoverResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10961,6 +15956,7 @@ export type ReplicationProtectedItemsBeginUpdateResponse = ReplicationProtectedI * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10969,9 +15965,9 @@ export type ReplicationProtectedItemsBeginUpdateResponse = ReplicationProtectedI }; /** - * Contains response data for the beginApplyRecoveryPoint operation. + * Contains response data for the beginRemoveDisks operation. */ -export type ReplicationProtectedItemsBeginApplyRecoveryPointResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginRemoveDisksResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10980,6 +15976,7 @@ export type ReplicationProtectedItemsBeginApplyRecoveryPointResponse = Replicati * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -10988,9 +15985,9 @@ export type ReplicationProtectedItemsBeginApplyRecoveryPointResponse = Replicati }; /** - * Contains response data for the beginFailoverCommit operation. + * Contains response data for the beginRepairReplication operation. */ -export type ReplicationProtectedItemsBeginFailoverCommitResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginRepairReplicationResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -10999,6 +15996,7 @@ export type ReplicationProtectedItemsBeginFailoverCommitResponse = ReplicationPr * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11007,9 +16005,9 @@ export type ReplicationProtectedItemsBeginFailoverCommitResponse = ReplicationPr }; /** - * Contains response data for the beginPlannedFailover operation. + * Contains response data for the beginReprotect operation. */ -export type ReplicationProtectedItemsBeginPlannedFailoverResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginReprotectResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -11018,6 +16016,7 @@ export type ReplicationProtectedItemsBeginPlannedFailoverResponse = ReplicationP * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11026,9 +16025,9 @@ export type ReplicationProtectedItemsBeginPlannedFailoverResponse = ReplicationP }; /** - * Contains response data for the beginRepairReplication operation. + * Contains response data for the beginResolveHealthErrors operation. */ -export type ReplicationProtectedItemsBeginRepairReplicationResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginResolveHealthErrorsResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -11037,6 +16036,7 @@ export type ReplicationProtectedItemsBeginRepairReplicationResponse = Replicatio * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11045,9 +16045,9 @@ export type ReplicationProtectedItemsBeginRepairReplicationResponse = Replicatio }; /** - * Contains response data for the beginReprotect operation. + * Contains response data for the beginTestFailover operation. */ -export type ReplicationProtectedItemsBeginReprotectResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginTestFailoverResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -11056,6 +16056,7 @@ export type ReplicationProtectedItemsBeginReprotectResponse = ReplicationProtect * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11064,9 +16065,9 @@ export type ReplicationProtectedItemsBeginReprotectResponse = ReplicationProtect }; /** - * Contains response data for the beginTestFailover operation. + * Contains response data for the beginTestFailoverCleanup operation. */ -export type ReplicationProtectedItemsBeginTestFailoverResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginTestFailoverCleanupResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -11075,6 +16076,7 @@ export type ReplicationProtectedItemsBeginTestFailoverResponse = ReplicationProt * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11083,9 +16085,9 @@ export type ReplicationProtectedItemsBeginTestFailoverResponse = ReplicationProt }; /** - * Contains response data for the beginTestFailoverCleanup operation. + * Contains response data for the beginUnplannedFailover operation. */ -export type ReplicationProtectedItemsBeginTestFailoverCleanupResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginUnplannedFailoverResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -11094,6 +16096,7 @@ export type ReplicationProtectedItemsBeginTestFailoverCleanupResponse = Replicat * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11102,9 +16105,9 @@ export type ReplicationProtectedItemsBeginTestFailoverCleanupResponse = Replicat }; /** - * Contains response data for the beginUnplannedFailover operation. + * Contains response data for the beginUpdateAppliance operation. */ -export type ReplicationProtectedItemsBeginUnplannedFailoverResponse = ReplicationProtectedItem & { +export type ReplicationProtectedItemsBeginUpdateApplianceResponse = ReplicationProtectedItem & { /** * The underlying HTTP response. */ @@ -11113,6 +16116,7 @@ export type ReplicationProtectedItemsBeginUnplannedFailoverResponse = Replicatio * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11132,6 +16136,7 @@ export type ReplicationProtectedItemsBeginUpdateMobilityServiceResponse = Replic * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11151,6 +16156,7 @@ export type ReplicationProtectedItemsListByReplicationProtectionContainersNextRe * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11170,6 +16176,7 @@ export type ReplicationProtectedItemsListNextResponse = ReplicationProtectedItem * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11189,6 +16196,7 @@ export type RecoveryPointsListByReplicationProtectedItemsResponse = RecoveryPoin * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11208,6 +16216,7 @@ export type RecoveryPointsGetResponse = RecoveryPoint & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11227,6 +16236,7 @@ export type RecoveryPointsListByReplicationProtectedItemsNextResponse = Recovery * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11246,6 +16256,7 @@ export type TargetComputeSizesListByReplicationProtectedItemsResponse = TargetCo * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11265,6 +16276,7 @@ export type TargetComputeSizesListByReplicationProtectedItemsNextResponse = Targ * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11284,6 +16296,7 @@ export type ReplicationProtectionContainerMappingsListByReplicationProtectionCon * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11303,6 +16316,7 @@ export type ReplicationProtectionContainerMappingsGetResponse = ProtectionContai * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11322,6 +16336,7 @@ export type ReplicationProtectionContainerMappingsCreateResponse = ProtectionCon * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11341,6 +16356,7 @@ export type ReplicationProtectionContainerMappingsUpdateResponse = ProtectionCon * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11360,6 +16376,7 @@ export type ReplicationProtectionContainerMappingsListResponse = ProtectionConta * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11379,6 +16396,7 @@ export type ReplicationProtectionContainerMappingsBeginCreateResponse = Protecti * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11398,6 +16416,7 @@ export type ReplicationProtectionContainerMappingsBeginUpdateResponse = Protecti * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11417,6 +16436,7 @@ export type ReplicationProtectionContainerMappingsListByReplicationProtectionCon * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11436,6 +16456,7 @@ export type ReplicationProtectionContainerMappingsListNextResponse = ProtectionC * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11455,6 +16476,7 @@ export type ReplicationRecoveryServicesProvidersListByReplicationFabricsResponse * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11474,6 +16496,27 @@ export type ReplicationRecoveryServicesProvidersGetResponse = RecoveryServicesPr * The response body as text (string format) */ bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecoveryServicesProvider; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type ReplicationRecoveryServicesProvidersCreateResponse = RecoveryServicesProvider & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11493,6 +16536,7 @@ export type ReplicationRecoveryServicesProvidersRefreshProviderResponse = Recove * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11512,6 +16556,7 @@ export type ReplicationRecoveryServicesProvidersListResponse = RecoveryServicesP * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11519,6 +16564,26 @@ export type ReplicationRecoveryServicesProvidersListResponse = RecoveryServicesP }; }; +/** + * Contains response data for the beginCreate operation. + */ +export type ReplicationRecoveryServicesProvidersBeginCreateResponse = RecoveryServicesProvider & { + /** + * 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: RecoveryServicesProvider; + }; +}; + /** * Contains response data for the beginRefreshProvider operation. */ @@ -11531,6 +16596,7 @@ export type ReplicationRecoveryServicesProvidersBeginRefreshProviderResponse = R * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11550,6 +16616,7 @@ export type ReplicationRecoveryServicesProvidersListByReplicationFabricsNextResp * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11569,6 +16636,7 @@ export type ReplicationRecoveryServicesProvidersListNextResponse = RecoveryServi * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11588,6 +16656,7 @@ export type ReplicationStorageClassificationsListByReplicationFabricsResponse = * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11607,6 +16676,7 @@ export type ReplicationStorageClassificationsGetResponse = StorageClassification * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11626,6 +16696,7 @@ export type ReplicationStorageClassificationsListResponse = StorageClassificatio * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11645,6 +16716,7 @@ export type ReplicationStorageClassificationsListByReplicationFabricsNextRespons * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11664,6 +16736,7 @@ export type ReplicationStorageClassificationsListNextResponse = StorageClassific * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11683,6 +16756,7 @@ export type ReplicationStorageClassificationMappingsListByReplicationStorageClas * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11702,6 +16776,7 @@ export type ReplicationStorageClassificationMappingsGetResponse = StorageClassif * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11721,6 +16796,7 @@ export type ReplicationStorageClassificationMappingsCreateResponse = StorageClas * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11740,6 +16816,7 @@ export type ReplicationStorageClassificationMappingsListResponse = StorageClassi * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11759,6 +16836,7 @@ export type ReplicationStorageClassificationMappingsBeginCreateResponse = Storag * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11778,6 +16856,7 @@ export type ReplicationStorageClassificationMappingsListByReplicationStorageClas * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11797,6 +16876,7 @@ export type ReplicationStorageClassificationMappingsListNextResponse = StorageCl * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11816,6 +16896,7 @@ export type ReplicationvCentersListByReplicationFabricsResponse = VCenterCollect * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11835,6 +16916,7 @@ export type ReplicationvCentersGetResponse = VCenter & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11854,6 +16936,7 @@ export type ReplicationvCentersCreateResponse = VCenter & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11873,6 +16956,7 @@ export type ReplicationvCentersUpdateResponse = VCenter & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11892,6 +16976,7 @@ export type ReplicationvCentersListResponse = VCenterCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11911,6 +16996,7 @@ export type ReplicationvCentersBeginCreateResponse = VCenter & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11930,6 +17016,7 @@ export type ReplicationvCentersBeginUpdateResponse = VCenter & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11949,6 +17036,7 @@ export type ReplicationvCentersListByReplicationFabricsNextResponse = VCenterCol * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11968,6 +17056,7 @@ export type ReplicationvCentersListNextResponse = VCenterCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -11987,6 +17076,7 @@ export type ReplicationJobsListResponse = JobCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12006,6 +17096,7 @@ export type ReplicationJobsGetResponse = Job & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12025,6 +17116,7 @@ export type ReplicationJobsCancelResponse = Job & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12044,6 +17136,7 @@ export type ReplicationJobsRestartResponse = Job & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12063,6 +17156,7 @@ export type ReplicationJobsResumeResponse = Job & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12082,6 +17176,7 @@ export type ReplicationJobsExportMethodResponse = Job & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12101,6 +17196,7 @@ export type ReplicationJobsBeginCancelResponse = Job & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12120,6 +17216,7 @@ export type ReplicationJobsBeginRestartResponse = Job & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12139,6 +17236,7 @@ export type ReplicationJobsBeginResumeResponse = Job & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12158,6 +17256,7 @@ export type ReplicationJobsBeginExportMethodResponse = Job & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12177,6 +17276,7 @@ export type ReplicationJobsListNextResponse = JobCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12196,6 +17296,7 @@ export type ReplicationPoliciesListResponse = PolicyCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12215,6 +17316,7 @@ export type ReplicationPoliciesGetResponse = Policy & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12234,6 +17336,7 @@ export type ReplicationPoliciesCreateResponse = Policy & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12253,6 +17356,7 @@ export type ReplicationPoliciesUpdateResponse = Policy & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12272,6 +17376,7 @@ export type ReplicationPoliciesBeginCreateResponse = Policy & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12291,6 +17396,7 @@ export type ReplicationPoliciesBeginUpdateResponse = Policy & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12310,6 +17416,7 @@ export type ReplicationPoliciesListNextResponse = PolicyCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12317,6 +17424,86 @@ export type ReplicationPoliciesListNextResponse = PolicyCollection & { }; }; +/** + * Contains response data for the list operation. + */ +export type ReplicationProtectionIntentsListResponse = ReplicationProtectionIntentCollection & { + /** + * 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: ReplicationProtectionIntentCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ReplicationProtectionIntentsGetResponse = ReplicationProtectionIntent & { + /** + * 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: ReplicationProtectionIntent; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type ReplicationProtectionIntentsCreateResponse = ReplicationProtectionIntent & { + /** + * 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: ReplicationProtectionIntent; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ReplicationProtectionIntentsListNextResponse = ReplicationProtectionIntentCollection & { + /** + * 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: ReplicationProtectionIntentCollection; + }; +}; + /** * Contains response data for the list operation. */ @@ -12329,6 +17516,7 @@ export type ReplicationRecoveryPlansListResponse = RecoveryPlanCollection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12348,6 +17536,7 @@ export type ReplicationRecoveryPlansGetResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12367,6 +17556,7 @@ export type ReplicationRecoveryPlansCreateResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12386,6 +17576,27 @@ export type ReplicationRecoveryPlansUpdateResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecoveryPlan; + }; +}; + +/** + * Contains response data for the failoverCancel operation. + */ +export type ReplicationRecoveryPlansFailoverCancelResponse = RecoveryPlan & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12405,6 +17616,7 @@ export type ReplicationRecoveryPlansFailoverCommitResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12424,6 +17636,7 @@ export type ReplicationRecoveryPlansPlannedFailoverResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12443,6 +17656,7 @@ export type ReplicationRecoveryPlansReprotectResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12462,6 +17676,7 @@ export type ReplicationRecoveryPlansTestFailoverResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12481,6 +17696,7 @@ export type ReplicationRecoveryPlansTestFailoverCleanupResponse = RecoveryPlan & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12500,6 +17716,7 @@ export type ReplicationRecoveryPlansUnplannedFailoverResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12519,6 +17736,7 @@ export type ReplicationRecoveryPlansBeginCreateResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12538,6 +17756,27 @@ export type ReplicationRecoveryPlansBeginUpdateResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecoveryPlan; + }; +}; + +/** + * Contains response data for the beginFailoverCancel operation. + */ +export type ReplicationRecoveryPlansBeginFailoverCancelResponse = RecoveryPlan & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12557,6 +17796,7 @@ export type ReplicationRecoveryPlansBeginFailoverCommitResponse = RecoveryPlan & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12576,6 +17816,7 @@ export type ReplicationRecoveryPlansBeginPlannedFailoverResponse = RecoveryPlan * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12595,6 +17836,7 @@ export type ReplicationRecoveryPlansBeginReprotectResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12614,6 +17856,7 @@ export type ReplicationRecoveryPlansBeginTestFailoverResponse = RecoveryPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12633,6 +17876,7 @@ export type ReplicationRecoveryPlansBeginTestFailoverCleanupResponse = RecoveryP * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12652,6 +17896,7 @@ export type ReplicationRecoveryPlansBeginUnplannedFailoverResponse = RecoveryPla * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12671,6 +17916,7 @@ export type ReplicationRecoveryPlansListNextResponse = RecoveryPlanCollection & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12678,6 +17924,26 @@ export type ReplicationRecoveryPlansListNextResponse = RecoveryPlanCollection & }; }; +/** + * Contains response data for the get operation. + */ +export type SupportedOperatingSystemsGetResponse = SupportedOperatingSystems & { + /** + * 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: SupportedOperatingSystems; + }; +}; + /** * Contains response data for the get operation. */ @@ -12690,6 +17956,7 @@ export type ReplicationVaultHealthGetResponse = VaultHealthDetails & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12709,6 +17976,7 @@ export type ReplicationVaultHealthRefreshResponse = VaultHealthDetails & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -12728,9 +17996,110 @@ export type ReplicationVaultHealthBeginRefreshResponse = VaultHealthDetails & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ parsedBody: VaultHealthDetails; }; }; + +/** + * Contains response data for the list operation. + */ +export type ReplicationVaultSettingListResponse = VaultSettingCollection & { + /** + * 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: VaultSettingCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ReplicationVaultSettingGetResponse = VaultSetting & { + /** + * 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: VaultSetting; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type ReplicationVaultSettingCreateResponse = VaultSetting & { + /** + * 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: VaultSetting; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type ReplicationVaultSettingBeginCreateResponse = VaultSetting & { + /** + * 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: VaultSetting; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ReplicationVaultSettingListNextResponse = VaultSettingCollection & { + /** + * 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: VaultSettingCollection; + }; +}; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts index 334f3b50b4ba..fabf7bf5af86 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/mappers.ts @@ -1,11 +1,9 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -14,123 +12,6 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const ApplyRecoveryPointProviderSpecificInput: msRest.CompositeMapper = { - serializedName: "ApplyRecoveryPointProviderSpecificInput", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "ApplyRecoveryPointProviderSpecificInput", - className: "ApplyRecoveryPointProviderSpecificInput", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", - type: { - name: "String" - } - } - } - } -}; - -export const A2AApplyRecoveryPointInput: msRest.CompositeMapper = { - serializedName: "A2A", - type: { - name: "Composite", - polymorphicDiscriminator: ApplyRecoveryPointProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "ApplyRecoveryPointProviderSpecificInput", - className: "A2AApplyRecoveryPointInput", - modelProperties: { - ...ApplyRecoveryPointProviderSpecificInput.type.modelProperties - } - } -}; - -export const ReplicationProviderSpecificContainerCreationInput: msRest.CompositeMapper = { - serializedName: "ReplicationProviderSpecificContainerCreationInput", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "ReplicationProviderSpecificContainerCreationInput", - className: "ReplicationProviderSpecificContainerCreationInput", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", - type: { - name: "String" - } - } - } - } -}; - -export const A2AContainerCreationInput: msRest.CompositeMapper = { - serializedName: "A2A", - type: { - name: "Composite", - polymorphicDiscriminator: ReplicationProviderSpecificContainerCreationInput.type.polymorphicDiscriminator, - uberParent: "ReplicationProviderSpecificContainerCreationInput", - className: "A2AContainerCreationInput", - modelProperties: { - ...ReplicationProviderSpecificContainerCreationInput.type.modelProperties - } - } -}; - -export const ReplicationProviderSpecificContainerMappingInput: msRest.CompositeMapper = { - serializedName: "ReplicationProviderSpecificContainerMappingInput", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "ReplicationProviderSpecificContainerMappingInput", - className: "ReplicationProviderSpecificContainerMappingInput", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", - type: { - name: "String" - } - } - } - } -}; - -export const A2AContainerMappingInput: msRest.CompositeMapper = { - serializedName: "A2A", - type: { - name: "Composite", - polymorphicDiscriminator: ReplicationProviderSpecificContainerMappingInput.type.polymorphicDiscriminator, - uberParent: "ReplicationProviderSpecificContainerMappingInput", - className: "A2AContainerMappingInput", - modelProperties: { - ...ReplicationProviderSpecificContainerMappingInput.type.modelProperties, - agentAutoUpdateStatus: { - serializedName: "agentAutoUpdateStatus", - type: { - name: "String" - } - }, - automationAccountArmId: { - serializedName: "automationAccountArmId", - type: { - name: "String" - } - } - } - } -}; - export const A2AVmDiskInputDetails: msRest.CompositeMapper = { serializedName: "A2AVmDiskInputDetails", type: { @@ -138,18 +19,21 @@ export const A2AVmDiskInputDetails: msRest.CompositeMapper = { className: "A2AVmDiskInputDetails", modelProperties: { diskUri: { + required: true, serializedName: "diskUri", type: { name: "String" } }, recoveryAzureStorageAccountId: { + required: true, serializedName: "recoveryAzureStorageAccountId", type: { name: "String" } }, primaryStagingAzureStorageAccountId: { + required: true, serializedName: "primaryStagingAzureStorageAccountId", type: { name: "String" @@ -159,46 +43,6 @@ export const A2AVmDiskInputDetails: msRest.CompositeMapper = { } }; -export const A2AVmManagedDiskInputDetails: msRest.CompositeMapper = { - serializedName: "A2AVmManagedDiskInputDetails", - type: { - name: "Composite", - className: "A2AVmManagedDiskInputDetails", - modelProperties: { - diskId: { - serializedName: "diskId", - type: { - name: "String" - } - }, - primaryStagingAzureStorageAccountId: { - serializedName: "primaryStagingAzureStorageAccountId", - type: { - name: "String" - } - }, - recoveryResourceGroupId: { - serializedName: "recoveryResourceGroupId", - type: { - name: "String" - } - }, - recoveryReplicaDiskAccountType: { - serializedName: "recoveryReplicaDiskAccountType", - type: { - name: "String" - } - }, - recoveryTargetDiskAccountType: { - serializedName: "recoveryTargetDiskAccountType", - type: { - name: "String" - } - } - } - } -}; - export const DiskEncryptionKeyInfo: msRest.CompositeMapper = { serializedName: "DiskEncryptionKeyInfo", type: { @@ -267,99 +111,47 @@ export const DiskEncryptionInfo: msRest.CompositeMapper = { } }; -export const EnableProtectionProviderSpecificInput: msRest.CompositeMapper = { - serializedName: "EnableProtectionProviderSpecificInput", +export const A2AVmManagedDiskInputDetails: msRest.CompositeMapper = { + serializedName: "A2AVmManagedDiskInputDetails", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "EnableProtectionProviderSpecificInput", - className: "EnableProtectionProviderSpecificInput", + className: "A2AVmManagedDiskInputDetails", modelProperties: { - instanceType: { + diskId: { required: true, - serializedName: "instanceType", - type: { - name: "String" - } - } - } - } -}; - -export const A2AEnableProtectionInput: msRest.CompositeMapper = { - serializedName: "A2A", - type: { - name: "Composite", - polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "EnableProtectionProviderSpecificInput", - className: "A2AEnableProtectionInput", - modelProperties: { - ...EnableProtectionProviderSpecificInput.type.modelProperties, - fabricObjectId: { - serializedName: "fabricObjectId", + serializedName: "diskId", type: { name: "String" } }, - recoveryContainerId: { - serializedName: "recoveryContainerId", + primaryStagingAzureStorageAccountId: { + required: true, + serializedName: "primaryStagingAzureStorageAccountId", type: { name: "String" } }, recoveryResourceGroupId: { + required: true, serializedName: "recoveryResourceGroupId", type: { name: "String" } }, - recoveryCloudServiceId: { - serializedName: "recoveryCloudServiceId", - type: { - name: "String" - } - }, - recoveryAvailabilitySetId: { - serializedName: "recoveryAvailabilitySetId", + recoveryReplicaDiskAccountType: { + serializedName: "recoveryReplicaDiskAccountType", type: { name: "String" } }, - vmDisks: { - serializedName: "vmDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "A2AVmDiskInputDetails" - } - } - } - }, - vmManagedDisks: { - serializedName: "vmManagedDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "A2AVmManagedDiskInputDetails" - } - } - } - }, - multiVmGroupName: { - serializedName: "multiVmGroupName", + recoveryTargetDiskAccountType: { + serializedName: "recoveryTargetDiskAccountType", type: { name: "String" } }, - recoveryBootDiagStorageAccountId: { - serializedName: "recoveryBootDiagStorageAccountId", + recoveryDiskEncryptionSetId: { + serializedName: "recoveryDiskEncryptionSetId", type: { name: "String" } @@ -375,16 +167,16 @@ export const A2AEnableProtectionInput: msRest.CompositeMapper = { } }; -export const EventProviderSpecificDetails: msRest.CompositeMapper = { - serializedName: "EventProviderSpecificDetails", +export const AddDisksProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "AddDisksProviderSpecificInput", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType" }, - uberParent: "EventProviderSpecificDetails", - className: "EventProviderSpecificDetails", + uberParent: "AddDisksProviderSpecificInput", + className: "AddDisksProviderSpecificInput", modelProperties: { instanceType: { required: true, @@ -397,65 +189,53 @@ export const EventProviderSpecificDetails: msRest.CompositeMapper = { } }; -export const A2AEventDetails: msRest.CompositeMapper = { +export const A2AAddDisksInput: msRest.CompositeMapper = { serializedName: "A2A", type: { name: "Composite", - polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "EventProviderSpecificDetails", - className: "A2AEventDetails", + polymorphicDiscriminator: AddDisksProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "AddDisksProviderSpecificInput", + className: "A2AAddDisksInput", modelProperties: { - ...EventProviderSpecificDetails.type.modelProperties, - protectedItemName: { - serializedName: "protectedItemName", + ...AddDisksProviderSpecificInput.type.modelProperties, + vmDisks: { + serializedName: "vmDisks", type: { - name: "String" - } - }, - fabricObjectId: { - serializedName: "fabricObjectId", - type: { - name: "String" - } - }, - fabricName: { - serializedName: "fabricName", - type: { - name: "String" - } - }, - fabricLocation: { - serializedName: "fabricLocation", - type: { - name: "String" - } - }, - remoteFabricName: { - serializedName: "remoteFabricName", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AVmDiskInputDetails" + } + } } }, - remoteFabricLocation: { - serializedName: "remoteFabricLocation", + vmManagedDisks: { + serializedName: "vmManagedDisks", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AVmManagedDiskInputDetails" + } + } } } } } }; -export const ProviderSpecificFailoverInput: msRest.CompositeMapper = { - serializedName: "ProviderSpecificFailoverInput", +export const ApplyRecoveryPointProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "ApplyRecoveryPointProviderSpecificInput", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType" }, - uberParent: "ProviderSpecificFailoverInput", - className: "ProviderSpecificFailoverInput", + uberParent: "ApplyRecoveryPointProviderSpecificInput", + className: "ApplyRecoveryPointProviderSpecificInput", modelProperties: { instanceType: { required: true, @@ -468,23 +248,33 @@ export const ProviderSpecificFailoverInput: msRest.CompositeMapper = { } }; -export const A2AFailoverProviderInput: msRest.CompositeMapper = { +export const A2AApplyRecoveryPointInput: msRest.CompositeMapper = { serializedName: "A2A", type: { name: "Composite", - polymorphicDiscriminator: ProviderSpecificFailoverInput.type.polymorphicDiscriminator, - uberParent: "ProviderSpecificFailoverInput", - className: "A2AFailoverProviderInput", + polymorphicDiscriminator: ApplyRecoveryPointProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ApplyRecoveryPointProviderSpecificInput", + className: "A2AApplyRecoveryPointInput", modelProperties: { - ...ProviderSpecificFailoverInput.type.modelProperties, - recoveryPointId: { - serializedName: "recoveryPointId", - type: { - name: "String" - } - }, - cloudServiceCreationOption: { - serializedName: "cloudServiceCreationOption", + ...ApplyRecoveryPointProviderSpecificInput.type.modelProperties + } + } +}; + +export const ReplicationProviderSpecificContainerCreationInput: msRest.CompositeMapper = { + serializedName: "ReplicationProviderSpecificContainerCreationInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "ReplicationProviderSpecificContainerCreationInput", + className: "ReplicationProviderSpecificContainerCreationInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", type: { name: "String" } @@ -493,16 +283,29 @@ export const A2AFailoverProviderInput: msRest.CompositeMapper = { } }; -export const PolicyProviderSpecificInput: msRest.CompositeMapper = { - serializedName: "PolicyProviderSpecificInput", +export const A2AContainerCreationInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: ReplicationProviderSpecificContainerCreationInput.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificContainerCreationInput", + className: "A2AContainerCreationInput", + modelProperties: { + ...ReplicationProviderSpecificContainerCreationInput.type.modelProperties + } + } +}; + +export const ReplicationProviderSpecificContainerMappingInput: msRest.CompositeMapper = { + serializedName: "ReplicationProviderSpecificContainerMappingInput", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType" }, - uberParent: "PolicyProviderSpecificInput", - className: "PolicyProviderSpecificInput", + uberParent: "ReplicationProviderSpecificContainerMappingInput", + className: "ReplicationProviderSpecificContainerMappingInput", modelProperties: { instanceType: { required: true, @@ -515,36 +318,67 @@ export const PolicyProviderSpecificInput: msRest.CompositeMapper = { } }; -export const A2APolicyCreationInput: msRest.CompositeMapper = { +export const A2AContainerMappingInput: msRest.CompositeMapper = { serializedName: "A2A", type: { name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificInput", - className: "A2APolicyCreationInput", + polymorphicDiscriminator: ReplicationProviderSpecificContainerMappingInput.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificContainerMappingInput", + className: "A2AContainerMappingInput", modelProperties: { - ...PolicyProviderSpecificInput.type.modelProperties, - recoveryPointHistory: { - serializedName: "recoveryPointHistory", + ...ReplicationProviderSpecificContainerMappingInput.type.modelProperties, + agentAutoUpdateStatus: { + serializedName: "agentAutoUpdateStatus", type: { - name: "Number" + name: "String" } }, - crashConsistentFrequencyInMinutes: { - serializedName: "crashConsistentFrequencyInMinutes", + automationAccountArmId: { + serializedName: "automationAccountArmId", type: { - name: "Number" + name: "String" } - }, - appConsistentFrequencyInMinutes: { - serializedName: "appConsistentFrequencyInMinutes", + } + } + } +}; + +export const ProtectionProfileCustomDetails: msRest.CompositeMapper = { + serializedName: "ProtectionProfileCustomDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "resourceType", + clientName: "resourceType" + }, + uberParent: "ProtectionProfileCustomDetails", + className: "ProtectionProfileCustomDetails", + modelProperties: { + resourceType: { + required: true, + serializedName: "resourceType", type: { - name: "Number" + name: "String" } - }, - multiVmSyncStatus: { + } + } + } +}; + +export const StorageAccountCustomDetails: msRest.CompositeMapper = { + serializedName: "StorageAccountCustomDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "resourceType", + clientName: "resourceType" + }, + uberParent: "StorageAccountCustomDetails", + className: "StorageAccountCustomDetails", + modelProperties: { + resourceType: { required: true, - serializedName: "multiVmSyncStatus", + serializedName: "resourceType", type: { name: "String" } @@ -553,20 +387,20 @@ export const A2APolicyCreationInput: msRest.CompositeMapper = { } }; -export const PolicyProviderSpecificDetails: msRest.CompositeMapper = { - serializedName: "PolicyProviderSpecificDetails", +export const RecoveryAvailabilitySetCustomDetails: msRest.CompositeMapper = { + serializedName: "RecoveryAvailabilitySetCustomDetails", type: { name: "Composite", polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" + serializedName: "resourceType", + clientName: "resourceType" }, - uberParent: "PolicyProviderSpecificDetails", - className: "PolicyProviderSpecificDetails", + uberParent: "RecoveryAvailabilitySetCustomDetails", + className: "RecoveryAvailabilitySetCustomDetails", modelProperties: { - instanceType: { + resourceType: { required: true, - serializedName: "instanceType", + serializedName: "resourceType", type: { name: "String" } @@ -575,165 +409,173 @@ export const PolicyProviderSpecificDetails: msRest.CompositeMapper = { } }; -export const A2APolicyDetails: msRest.CompositeMapper = { - serializedName: "A2A", +export const RecoveryVirtualNetworkCustomDetails: msRest.CompositeMapper = { + serializedName: "RecoveryVirtualNetworkCustomDetails", type: { name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificDetails", - className: "A2APolicyDetails", + polymorphicDiscriminator: { + serializedName: "resourceType", + clientName: "resourceType" + }, + uberParent: "RecoveryVirtualNetworkCustomDetails", + className: "RecoveryVirtualNetworkCustomDetails", modelProperties: { - ...PolicyProviderSpecificDetails.type.modelProperties, - recoveryPointThresholdInMinutes: { - serializedName: "recoveryPointThresholdInMinutes", + resourceType: { + required: true, + serializedName: "resourceType", type: { - name: "Number" + name: "String" } - }, - recoveryPointHistory: { - serializedName: "recoveryPointHistory", + } + } + } +}; + +export const RecoveryProximityPlacementGroupCustomDetails: msRest.CompositeMapper = { + serializedName: "RecoveryProximityPlacementGroupCustomDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "resourceType", + clientName: "resourceType" + }, + uberParent: "RecoveryProximityPlacementGroupCustomDetails", + className: "RecoveryProximityPlacementGroupCustomDetails", + modelProperties: { + resourceType: { + required: true, + serializedName: "resourceType", type: { - name: "Number" + name: "String" } - }, - appConsistentFrequencyInMinutes: { - serializedName: "appConsistentFrequencyInMinutes", + } + } + } +}; + +export const A2AProtectionIntentDiskInputDetails: msRest.CompositeMapper = { + serializedName: "A2AProtectionIntentDiskInputDetails", + type: { + name: "Composite", + className: "A2AProtectionIntentDiskInputDetails", + modelProperties: { + diskUri: { + required: true, + serializedName: "diskUri", type: { - name: "Number" + name: "String" } }, - multiVmSyncStatus: { - serializedName: "multiVmSyncStatus", + recoveryAzureStorageAccountCustomInput: { + serializedName: "recoveryAzureStorageAccountCustomInput", type: { - name: "String" + name: "Composite", + className: "StorageAccountCustomDetails" } }, - crashConsistentFrequencyInMinutes: { - serializedName: "crashConsistentFrequencyInMinutes", + primaryStagingStorageAccountCustomInput: { + serializedName: "primaryStagingStorageAccountCustomInput", type: { - name: "Number" + name: "Composite", + className: "StorageAccountCustomDetails" } } } } }; -export const A2AProtectedDiskDetails: msRest.CompositeMapper = { - serializedName: "A2AProtectedDiskDetails", +export const RecoveryResourceGroupCustomDetails: msRest.CompositeMapper = { + serializedName: "RecoveryResourceGroupCustomDetails", type: { name: "Composite", - className: "A2AProtectedDiskDetails", + polymorphicDiscriminator: { + serializedName: "resourceType", + clientName: "resourceType" + }, + uberParent: "RecoveryResourceGroupCustomDetails", + className: "RecoveryResourceGroupCustomDetails", modelProperties: { - diskUri: { - serializedName: "diskUri", + resourceType: { + required: true, + serializedName: "resourceType", type: { name: "String" } - }, - recoveryAzureStorageAccountId: { - serializedName: "recoveryAzureStorageAccountId", + } + } + } +}; + +export const A2AProtectionIntentManagedDiskInputDetails: msRest.CompositeMapper = { + serializedName: "A2AProtectionIntentManagedDiskInputDetails", + type: { + name: "Composite", + className: "A2AProtectionIntentManagedDiskInputDetails", + modelProperties: { + diskId: { + required: true, + serializedName: "diskId", type: { name: "String" } }, - primaryDiskAzureStorageAccountId: { - serializedName: "primaryDiskAzureStorageAccountId", + primaryStagingStorageAccountCustomInput: { + serializedName: "primaryStagingStorageAccountCustomInput", type: { - name: "String" + name: "Composite", + className: "StorageAccountCustomDetails" } }, - recoveryDiskUri: { - serializedName: "recoveryDiskUri", + recoveryResourceGroupCustomInput: { + serializedName: "recoveryResourceGroupCustomInput", type: { - name: "String" + name: "Composite", + className: "RecoveryResourceGroupCustomDetails" } }, - diskName: { - serializedName: "diskName", + recoveryReplicaDiskAccountType: { + serializedName: "recoveryReplicaDiskAccountType", type: { name: "String" } }, - diskCapacityInBytes: { - serializedName: "diskCapacityInBytes", - type: { - name: "Number" - } - }, - primaryStagingAzureStorageAccountId: { - serializedName: "primaryStagingAzureStorageAccountId", + recoveryTargetDiskAccountType: { + serializedName: "recoveryTargetDiskAccountType", type: { name: "String" } }, - diskType: { - serializedName: "diskType", + recoveryDiskEncryptionSetId: { + serializedName: "recoveryDiskEncryptionSetId", type: { name: "String" } }, - resyncRequired: { - serializedName: "resyncRequired", - type: { - name: "Boolean" - } - }, - monitoringPercentageCompletion: { - serializedName: "monitoringPercentageCompletion", - type: { - name: "Number" - } - }, - monitoringJobType: { - serializedName: "monitoringJobType", - type: { - name: "String" - } - }, - dataPendingInStagingStorageAccountInMB: { - serializedName: "dataPendingInStagingStorageAccountInMB", - type: { - name: "Number" - } - }, - dataPendingAtSourceAgentInMB: { - serializedName: "dataPendingAtSourceAgentInMB", - type: { - name: "Number" - } - }, - isDiskEncrypted: { - serializedName: "isDiskEncrypted", - type: { - name: "Boolean" - } - }, - secretIdentifier: { - serializedName: "secretIdentifier", - type: { - name: "String" - } - }, - dekKeyVaultArmId: { - serializedName: "dekKeyVaultArmId", - type: { - name: "String" - } - }, - isDiskKeyEncrypted: { - serializedName: "isDiskKeyEncrypted", - type: { - name: "Boolean" - } - }, - keyIdentifier: { - serializedName: "keyIdentifier", + diskEncryptionInfo: { + serializedName: "diskEncryptionInfo", type: { - name: "String" + name: "Composite", + className: "DiskEncryptionInfo" } - }, - kekKeyVaultArmId: { - serializedName: "kekKeyVaultArmId", + } + } + } +}; + +export const CreateProtectionIntentProviderSpecificDetails: msRest.CompositeMapper = { + serializedName: "CreateProtectionIntentProviderSpecificDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "CreateProtectionIntentProviderSpecificDetails", + className: "CreateProtectionIntentProviderSpecificDetails", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", type: { name: "String" } @@ -742,134 +584,150 @@ export const A2AProtectedDiskDetails: msRest.CompositeMapper = { } }; -export const A2AProtectedManagedDiskDetails: msRest.CompositeMapper = { - serializedName: "A2AProtectedManagedDiskDetails", +export const A2ACreateProtectionIntentInput: msRest.CompositeMapper = { + serializedName: "A2A", type: { name: "Composite", - className: "A2AProtectedManagedDiskDetails", + polymorphicDiscriminator: CreateProtectionIntentProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "CreateProtectionIntentProviderSpecificDetails", + className: "A2ACreateProtectionIntentInput", modelProperties: { - diskId: { - serializedName: "diskId", + ...CreateProtectionIntentProviderSpecificDetails.type.modelProperties, + fabricObjectId: { + required: true, + serializedName: "fabricObjectId", type: { name: "String" } }, - recoveryResourceGroupId: { - serializedName: "recoveryResourceGroupId", + primaryLocation: { + required: true, + serializedName: "primaryLocation", type: { name: "String" } }, - recoveryTargetDiskId: { - serializedName: "recoveryTargetDiskId", + recoveryLocation: { + required: true, + serializedName: "recoveryLocation", type: { name: "String" } }, - recoveryReplicaDiskId: { - serializedName: "recoveryReplicaDiskId", + recoverySubscriptionId: { + required: true, + serializedName: "recoverySubscriptionId", type: { name: "String" } }, - recoveryReplicaDiskAccountType: { - serializedName: "recoveryReplicaDiskAccountType", + recoveryAvailabilityType: { + required: true, + serializedName: "recoveryAvailabilityType", type: { name: "String" } }, - recoveryTargetDiskAccountType: { - serializedName: "recoveryTargetDiskAccountType", + protectionProfileCustomInput: { + serializedName: "protectionProfileCustomInput", type: { - name: "String" + name: "Composite", + className: "ProtectionProfileCustomDetails" } }, - diskName: { - serializedName: "diskName", + recoveryResourceGroupId: { + required: true, + serializedName: "recoveryResourceGroupId", type: { name: "String" } }, - diskCapacityInBytes: { - serializedName: "diskCapacityInBytes", - type: { - name: "Number" - } - }, - primaryStagingAzureStorageAccountId: { - serializedName: "primaryStagingAzureStorageAccountId", + primaryStagingStorageAccountCustomInput: { + serializedName: "primaryStagingStorageAccountCustomInput", type: { - name: "String" + name: "Composite", + className: "StorageAccountCustomDetails" } }, - diskType: { - serializedName: "diskType", + recoveryAvailabilitySetCustomInput: { + serializedName: "recoveryAvailabilitySetCustomInput", type: { - name: "String" + name: "Composite", + className: "RecoveryAvailabilitySetCustomDetails" } }, - resyncRequired: { - serializedName: "resyncRequired", + recoveryVirtualNetworkCustomInput: { + serializedName: "recoveryVirtualNetworkCustomInput", type: { - name: "Boolean" + name: "Composite", + className: "RecoveryVirtualNetworkCustomDetails" } }, - monitoringPercentageCompletion: { - serializedName: "monitoringPercentageCompletion", + recoveryProximityPlacementGroupCustomInput: { + serializedName: "recoveryProximityPlacementGroupCustomInput", type: { - name: "Number" + name: "Composite", + className: "RecoveryProximityPlacementGroupCustomDetails" } }, - monitoringJobType: { - serializedName: "monitoringJobType", + autoProtectionOfDataDisk: { + serializedName: "autoProtectionOfDataDisk", type: { name: "String" } }, - dataPendingInStagingStorageAccountInMB: { - serializedName: "dataPendingInStagingStorageAccountInMB", - type: { - name: "Number" - } - }, - dataPendingAtSourceAgentInMB: { - serializedName: "dataPendingAtSourceAgentInMB", + vmDisks: { + serializedName: "vmDisks", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AProtectionIntentDiskInputDetails" + } + } } }, - isDiskEncrypted: { - serializedName: "isDiskEncrypted", + vmManagedDisks: { + serializedName: "vmManagedDisks", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AProtectionIntentManagedDiskInputDetails" + } + } } }, - secretIdentifier: { - serializedName: "secretIdentifier", + multiVmGroupName: { + serializedName: "multiVmGroupName", type: { name: "String" } }, - dekKeyVaultArmId: { - serializedName: "dekKeyVaultArmId", + multiVmGroupId: { + serializedName: "multiVmGroupId", type: { name: "String" } }, - isDiskKeyEncrypted: { - serializedName: "isDiskKeyEncrypted", + recoveryBootDiagStorageAccount: { + serializedName: "recoveryBootDiagStorageAccount", type: { - name: "Boolean" + name: "Composite", + className: "StorageAccountCustomDetails" } }, - keyIdentifier: { - serializedName: "keyIdentifier", + diskEncryptionInfo: { + serializedName: "diskEncryptionInfo", type: { - name: "String" + name: "Composite", + className: "DiskEncryptionInfo" } }, - kekKeyVaultArmId: { - serializedName: "kekKeyVaultArmId", + recoveryAvailabilityZone: { + serializedName: "recoveryAvailabilityZone", type: { name: "String" } @@ -878,16 +736,42 @@ export const A2AProtectedManagedDiskDetails: msRest.CompositeMapper = { } }; -export const ProtectionContainerMappingProviderSpecificDetails: msRest.CompositeMapper = { - serializedName: "ProtectionContainerMappingProviderSpecificDetails", +export const A2ACrossClusterMigrationApplyRecoveryPointInput: msRest.CompositeMapper = { + serializedName: "A2ACrossClusterMigration", + type: { + name: "Composite", + polymorphicDiscriminator: ApplyRecoveryPointProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ApplyRecoveryPointProviderSpecificInput", + className: "A2ACrossClusterMigrationApplyRecoveryPointInput", + modelProperties: { + ...ApplyRecoveryPointProviderSpecificInput.type.modelProperties + } + } +}; + +export const A2ACrossClusterMigrationContainerCreationInput: msRest.CompositeMapper = { + serializedName: "A2ACrossClusterMigration", + type: { + name: "Composite", + polymorphicDiscriminator: ReplicationProviderSpecificContainerCreationInput.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificContainerCreationInput", + className: "A2ACrossClusterMigrationContainerCreationInput", + modelProperties: { + ...ReplicationProviderSpecificContainerCreationInput.type.modelProperties + } + } +}; + +export const EnableProtectionProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "EnableProtectionProviderSpecificInput", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType" }, - uberParent: "ProtectionContainerMappingProviderSpecificDetails", - className: "ProtectionContainerMappingProviderSpecificDetails", + uberParent: "EnableProtectionProviderSpecificInput", + className: "EnableProtectionProviderSpecificInput", modelProperties: { instanceType: { required: true, @@ -900,35 +784,23 @@ export const ProtectionContainerMappingProviderSpecificDetails: msRest.Composite } }; -export const A2AProtectionContainerMappingDetails: msRest.CompositeMapper = { - serializedName: "A2A", +export const A2ACrossClusterMigrationEnableProtectionInput: msRest.CompositeMapper = { + serializedName: "A2ACrossClusterMigration", type: { name: "Composite", - polymorphicDiscriminator: ProtectionContainerMappingProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "ProtectionContainerMappingProviderSpecificDetails", - className: "A2AProtectionContainerMappingDetails", + polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "EnableProtectionProviderSpecificInput", + className: "A2ACrossClusterMigrationEnableProtectionInput", modelProperties: { - ...ProtectionContainerMappingProviderSpecificDetails.type.modelProperties, - agentAutoUpdateStatus: { - serializedName: "agentAutoUpdateStatus", - type: { - name: "String" - } - }, - automationAccountArmId: { - serializedName: "automationAccountArmId", - type: { - name: "String" - } - }, - scheduleName: { - serializedName: "scheduleName", + ...EnableProtectionProviderSpecificInput.type.modelProperties, + fabricObjectId: { + serializedName: "fabricObjectId", type: { name: "String" } }, - jobScheduleName: { - serializedName: "jobScheduleName", + recoveryContainerId: { + serializedName: "recoveryContainerId", type: { name: "String" } @@ -937,16 +809,16 @@ export const A2AProtectionContainerMappingDetails: msRest.CompositeMapper = { } }; -export const ProviderSpecificRecoveryPointDetails: msRest.CompositeMapper = { - serializedName: "ProviderSpecificRecoveryPointDetails", +export const PolicyProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "PolicyProviderSpecificInput", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType" }, - uberParent: "ProviderSpecificRecoveryPointDetails", - className: "ProviderSpecificRecoveryPointDetails", + uberParent: "PolicyProviderSpecificInput", + className: "PolicyProviderSpecificInput", modelProperties: { instanceType: { required: true, @@ -959,17 +831,33 @@ export const ProviderSpecificRecoveryPointDetails: msRest.CompositeMapper = { } }; -export const A2ARecoveryPointDetails: msRest.CompositeMapper = { - serializedName: "A2A", +export const A2ACrossClusterMigrationPolicyCreationInput: msRest.CompositeMapper = { + serializedName: "A2ACrossClusterMigration", type: { name: "Composite", - polymorphicDiscriminator: ProviderSpecificRecoveryPointDetails.type.polymorphicDiscriminator, - uberParent: "ProviderSpecificRecoveryPointDetails", - className: "A2ARecoveryPointDetails", + polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificInput", + className: "A2ACrossClusterMigrationPolicyCreationInput", modelProperties: { - ...ProviderSpecificRecoveryPointDetails.type.modelProperties, - recoveryPointSyncType: { - serializedName: "recoveryPointSyncType", + ...PolicyProviderSpecificInput.type.modelProperties + } + } +}; + +export const ReplicationProviderSpecificSettings: msRest.CompositeMapper = { + serializedName: "ReplicationProviderSpecificSettings", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "ReplicationProviderSpecificSettings", + className: "ReplicationProviderSpecificSettings", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", type: { name: "String" } @@ -978,223 +866,188 @@ export const A2ARecoveryPointDetails: msRest.CompositeMapper = { } }; -export const VMNicDetails: msRest.CompositeMapper = { - serializedName: "VMNicDetails", +export const A2ACrossClusterMigrationReplicationDetails: msRest.CompositeMapper = { + serializedName: "A2ACrossClusterMigration", type: { name: "Composite", - className: "VMNicDetails", + polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificSettings", + className: "A2ACrossClusterMigrationReplicationDetails", modelProperties: { - nicId: { - serializedName: "nicId", + ...ReplicationProviderSpecificSettings.type.modelProperties, + fabricObjectId: { + serializedName: "fabricObjectId", type: { name: "String" } }, - replicaNicId: { - serializedName: "replicaNicId", + primaryFabricLocation: { + serializedName: "primaryFabricLocation", type: { name: "String" } }, - sourceNicArmId: { - serializedName: "sourceNicArmId", + osType: { + serializedName: "osType", type: { name: "String" } }, - vMSubnetName: { - serializedName: "vMSubnetName", + vmProtectionState: { + serializedName: "vmProtectionState", type: { name: "String" } }, - vMNetworkName: { - serializedName: "vMNetworkName", + vmProtectionStateDescription: { + serializedName: "vmProtectionStateDescription", type: { name: "String" } }, - recoveryVMNetworkId: { - serializedName: "recoveryVMNetworkId", + lifecycleId: { + serializedName: "lifecycleId", type: { name: "String" } - }, - recoveryVMSubnetName: { - serializedName: "recoveryVMSubnetName", + } + } + } +}; + +export const A2AEnableProtectionInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "EnableProtectionProviderSpecificInput", + className: "A2AEnableProtectionInput", + modelProperties: { + ...EnableProtectionProviderSpecificInput.type.modelProperties, + fabricObjectId: { + required: true, + serializedName: "fabricObjectId", type: { name: "String" } }, - ipAddressType: { - serializedName: "ipAddressType", + recoveryContainerId: { + serializedName: "recoveryContainerId", type: { name: "String" } }, - primaryNicStaticIPAddress: { - serializedName: "primaryNicStaticIPAddress", + recoveryResourceGroupId: { + serializedName: "recoveryResourceGroupId", type: { name: "String" } }, - replicaNicStaticIPAddress: { - serializedName: "replicaNicStaticIPAddress", + recoveryCloudServiceId: { + serializedName: "recoveryCloudServiceId", type: { name: "String" } }, - selectionType: { - serializedName: "selectionType", + recoveryAvailabilitySetId: { + serializedName: "recoveryAvailabilitySetId", type: { name: "String" } }, - recoveryNicIpAddressType: { - serializedName: "recoveryNicIpAddressType", + recoveryProximityPlacementGroupId: { + serializedName: "recoveryProximityPlacementGroupId", type: { name: "String" } }, - enableAcceleratedNetworkingOnRecovery: { - serializedName: "enableAcceleratedNetworkingOnRecovery", - type: { - name: "Boolean" - } - } - } - } -}; - -export const RoleAssignment: msRest.CompositeMapper = { - serializedName: "RoleAssignment", - type: { - name: "Composite", - className: "RoleAssignment", - modelProperties: { - id: { - serializedName: "id", + vmDisks: { + serializedName: "vmDisks", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AVmDiskInputDetails" + } + } } }, - name: { - serializedName: "name", + vmManagedDisks: { + serializedName: "vmManagedDisks", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AVmManagedDiskInputDetails" + } + } } }, - scope: { - serializedName: "scope", + multiVmGroupName: { + serializedName: "multiVmGroupName", type: { name: "String" } }, - principalId: { - serializedName: "principalId", + multiVmGroupId: { + serializedName: "multiVmGroupId", type: { name: "String" } }, - roleDefinitionId: { - serializedName: "roleDefinitionId", - type: { - name: "String" - } - } - } - } -}; - -export const InputEndpoint: msRest.CompositeMapper = { - serializedName: "InputEndpoint", - type: { - name: "Composite", - className: "InputEndpoint", - modelProperties: { - endpointName: { - serializedName: "endpointName", + recoveryBootDiagStorageAccountId: { + serializedName: "recoveryBootDiagStorageAccountId", type: { name: "String" } }, - privatePort: { - serializedName: "privatePort", + diskEncryptionInfo: { + serializedName: "diskEncryptionInfo", type: { - name: "Number" + name: "Composite", + className: "DiskEncryptionInfo" } }, - publicPort: { - serializedName: "publicPort", + recoveryAvailabilityZone: { + serializedName: "recoveryAvailabilityZone", type: { - name: "Number" + name: "String" } }, - protocol: { - serializedName: "protocol", + recoveryAzureNetworkId: { + serializedName: "recoveryAzureNetworkId", type: { name: "String" } - } - } - } -}; - -export const AzureToAzureVmSyncedConfigDetails: msRest.CompositeMapper = { - serializedName: "AzureToAzureVmSyncedConfigDetails", - type: { - name: "Composite", - className: "AzureToAzureVmSyncedConfigDetails", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } }, - roleAssignments: { - serializedName: "roleAssignments", + recoverySubnetName: { + serializedName: "recoverySubnetName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RoleAssignment" - } - } + name: "String" } }, - inputEndpoints: { - serializedName: "inputEndpoints", + recoveryVirtualMachineScaleSetId: { + serializedName: "recoveryVirtualMachineScaleSetId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InputEndpoint" - } - } + name: "String" } } } } }; -export const ReplicationProviderSpecificSettings: msRest.CompositeMapper = { - serializedName: "ReplicationProviderSpecificSettings", +export const EventProviderSpecificDetails: msRest.CompositeMapper = { + serializedName: "EventProviderSpecificDetails", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType" }, - uberParent: "ReplicationProviderSpecificSettings", - className: "ReplicationProviderSpecificSettings", + uberParent: "EventProviderSpecificDetails", + className: "EventProviderSpecificDetails", modelProperties: { instanceType: { required: true, @@ -1207,146 +1060,216 @@ export const ReplicationProviderSpecificSettings: msRest.CompositeMapper = { } }; -export const A2AReplicationDetails: msRest.CompositeMapper = { +export const A2AEventDetails: msRest.CompositeMapper = { serializedName: "A2A", type: { name: "Composite", - polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, - uberParent: "ReplicationProviderSpecificSettings", - className: "A2AReplicationDetails", + polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "EventProviderSpecificDetails", + className: "A2AEventDetails", modelProperties: { - ...ReplicationProviderSpecificSettings.type.modelProperties, - fabricObjectId: { - serializedName: "fabricObjectId", + ...EventProviderSpecificDetails.type.modelProperties, + protectedItemName: { + serializedName: "protectedItemName", type: { name: "String" } }, - multiVmGroupId: { - serializedName: "multiVmGroupId", + fabricObjectId: { + serializedName: "fabricObjectId", type: { name: "String" } }, - multiVmGroupName: { - serializedName: "multiVmGroupName", + fabricName: { + serializedName: "fabricName", type: { name: "String" } }, - multiVmGroupCreateOption: { - serializedName: "multiVmGroupCreateOption", + fabricLocation: { + serializedName: "fabricLocation", type: { name: "String" } }, - managementId: { - serializedName: "managementId", + remoteFabricName: { + serializedName: "remoteFabricName", type: { name: "String" } }, - protectedDisks: { - serializedName: "protectedDisks", + remoteFabricLocation: { + serializedName: "remoteFabricLocation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "A2AProtectedDiskDetails" - } - } + name: "String" } - }, - protectedManagedDisks: { - serializedName: "protectedManagedDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "A2AProtectedManagedDiskDetails" - } - } + } + } + } +}; + +export const A2APolicyCreationInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificInput", + className: "A2APolicyCreationInput", + modelProperties: { + ...PolicyProviderSpecificInput.type.modelProperties, + recoveryPointHistory: { + serializedName: "recoveryPointHistory", + type: { + name: "Number" } }, - recoveryBootDiagStorageAccountId: { - serializedName: "recoveryBootDiagStorageAccountId", + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", type: { - name: "String" + name: "Number" } }, - primaryFabricLocation: { - serializedName: "primaryFabricLocation", + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", type: { - name: "String" + name: "Number" } }, - recoveryFabricLocation: { - serializedName: "recoveryFabricLocation", + multiVmSyncStatus: { + required: true, + serializedName: "multiVmSyncStatus", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyProviderSpecificDetails: msRest.CompositeMapper = { + serializedName: "PolicyProviderSpecificDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "PolicyProviderSpecificDetails", + className: "PolicyProviderSpecificDetails", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", type: { name: "String" } + } + } + } +}; + +export const A2APolicyDetails: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "A2APolicyDetails", + modelProperties: { + ...PolicyProviderSpecificDetails.type.modelProperties, + recoveryPointThresholdInMinutes: { + serializedName: "recoveryPointThresholdInMinutes", + type: { + name: "Number" + } }, - osType: { - serializedName: "osType", + recoveryPointHistory: { + serializedName: "recoveryPointHistory", + type: { + name: "Number" + } + }, + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + multiVmSyncStatus: { + serializedName: "multiVmSyncStatus", type: { name: "String" } }, - recoveryAzureVMSize: { - serializedName: "recoveryAzureVMSize", + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", + type: { + name: "Number" + } + } + } + } +}; + +export const A2AProtectedDiskDetails: msRest.CompositeMapper = { + serializedName: "A2AProtectedDiskDetails", + type: { + name: "Composite", + className: "A2AProtectedDiskDetails", + modelProperties: { + diskUri: { + serializedName: "diskUri", type: { name: "String" } }, - recoveryAzureVMName: { - serializedName: "recoveryAzureVMName", + recoveryAzureStorageAccountId: { + serializedName: "recoveryAzureStorageAccountId", type: { name: "String" } }, - recoveryAzureResourceGroupId: { - serializedName: "recoveryAzureResourceGroupId", + primaryDiskAzureStorageAccountId: { + serializedName: "primaryDiskAzureStorageAccountId", type: { name: "String" } }, - recoveryCloudService: { - serializedName: "recoveryCloudService", + recoveryDiskUri: { + serializedName: "recoveryDiskUri", type: { name: "String" } }, - recoveryAvailabilitySet: { - serializedName: "recoveryAvailabilitySet", + diskName: { + serializedName: "diskName", type: { name: "String" } }, - selectedRecoveryAzureNetworkId: { - serializedName: "selectedRecoveryAzureNetworkId", + diskCapacityInBytes: { + serializedName: "diskCapacityInBytes", + type: { + name: "Number" + } + }, + primaryStagingAzureStorageAccountId: { + serializedName: "primaryStagingAzureStorageAccountId", type: { name: "String" } }, - vmNics: { - serializedName: "vmNics", + diskType: { + serializedName: "diskType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VMNicDetails" - } - } + name: "String" } }, - vmSyncedConfigDetails: { - serializedName: "vmSyncedConfigDetails", + resyncRequired: { + serializedName: "resyncRequired", type: { - name: "Composite", - className: "AzureToAzureVmSyncedConfigDetails" + name: "Boolean" } }, monitoringPercentageCompletion: { @@ -1361,259 +1284,280 @@ export const A2AReplicationDetails: msRest.CompositeMapper = { name: "String" } }, - lastHeartbeat: { - serializedName: "lastHeartbeat", + dataPendingInStagingStorageAccountInMB: { + serializedName: "dataPendingInStagingStorageAccountInMB", type: { - name: "DateTime" + name: "Number" } }, - agentVersion: { - serializedName: "agentVersion", + dataPendingAtSourceAgentInMB: { + serializedName: "dataPendingAtSourceAgentInMB", + type: { + name: "Number" + } + }, + diskState: { + serializedName: "diskState", type: { name: "String" } }, - isReplicationAgentUpdateRequired: { - serializedName: "isReplicationAgentUpdateRequired", + allowedDiskLevelOperation: { + serializedName: "allowedDiskLevelOperation", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isDiskEncrypted: { + serializedName: "isDiskEncrypted", type: { name: "Boolean" } }, - recoveryFabricObjectId: { - serializedName: "recoveryFabricObjectId", + secretIdentifier: { + serializedName: "secretIdentifier", type: { name: "String" } }, - vmProtectionState: { - serializedName: "vmProtectionState", + dekKeyVaultArmId: { + serializedName: "dekKeyVaultArmId", type: { name: "String" } }, - vmProtectionStateDescription: { - serializedName: "vmProtectionStateDescription", + isDiskKeyEncrypted: { + serializedName: "isDiskKeyEncrypted", type: { - name: "String" + name: "Boolean" } }, - lifecycleId: { - serializedName: "lifecycleId", + keyIdentifier: { + serializedName: "keyIdentifier", type: { name: "String" } }, - testFailoverRecoveryFabricObjectId: { - serializedName: "testFailoverRecoveryFabricObjectId", + kekKeyVaultArmId: { + serializedName: "kekKeyVaultArmId", type: { name: "String" } }, - rpoInSeconds: { - serializedName: "rpoInSeconds", + failoverDiskName: { + serializedName: "failoverDiskName", type: { - name: "Number" + name: "String" } }, - lastRpoCalculatedTime: { - serializedName: "lastRpoCalculatedTime", + tfoDiskName: { + serializedName: "tfoDiskName", type: { - name: "DateTime" + name: "String" } } } } }; -export const ReverseReplicationProviderSpecificInput: msRest.CompositeMapper = { - serializedName: "ReverseReplicationProviderSpecificInput", +export const A2AProtectedManagedDiskDetails: msRest.CompositeMapper = { + serializedName: "A2AProtectedManagedDiskDetails", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "ReverseReplicationProviderSpecificInput", - className: "ReverseReplicationProviderSpecificInput", + className: "A2AProtectedManagedDiskDetails", modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + diskId: { + serializedName: "diskId", type: { name: "String" } - } - } - } -}; - -export const A2AReprotectInput: msRest.CompositeMapper = { - serializedName: "A2A", - type: { - name: "Composite", - polymorphicDiscriminator: ReverseReplicationProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "ReverseReplicationProviderSpecificInput", - className: "A2AReprotectInput", - modelProperties: { - ...ReverseReplicationProviderSpecificInput.type.modelProperties, - recoveryContainerId: { - serializedName: "recoveryContainerId", + }, + recoveryResourceGroupId: { + serializedName: "recoveryResourceGroupId", type: { name: "String" } }, - vmDisks: { - serializedName: "vmDisks", + recoveryTargetDiskId: { + serializedName: "recoveryTargetDiskId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "A2AVmDiskInputDetails" - } - } + name: "String" } }, - recoveryResourceGroupId: { - serializedName: "recoveryResourceGroupId", + recoveryReplicaDiskId: { + serializedName: "recoveryReplicaDiskId", type: { name: "String" } }, - recoveryCloudServiceId: { - serializedName: "recoveryCloudServiceId", + recoveryOrignalTargetDiskId: { + serializedName: "recoveryOrignalTargetDiskId", type: { name: "String" } }, - recoveryAvailabilitySetId: { - serializedName: "recoveryAvailabilitySetId", + recoveryReplicaDiskAccountType: { + serializedName: "recoveryReplicaDiskAccountType", type: { name: "String" } }, - policyId: { - serializedName: "policyId", + recoveryTargetDiskAccountType: { + serializedName: "recoveryTargetDiskAccountType", type: { name: "String" } - } - } - } -}; - -export const SwitchProtectionProviderSpecificInput: msRest.CompositeMapper = { - serializedName: "SwitchProtectionProviderSpecificInput", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "SwitchProtectionProviderSpecificInput", - className: "SwitchProtectionProviderSpecificInput", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + }, + recoveryDiskEncryptionSetId: { + serializedName: "recoveryDiskEncryptionSetId", type: { name: "String" } - } - } - } -}; - -export const A2ASwitchProtectionInput: msRest.CompositeMapper = { - serializedName: "A2A", - type: { - name: "Composite", - polymorphicDiscriminator: SwitchProtectionProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "SwitchProtectionProviderSpecificInput", - className: "A2ASwitchProtectionInput", - modelProperties: { - ...SwitchProtectionProviderSpecificInput.type.modelProperties, - recoveryContainerId: { - serializedName: "recoveryContainerId", + }, + primaryDiskEncryptionSetId: { + serializedName: "primaryDiskEncryptionSetId", type: { name: "String" } }, - vmDisks: { - serializedName: "vmDisks", + diskName: { + serializedName: "diskName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "A2AVmDiskInputDetails" - } - } + name: "String" } }, - vmManagedDisks: { - serializedName: "vmManagedDisks", + diskCapacityInBytes: { + serializedName: "diskCapacityInBytes", + type: { + name: "Number" + } + }, + primaryStagingAzureStorageAccountId: { + serializedName: "primaryStagingAzureStorageAccountId", + type: { + name: "String" + } + }, + diskType: { + serializedName: "diskType", + type: { + name: "String" + } + }, + resyncRequired: { + serializedName: "resyncRequired", + type: { + name: "Boolean" + } + }, + monitoringPercentageCompletion: { + serializedName: "monitoringPercentageCompletion", + type: { + name: "Number" + } + }, + monitoringJobType: { + serializedName: "monitoringJobType", + type: { + name: "String" + } + }, + dataPendingInStagingStorageAccountInMB: { + serializedName: "dataPendingInStagingStorageAccountInMB", + type: { + name: "Number" + } + }, + dataPendingAtSourceAgentInMB: { + serializedName: "dataPendingAtSourceAgentInMB", + type: { + name: "Number" + } + }, + diskState: { + serializedName: "diskState", + type: { + name: "String" + } + }, + allowedDiskLevelOperation: { + serializedName: "allowedDiskLevelOperation", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "A2AVmManagedDiskInputDetails" + name: "String" } } } }, - recoveryResourceGroupId: { - serializedName: "recoveryResourceGroupId", + isDiskEncrypted: { + serializedName: "isDiskEncrypted", + type: { + name: "Boolean" + } + }, + secretIdentifier: { + serializedName: "secretIdentifier", type: { name: "String" } }, - recoveryCloudServiceId: { - serializedName: "recoveryCloudServiceId", + dekKeyVaultArmId: { + serializedName: "dekKeyVaultArmId", type: { name: "String" } }, - recoveryAvailabilitySetId: { - serializedName: "recoveryAvailabilitySetId", + isDiskKeyEncrypted: { + serializedName: "isDiskKeyEncrypted", + type: { + name: "Boolean" + } + }, + keyIdentifier: { + serializedName: "keyIdentifier", type: { name: "String" } }, - policyId: { - serializedName: "policyId", + kekKeyVaultArmId: { + serializedName: "kekKeyVaultArmId", type: { name: "String" } }, - recoveryBootDiagStorageAccountId: { - serializedName: "recoveryBootDiagStorageAccountId", + failoverDiskName: { + serializedName: "failoverDiskName", type: { name: "String" } }, - diskEncryptionInfo: { - serializedName: "diskEncryptionInfo", + tfoDiskName: { + serializedName: "tfoDiskName", type: { - name: "Composite", - className: "DiskEncryptionInfo" + name: "String" } } } } }; -export const ReplicationProviderSpecificUpdateContainerMappingInput: msRest.CompositeMapper = { - serializedName: "ReplicationProviderSpecificUpdateContainerMappingInput", +export const ProtectionContainerMappingProviderSpecificDetails: msRest.CompositeMapper = { + serializedName: "ProtectionContainerMappingProviderSpecificDetails", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType" }, - uberParent: "ReplicationProviderSpecificUpdateContainerMappingInput", - className: "ReplicationProviderSpecificUpdateContainerMappingInput", + uberParent: "ProtectionContainerMappingProviderSpecificDetails", + className: "ProtectionContainerMappingProviderSpecificDetails", modelProperties: { instanceType: { required: true, @@ -1626,15 +1570,15 @@ export const ReplicationProviderSpecificUpdateContainerMappingInput: msRest.Comp } }; -export const A2AUpdateContainerMappingInput: msRest.CompositeMapper = { +export const A2AProtectionContainerMappingDetails: msRest.CompositeMapper = { serializedName: "A2A", type: { name: "Composite", - polymorphicDiscriminator: ReplicationProviderSpecificUpdateContainerMappingInput.type.polymorphicDiscriminator, - uberParent: "ReplicationProviderSpecificUpdateContainerMappingInput", - className: "A2AUpdateContainerMappingInput", + polymorphicDiscriminator: ProtectionContainerMappingProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "ProtectionContainerMappingProviderSpecificDetails", + className: "A2AProtectionContainerMappingDetails", modelProperties: { - ...ReplicationProviderSpecificUpdateContainerMappingInput.type.modelProperties, + ...ProtectionContainerMappingProviderSpecificDetails.type.modelProperties, agentAutoUpdateStatus: { serializedName: "agentAutoUpdateStatus", type: { @@ -1646,31 +1590,15 @@ export const A2AUpdateContainerMappingInput: msRest.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const A2AVmManagedDiskUpdateDetails: msRest.CompositeMapper = { - serializedName: "A2AVmManagedDiskUpdateDetails", - type: { - name: "Composite", - className: "A2AVmManagedDiskUpdateDetails", - modelProperties: { - diskId: { - serializedName: "diskId", - type: { - name: "String" - } }, - recoveryTargetDiskAccountType: { - serializedName: "recoveryTargetDiskAccountType", + scheduleName: { + serializedName: "scheduleName", type: { name: "String" } }, - recoveryReplicaDiskAccountType: { - serializedName: "recoveryReplicaDiskAccountType", + jobScheduleName: { + serializedName: "jobScheduleName", type: { name: "String" } @@ -1679,16 +1607,16 @@ export const A2AVmManagedDiskUpdateDetails: msRest.CompositeMapper = { } }; -export const UpdateReplicationProtectedItemProviderInput: msRest.CompositeMapper = { - serializedName: "UpdateReplicationProtectedItemProviderInput", +export const ProviderSpecificRecoveryPointDetails: msRest.CompositeMapper = { + serializedName: "ProviderSpecificRecoveryPointDetails", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "instanceType", clientName: "instanceType" }, - uberParent: "UpdateReplicationProtectedItemProviderInput", - className: "UpdateReplicationProtectedItemProviderInput", + uberParent: "ProviderSpecificRecoveryPointDetails", + className: "ProviderSpecificRecoveryPointDetails", modelProperties: { instanceType: { required: true, @@ -1701,88 +1629,50 @@ export const UpdateReplicationProtectedItemProviderInput: msRest.CompositeMapper } }; -export const A2AUpdateReplicationProtectedItemInput: msRest.CompositeMapper = { +export const A2ARecoveryPointDetails: msRest.CompositeMapper = { serializedName: "A2A", type: { name: "Composite", - polymorphicDiscriminator: UpdateReplicationProtectedItemProviderInput.type.polymorphicDiscriminator, - uberParent: "UpdateReplicationProtectedItemProviderInput", - className: "A2AUpdateReplicationProtectedItemInput", + polymorphicDiscriminator: ProviderSpecificRecoveryPointDetails.type.polymorphicDiscriminator, + uberParent: "ProviderSpecificRecoveryPointDetails", + className: "A2ARecoveryPointDetails", modelProperties: { - ...UpdateReplicationProtectedItemProviderInput.type.modelProperties, - recoveryCloudServiceId: { - serializedName: "recoveryCloudServiceId", - type: { - name: "String" - } - }, - recoveryResourceGroupId: { - serializedName: "recoveryResourceGroupId", + ...ProviderSpecificRecoveryPointDetails.type.modelProperties, + recoveryPointSyncType: { + serializedName: "recoveryPointSyncType", type: { name: "String" } }, - managedDiskUpdateDetails: { - serializedName: "managedDiskUpdateDetails", + disks: { + serializedName: "disks", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "A2AVmManagedDiskUpdateDetails" + name: "String" } } } - }, - recoveryBootDiagStorageAccountId: { - serializedName: "recoveryBootDiagStorageAccountId", - type: { - name: "String" - } - }, - diskEncryptionInfo: { - serializedName: "diskEncryptionInfo", - type: { - name: "Composite", - className: "DiskEncryptionInfo" - } } } } }; -export const AddVCenterRequestProperties: msRest.CompositeMapper = { - serializedName: "AddVCenterRequestProperties", +export const RemoveDisksProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "RemoveDisksProviderSpecificInput", type: { name: "Composite", - className: "AddVCenterRequestProperties", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "RemoveDisksProviderSpecificInput", + className: "RemoveDisksProviderSpecificInput", modelProperties: { - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - ipAddress: { - serializedName: "ipAddress", - type: { - name: "String" - } - }, - processServerId: { - serializedName: "processServerId", - type: { - name: "String" - } - }, - port: { - serializedName: "port", - type: { - name: "String" - } - }, - runAsAccountId: { - serializedName: "runAsAccountId", + instanceType: { + required: true, + serializedName: "instanceType", type: { name: "String" } @@ -1791,48 +1681,55 @@ export const AddVCenterRequestProperties: msRest.CompositeMapper = { } }; -export const AddVCenterRequest: msRest.CompositeMapper = { - serializedName: "AddVCenterRequest", +export const A2ARemoveDisksInput: msRest.CompositeMapper = { + serializedName: "A2A", type: { name: "Composite", - className: "AddVCenterRequest", + polymorphicDiscriminator: RemoveDisksProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "RemoveDisksProviderSpecificInput", + className: "A2ARemoveDisksInput", modelProperties: { - properties: { - serializedName: "properties", + ...RemoveDisksProviderSpecificInput.type.modelProperties, + vmDisksUris: { + serializedName: "vmDisksUris", type: { - name: "Composite", - className: "AddVCenterRequestProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + vmManagedDisksIds: { + serializedName: "vmManagedDisksIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const AlertProperties: msRest.CompositeMapper = { - serializedName: "AlertProperties", +export const A2AUnprotectedDiskDetails: msRest.CompositeMapper = { + serializedName: "A2AUnprotectedDiskDetails", type: { name: "Composite", - className: "AlertProperties", + className: "A2AUnprotectedDiskDetails", modelProperties: { - sendToOwners: { - serializedName: "sendToOwners", + diskLunId: { + serializedName: "diskLunId", type: { - name: "String" - } - }, - customEmailAddresses: { - serializedName: "customEmailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - locale: { - serializedName: "locale", + diskAutoProtectionStatus: { + serializedName: "diskAutoProtectionStatus", type: { name: "String" } @@ -1841,412 +1738,301 @@ export const AlertProperties: msRest.CompositeMapper = { } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const IPConfigDetails: msRest.CompositeMapper = { + serializedName: "IPConfigDetails", type: { name: "Composite", - className: "Resource", + className: "IPConfigDetails", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + name: { + serializedName: "name", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + isPrimary: { + serializedName: "isPrimary", + type: { + name: "Boolean" + } + }, + subnetName: { + serializedName: "subnetName", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + staticIPAddress: { + serializedName: "staticIPAddress", type: { name: "String" } }, - location: { - serializedName: "location", + ipAddressType: { + serializedName: "ipAddressType", type: { name: "String" } - } - } - } -}; - -export const Alert: msRest.CompositeMapper = { - serializedName: "Alert", - type: { - name: "Composite", - className: "Alert", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + isSeletedForFailover: { + serializedName: "isSeletedForFailover", type: { - name: "Composite", - className: "AlertProperties" + name: "Boolean" } - } - } - } -}; - -export const ApplyRecoveryPointInputProperties: msRest.CompositeMapper = { - serializedName: "ApplyRecoveryPointInputProperties", - type: { - name: "Composite", - className: "ApplyRecoveryPointInputProperties", - modelProperties: { - recoveryPointId: { - serializedName: "recoveryPointId", + }, + recoverySubnetName: { + serializedName: "recoverySubnetName", type: { name: "String" } }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + recoveryStaticIPAddress: { + serializedName: "recoveryStaticIPAddress", type: { - name: "Composite", - className: "ApplyRecoveryPointProviderSpecificInput" + name: "String" } - } - } - } -}; - -export const ApplyRecoveryPointInput: msRest.CompositeMapper = { - serializedName: "ApplyRecoveryPointInput", - type: { - name: "Composite", - className: "ApplyRecoveryPointInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + recoveryIPAddressType: { + serializedName: "recoveryIPAddressType", type: { - name: "Composite", - className: "ApplyRecoveryPointInputProperties" + name: "String" } - } - } - } -}; - -export const JobDetails: msRest.CompositeMapper = { - serializedName: "JobDetails", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "JobDetails", - className: "JobDetails", - modelProperties: { - affectedObjectDetails: { - serializedName: "affectedObjectDetails", + }, + recoveryPublicIPAddressId: { + serializedName: "recoveryPublicIPAddressId", type: { - name: "Dictionary", - value: { + name: "String" + } + }, + recoveryLBBackendAddressPoolIds: { + serializedName: "recoveryLBBackendAddressPoolIds", + type: { + name: "Sequence", + element: { type: { name: "String" } } } }, - instanceType: { - required: true, - serializedName: "instanceType", + tfoSubnetName: { + serializedName: "tfoSubnetName", type: { name: "String" } - } - } - } -}; - -export const AsrJobDetails: msRest.CompositeMapper = { - serializedName: "AsrJobDetails", - type: { - name: "Composite", - polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, - uberParent: "JobDetails", - className: "AsrJobDetails", - modelProperties: { - ...JobDetails.type.modelProperties - } - } -}; - -export const TaskTypeDetails: msRest.CompositeMapper = { - serializedName: "TaskTypeDetails", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "TaskTypeDetails", - className: "TaskTypeDetails", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + }, + tfoStaticIPAddress: { + serializedName: "tfoStaticIPAddress", type: { name: "String" } - } - } - } -}; - -export const GroupTaskDetails: msRest.CompositeMapper = { - serializedName: "GroupTaskDetails", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "GroupTaskDetails", - className: "GroupTaskDetails", - modelProperties: { - childTasks: { - serializedName: "childTasks", + }, + tfoPublicIPAddressId: { + serializedName: "tfoPublicIPAddressId", + type: { + name: "String" + } + }, + tfoLBBackendAddressPoolIds: { + serializedName: "tfoLBBackendAddressPoolIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ASRTask" + name: "String" } } } - }, - instanceType: { - required: true, - serializedName: "instanceType", - type: { - name: "String" - } } } } }; -export const ServiceError: msRest.CompositeMapper = { - serializedName: "ServiceError", +export const VMNicDetails: msRest.CompositeMapper = { + serializedName: "VMNicDetails", type: { name: "Composite", - className: "ServiceError", + className: "VMNicDetails", modelProperties: { - code: { - serializedName: "code", + nicId: { + serializedName: "nicId", type: { name: "String" } }, - message: { - serializedName: "message", - type: { + replicaNicId: { + serializedName: "replicaNicId", + type: { name: "String" } }, - possibleCauses: { - serializedName: "possibleCauses", + sourceNicArmId: { + serializedName: "sourceNicArmId", type: { name: "String" } }, - recommendedAction: { - serializedName: "recommendedAction", + vMNetworkName: { + serializedName: "vMNetworkName", type: { name: "String" } }, - activityId: { - serializedName: "activityId", + recoveryVMNetworkId: { + serializedName: "recoveryVMNetworkId", type: { name: "String" } - } - } - } -}; - -export const ProviderError: msRest.CompositeMapper = { - serializedName: "ProviderError", - type: { - name: "Composite", - className: "ProviderError", - modelProperties: { - errorCode: { - serializedName: "errorCode", + }, + ipConfigs: { + serializedName: "ipConfigs", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPConfigDetails" + } + } } }, - errorMessage: { - serializedName: "errorMessage", + selectionType: { + serializedName: "selectionType", type: { name: "String" } }, - errorId: { - serializedName: "errorId", + recoveryNetworkSecurityGroupId: { + serializedName: "recoveryNetworkSecurityGroupId", type: { name: "String" } }, - possibleCauses: { - serializedName: "possibleCauses", + enableAcceleratedNetworkingOnRecovery: { + serializedName: "enableAcceleratedNetworkingOnRecovery", + type: { + name: "Boolean" + } + }, + tfoVMNetworkId: { + serializedName: "tfoVMNetworkId", type: { name: "String" } }, - recommendedAction: { - serializedName: "recommendedAction", + tfoNetworkSecurityGroupId: { + serializedName: "tfoNetworkSecurityGroupId", type: { name: "String" } - } - } - } -}; - -export const JobErrorDetails: msRest.CompositeMapper = { - serializedName: "JobErrorDetails", - type: { - name: "Composite", - className: "JobErrorDetails", - modelProperties: { - serviceErrorDetails: { - serializedName: "serviceErrorDetails", + }, + enableAcceleratedNetworkingOnTfo: { + serializedName: "enableAcceleratedNetworkingOnTfo", type: { - name: "Composite", - className: "ServiceError" + name: "Boolean" } }, - providerErrorDetails: { - serializedName: "providerErrorDetails", + recoveryNicName: { + serializedName: "recoveryNicName", type: { - name: "Composite", - className: "ProviderError" + name: "String" } }, - errorLevel: { - serializedName: "errorLevel", + recoveryNicResourceGroupName: { + serializedName: "recoveryNicResourceGroupName", type: { name: "String" } }, - creationTime: { - serializedName: "creationTime", + reuseExistingNic: { + serializedName: "reuseExistingNic", + defaultValue: false, type: { - name: "DateTime" + name: "Boolean" } }, - taskId: { - serializedName: "taskId", + tfoRecoveryNicName: { + serializedName: "tfoRecoveryNicName", + type: { + name: "String" + } + }, + tfoRecoveryNicResourceGroupName: { + serializedName: "tfoRecoveryNicResourceGroupName", type: { name: "String" } + }, + tfoReuseExistingNic: { + serializedName: "tfoReuseExistingNic", + defaultValue: false, + type: { + name: "Boolean" + } } } } }; -export const ASRTask: msRest.CompositeMapper = { - serializedName: "ASRTask", +export const InputEndpoint: msRest.CompositeMapper = { + serializedName: "InputEndpoint", type: { name: "Composite", - className: "ASRTask", + className: "InputEndpoint", modelProperties: { - taskId: { - serializedName: "taskId", + endpointName: { + serializedName: "endpointName", type: { name: "String" } }, - name: { - serializedName: "name", + privatePort: { + serializedName: "privatePort", type: { - name: "String" + name: "Number" } }, - startTime: { - serializedName: "startTime", + publicPort: { + serializedName: "publicPort", type: { - name: "DateTime" + name: "Number" } }, - endTime: { - serializedName: "endTime", + protocol: { + serializedName: "protocol", type: { - name: "DateTime" + name: "String" } - }, - allowedActions: { - serializedName: "allowedActions", + } + } + } +}; + +export const AzureToAzureVmSyncedConfigDetails: msRest.CompositeMapper = { + serializedName: "AzureToAzureVmSyncedConfigDetails", + type: { + name: "Composite", + className: "AzureToAzureVmSyncedConfigDetails", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "String" } } } }, - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } - }, - stateDescription: { - serializedName: "stateDescription", - type: { - name: "String" - } - }, - taskType: { - serializedName: "taskType", - type: { - name: "String" - } - }, - customDetails: { - serializedName: "customDetails", - type: { - name: "Composite", - className: "TaskTypeDetails" - } - }, - groupTaskCustomDetails: { - serializedName: "groupTaskCustomDetails", - type: { - name: "Composite", - className: "GroupTaskDetails" - } - }, - errors: { - serializedName: "errors", + inputEndpoints: { + serializedName: "inputEndpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JobErrorDetails" + className: "InputEndpoint" } } } @@ -2255,180 +2041,8483 @@ export const ASRTask: msRest.CompositeMapper = { } }; -export const AutomationRunbookTaskDetails: msRest.CompositeMapper = { - serializedName: "AutomationRunbookTaskDetails", +export const A2AReplicationDetails: msRest.CompositeMapper = { + serializedName: "A2A", type: { name: "Composite", - polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, - uberParent: "TaskTypeDetails", - className: "AutomationRunbookTaskDetails", + polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificSettings", + className: "A2AReplicationDetails", modelProperties: { - ...TaskTypeDetails.type.modelProperties, - name: { - serializedName: "name", + ...ReplicationProviderSpecificSettings.type.modelProperties, + fabricObjectId: { + serializedName: "fabricObjectId", type: { name: "String" } }, - cloudServiceName: { - serializedName: "cloudServiceName", + initialPrimaryZone: { + readOnly: true, + serializedName: "initialPrimaryZone", type: { name: "String" } }, - subscriptionId: { - serializedName: "subscriptionId", + initialPrimaryFabricLocation: { + readOnly: true, + serializedName: "initialPrimaryFabricLocation", type: { name: "String" } }, - accountName: { - serializedName: "accountName", + initialRecoveryZone: { + readOnly: true, + serializedName: "initialRecoveryZone", type: { name: "String" } }, - runbookId: { - serializedName: "runbookId", + initialRecoveryFabricLocation: { + readOnly: true, + serializedName: "initialRecoveryFabricLocation", type: { name: "String" } }, - runbookName: { - serializedName: "runbookName", + multiVmGroupId: { + serializedName: "multiVmGroupId", type: { name: "String" } }, - jobId: { - serializedName: "jobId", + multiVmGroupName: { + serializedName: "multiVmGroupName", type: { name: "String" } }, - jobOutput: { - serializedName: "jobOutput", + multiVmGroupCreateOption: { + serializedName: "multiVmGroupCreateOption", type: { name: "String" } }, - isPrimarySideScript: { - serializedName: "isPrimarySideScript", - type: { - name: "Boolean" - } - } - } - } -}; - -export const FabricSpecificCreationInput: msRest.CompositeMapper = { - serializedName: "FabricSpecificCreationInput", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "FabricSpecificCreationInput", - className: "FabricSpecificCreationInput", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + managementId: { + serializedName: "managementId", type: { name: "String" } - } - } - } -}; - -export const AzureFabricCreationInput: msRest.CompositeMapper = { - serializedName: "Azure", - type: { + }, + protectedDisks: { + serializedName: "protectedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AProtectedDiskDetails" + } + } + } + }, + unprotectedDisks: { + serializedName: "unprotectedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AUnprotectedDiskDetails" + } + } + } + }, + protectedManagedDisks: { + serializedName: "protectedManagedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AProtectedManagedDiskDetails" + } + } + } + }, + recoveryBootDiagStorageAccountId: { + serializedName: "recoveryBootDiagStorageAccountId", + type: { + name: "String" + } + }, + primaryFabricLocation: { + serializedName: "primaryFabricLocation", + type: { + name: "String" + } + }, + recoveryFabricLocation: { + serializedName: "recoveryFabricLocation", + type: { + name: "String" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + recoveryAzureVMSize: { + serializedName: "recoveryAzureVMSize", + type: { + name: "String" + } + }, + recoveryAzureVMName: { + serializedName: "recoveryAzureVMName", + type: { + name: "String" + } + }, + recoveryAzureResourceGroupId: { + serializedName: "recoveryAzureResourceGroupId", + type: { + name: "String" + } + }, + recoveryCloudService: { + serializedName: "recoveryCloudService", + type: { + name: "String" + } + }, + recoveryAvailabilitySet: { + serializedName: "recoveryAvailabilitySet", + type: { + name: "String" + } + }, + selectedRecoveryAzureNetworkId: { + serializedName: "selectedRecoveryAzureNetworkId", + type: { + name: "String" + } + }, + selectedTfoAzureNetworkId: { + serializedName: "selectedTfoAzureNetworkId", + type: { + name: "String" + } + }, + vmNics: { + serializedName: "vmNics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMNicDetails" + } + } + } + }, + vmSyncedConfigDetails: { + serializedName: "vmSyncedConfigDetails", + type: { + name: "Composite", + className: "AzureToAzureVmSyncedConfigDetails" + } + }, + monitoringPercentageCompletion: { + serializedName: "monitoringPercentageCompletion", + type: { + name: "Number" + } + }, + monitoringJobType: { + serializedName: "monitoringJobType", + type: { + name: "String" + } + }, + lastHeartbeat: { + serializedName: "lastHeartbeat", + type: { + name: "DateTime" + } + }, + agentVersion: { + serializedName: "agentVersion", + type: { + name: "String" + } + }, + agentExpiryDate: { + serializedName: "agentExpiryDate", + type: { + name: "DateTime" + } + }, + isReplicationAgentUpdateRequired: { + serializedName: "isReplicationAgentUpdateRequired", + type: { + name: "Boolean" + } + }, + agentCertificateExpiryDate: { + readOnly: true, + serializedName: "agentCertificateExpiryDate", + type: { + name: "DateTime" + } + }, + isReplicationAgentCertificateUpdateRequired: { + serializedName: "isReplicationAgentCertificateUpdateRequired", + type: { + name: "Boolean" + } + }, + recoveryFabricObjectId: { + serializedName: "recoveryFabricObjectId", + type: { + name: "String" + } + }, + vmProtectionState: { + serializedName: "vmProtectionState", + type: { + name: "String" + } + }, + vmProtectionStateDescription: { + serializedName: "vmProtectionStateDescription", + type: { + name: "String" + } + }, + lifecycleId: { + serializedName: "lifecycleId", + type: { + name: "String" + } + }, + testFailoverRecoveryFabricObjectId: { + serializedName: "testFailoverRecoveryFabricObjectId", + type: { + name: "String" + } + }, + rpoInSeconds: { + serializedName: "rpoInSeconds", + type: { + name: "Number" + } + }, + lastRpoCalculatedTime: { + serializedName: "lastRpoCalculatedTime", + type: { + name: "DateTime" + } + }, + primaryAvailabilityZone: { + serializedName: "primaryAvailabilityZone", + type: { + name: "String" + } + }, + recoveryAvailabilityZone: { + serializedName: "recoveryAvailabilityZone", + type: { + name: "String" + } + }, + vmEncryptionType: { + readOnly: true, + serializedName: "vmEncryptionType", + type: { + name: "String" + } + }, + tfoAzureVMName: { + serializedName: "tfoAzureVMName", + type: { + name: "String" + } + }, + recoveryAzureGeneration: { + readOnly: true, + serializedName: "recoveryAzureGeneration", + type: { + name: "String" + } + }, + recoveryProximityPlacementGroupId: { + serializedName: "recoveryProximityPlacementGroupId", + type: { + name: "String" + } + }, + autoProtectionOfDataDisk: { + serializedName: "autoProtectionOfDataDisk", + type: { + name: "String" + } + }, + recoveryVirtualMachineScaleSetId: { + serializedName: "recoveryVirtualMachineScaleSetId", + type: { + name: "String" + } + } + } + } +}; + +export const ReplicationProtectionIntentProviderSpecificSettings: msRest.CompositeMapper = { + serializedName: "ReplicationProtectionIntentProviderSpecificSettings", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "ReplicationProtectionIntentProviderSpecificSettings", + className: "ReplicationProtectionIntentProviderSpecificSettings", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const A2AReplicationIntentDetails: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: ReplicationProtectionIntentProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProtectionIntentProviderSpecificSettings", + className: "A2AReplicationIntentDetails", + modelProperties: { + ...ReplicationProtectionIntentProviderSpecificSettings.type.modelProperties, + fabricObjectId: { + serializedName: "fabricObjectId", + type: { + name: "String" + } + }, + primaryLocation: { + serializedName: "primaryLocation", + type: { + name: "String" + } + }, + recoveryLocation: { + serializedName: "recoveryLocation", + type: { + name: "String" + } + }, + recoverySubscriptionId: { + serializedName: "recoverySubscriptionId", + type: { + name: "String" + } + }, + vmDisks: { + serializedName: "vmDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AProtectionIntentDiskInputDetails" + } + } + } + }, + vmManagedDisks: { + serializedName: "vmManagedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AProtectionIntentManagedDiskInputDetails" + } + } + } + }, + recoveryResourceGroupId: { + serializedName: "recoveryResourceGroupId", + type: { + name: "String" + } + }, + protectionProfile: { + serializedName: "protectionProfile", + type: { + name: "Composite", + className: "ProtectionProfileCustomDetails" + } + }, + primaryStagingStorageAccount: { + serializedName: "primaryStagingStorageAccount", + type: { + name: "Composite", + className: "StorageAccountCustomDetails" + } + }, + recoveryAvailabilitySet: { + serializedName: "recoveryAvailabilitySet", + type: { + name: "Composite", + className: "RecoveryAvailabilitySetCustomDetails" + } + }, + recoveryVirtualNetwork: { + serializedName: "recoveryVirtualNetwork", + type: { + name: "Composite", + className: "RecoveryVirtualNetworkCustomDetails" + } + }, + recoveryProximityPlacementGroup: { + serializedName: "recoveryProximityPlacementGroup", + type: { + name: "Composite", + className: "RecoveryProximityPlacementGroupCustomDetails" + } + }, + autoProtectionOfDataDisk: { + serializedName: "autoProtectionOfDataDisk", + type: { + name: "String" + } + }, + multiVmGroupName: { + serializedName: "multiVmGroupName", + type: { + name: "String" + } + }, + multiVmGroupId: { + serializedName: "multiVmGroupId", + type: { + name: "String" + } + }, + recoveryBootDiagStorageAccount: { + serializedName: "recoveryBootDiagStorageAccount", + type: { + name: "Composite", + className: "StorageAccountCustomDetails" + } + }, + diskEncryptionInfo: { + serializedName: "diskEncryptionInfo", + type: { + name: "Composite", + className: "DiskEncryptionInfo" + } + }, + recoveryAvailabilityZone: { + serializedName: "recoveryAvailabilityZone", + type: { + name: "String" + } + }, + recoveryAvailabilityType: { + required: true, + serializedName: "recoveryAvailabilityType", + type: { + name: "String" + } + } + } + } +}; + +export const ReverseReplicationProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "ReverseReplicationProviderSpecificInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "ReverseReplicationProviderSpecificInput", + className: "ReverseReplicationProviderSpecificInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const A2AReprotectInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: ReverseReplicationProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ReverseReplicationProviderSpecificInput", + className: "A2AReprotectInput", + modelProperties: { + ...ReverseReplicationProviderSpecificInput.type.modelProperties, + recoveryContainerId: { + serializedName: "recoveryContainerId", + type: { + name: "String" + } + }, + vmDisks: { + serializedName: "vmDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AVmDiskInputDetails" + } + } + } + }, + recoveryResourceGroupId: { + serializedName: "recoveryResourceGroupId", + type: { + name: "String" + } + }, + recoveryCloudServiceId: { + serializedName: "recoveryCloudServiceId", + type: { + name: "String" + } + }, + recoveryAvailabilitySetId: { + serializedName: "recoveryAvailabilitySetId", + type: { + name: "String" + } + }, + policyId: { + serializedName: "policyId", + type: { + name: "String" + } + } + } + } +}; + +export const SwitchProtectionProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "SwitchProtectionProviderSpecificInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "SwitchProtectionProviderSpecificInput", + className: "SwitchProtectionProviderSpecificInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const A2ASwitchProtectionInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: SwitchProtectionProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "SwitchProtectionProviderSpecificInput", + className: "A2ASwitchProtectionInput", + modelProperties: { + ...SwitchProtectionProviderSpecificInput.type.modelProperties, + recoveryContainerId: { + serializedName: "recoveryContainerId", + type: { + name: "String" + } + }, + vmDisks: { + serializedName: "vmDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AVmDiskInputDetails" + } + } + } + }, + vmManagedDisks: { + serializedName: "vmManagedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AVmManagedDiskInputDetails" + } + } + } + }, + recoveryResourceGroupId: { + serializedName: "recoveryResourceGroupId", + type: { + name: "String" + } + }, + recoveryCloudServiceId: { + serializedName: "recoveryCloudServiceId", + type: { + name: "String" + } + }, + recoveryAvailabilitySetId: { + serializedName: "recoveryAvailabilitySetId", + type: { + name: "String" + } + }, + policyId: { + serializedName: "policyId", + type: { + name: "String" + } + }, + recoveryBootDiagStorageAccountId: { + serializedName: "recoveryBootDiagStorageAccountId", + type: { + name: "String" + } + }, + recoveryAvailabilityZone: { + serializedName: "recoveryAvailabilityZone", + type: { + name: "String" + } + }, + recoveryProximityPlacementGroupId: { + serializedName: "recoveryProximityPlacementGroupId", + type: { + name: "String" + } + }, + recoveryVirtualMachineScaleSetId: { + serializedName: "recoveryVirtualMachineScaleSetId", + type: { + name: "String" + } + }, + diskEncryptionInfo: { + serializedName: "diskEncryptionInfo", + type: { + name: "Composite", + className: "DiskEncryptionInfo" + } + } + } + } +}; + +export const TestFailoverProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "TestFailoverProviderSpecificInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "TestFailoverProviderSpecificInput", + className: "TestFailoverProviderSpecificInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const A2ATestFailoverInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "TestFailoverProviderSpecificInput", + className: "A2ATestFailoverInput", + modelProperties: { + ...TestFailoverProviderSpecificInput.type.modelProperties, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + }, + cloudServiceCreationOption: { + serializedName: "cloudServiceCreationOption", + type: { + name: "String" + } + } + } + } +}; + +export const UnplannedFailoverProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "UnplannedFailoverProviderSpecificInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "UnplannedFailoverProviderSpecificInput", + className: "UnplannedFailoverProviderSpecificInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const A2AUnplannedFailoverInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "UnplannedFailoverProviderSpecificInput", + className: "A2AUnplannedFailoverInput", + modelProperties: { + ...UnplannedFailoverProviderSpecificInput.type.modelProperties, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + }, + cloudServiceCreationOption: { + serializedName: "cloudServiceCreationOption", + type: { + name: "String" + } + } + } + } +}; + +export const ReplicationProviderSpecificUpdateContainerMappingInput: msRest.CompositeMapper = { + serializedName: "ReplicationProviderSpecificUpdateContainerMappingInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "ReplicationProviderSpecificUpdateContainerMappingInput", + className: "ReplicationProviderSpecificUpdateContainerMappingInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const A2AUpdateContainerMappingInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: ReplicationProviderSpecificUpdateContainerMappingInput.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificUpdateContainerMappingInput", + className: "A2AUpdateContainerMappingInput", + modelProperties: { + ...ReplicationProviderSpecificUpdateContainerMappingInput.type.modelProperties, + agentAutoUpdateStatus: { + serializedName: "agentAutoUpdateStatus", + type: { + name: "String" + } + }, + automationAccountArmId: { + serializedName: "automationAccountArmId", + type: { + name: "String" + } + } + } + } +}; + +export const A2AVmManagedDiskUpdateDetails: msRest.CompositeMapper = { + serializedName: "A2AVmManagedDiskUpdateDetails", + type: { + name: "Composite", + className: "A2AVmManagedDiskUpdateDetails", + modelProperties: { + diskId: { + serializedName: "diskId", + type: { + name: "String" + } + }, + recoveryTargetDiskAccountType: { + serializedName: "recoveryTargetDiskAccountType", + type: { + name: "String" + } + }, + recoveryReplicaDiskAccountType: { + serializedName: "recoveryReplicaDiskAccountType", + type: { + name: "String" + } + }, + diskEncryptionInfo: { + serializedName: "diskEncryptionInfo", + type: { + name: "Composite", + className: "DiskEncryptionInfo" + } + }, + failoverDiskName: { + serializedName: "failoverDiskName", + type: { + name: "String" + } + }, + tfoDiskName: { + serializedName: "tfoDiskName", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateReplicationProtectedItemProviderInput: msRest.CompositeMapper = { + serializedName: "UpdateReplicationProtectedItemProviderInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "UpdateReplicationProtectedItemProviderInput", + className: "UpdateReplicationProtectedItemProviderInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const A2AUpdateReplicationProtectedItemInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: UpdateReplicationProtectedItemProviderInput.type.polymorphicDiscriminator, + uberParent: "UpdateReplicationProtectedItemProviderInput", + className: "A2AUpdateReplicationProtectedItemInput", + modelProperties: { + ...UpdateReplicationProtectedItemProviderInput.type.modelProperties, + recoveryCloudServiceId: { + serializedName: "recoveryCloudServiceId", + type: { + name: "String" + } + }, + recoveryResourceGroupId: { + serializedName: "recoveryResourceGroupId", + type: { + name: "String" + } + }, + managedDiskUpdateDetails: { + serializedName: "managedDiskUpdateDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AVmManagedDiskUpdateDetails" + } + } + } + }, + recoveryBootDiagStorageAccountId: { + serializedName: "recoveryBootDiagStorageAccountId", + type: { + name: "String" + } + }, + diskEncryptionInfo: { + serializedName: "diskEncryptionInfo", + type: { + name: "Composite", + className: "DiskEncryptionInfo" + } + }, + tfoAzureVMName: { + serializedName: "tfoAzureVMName", + type: { + name: "String" + } + }, + recoveryProximityPlacementGroupId: { + serializedName: "recoveryProximityPlacementGroupId", + type: { + name: "String" + } + }, + recoveryVirtualMachineScaleSetId: { + serializedName: "recoveryVirtualMachineScaleSetId", + type: { + name: "String" + } + } + } + } +}; + +export const A2AZoneDetails: msRest.CompositeMapper = { + serializedName: "A2AZoneDetails", + type: { + name: "Composite", + className: "A2AZoneDetails", + modelProperties: { + source: { + serializedName: "source", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + } + } + } +}; + +export const AddDisksInputProperties: msRest.CompositeMapper = { + serializedName: "AddDisksInputProperties", + type: { + name: "Composite", + className: "AddDisksInputProperties", + modelProperties: { + providerSpecificDetails: { + required: true, + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "AddDisksProviderSpecificInput" + } + } + } + } +}; + +export const AddDisksInput: msRest.CompositeMapper = { + serializedName: "AddDisksInput", + type: { + name: "Composite", + className: "AddDisksInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AddDisksInputProperties" + } + } + } + } +}; + +export const IdentityProviderInput: msRest.CompositeMapper = { + serializedName: "IdentityProviderInput", + type: { + name: "Composite", + className: "IdentityProviderInput", + modelProperties: { + tenantId: { + required: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + applicationId: { + required: true, + serializedName: "applicationId", + type: { + name: "String" + } + }, + objectId: { + required: true, + serializedName: "objectId", + type: { + name: "String" + } + }, + audience: { + required: true, + serializedName: "audience", + type: { + name: "String" + } + }, + aadAuthority: { + required: true, + serializedName: "aadAuthority", + type: { + name: "String" + } + } + } + } +}; + +export const AddRecoveryServicesProviderInputProperties: msRest.CompositeMapper = { + serializedName: "AddRecoveryServicesProviderInputProperties", + type: { + name: "Composite", + className: "AddRecoveryServicesProviderInputProperties", + modelProperties: { + machineName: { + required: true, + serializedName: "machineName", + type: { + name: "String" + } + }, + machineId: { + serializedName: "machineId", + type: { + name: "String" + } + }, + biosId: { + serializedName: "biosId", + type: { + name: "String" + } + }, + authenticationIdentityInput: { + required: true, + serializedName: "authenticationIdentityInput", + type: { + name: "Composite", + className: "IdentityProviderInput" + } + }, + resourceAccessIdentityInput: { + required: true, + serializedName: "resourceAccessIdentityInput", + type: { + name: "Composite", + className: "IdentityProviderInput" + } + }, + dataPlaneAuthenticationIdentityInput: { + serializedName: "dataPlaneAuthenticationIdentityInput", + type: { + name: "Composite", + className: "IdentityProviderInput" + } + } + } + } +}; + +export const AddRecoveryServicesProviderInput: msRest.CompositeMapper = { + serializedName: "AddRecoveryServicesProviderInput", + type: { + name: "Composite", + className: "AddRecoveryServicesProviderInput", + modelProperties: { + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "AddRecoveryServicesProviderInputProperties" + } + } + } + } +}; + +export const AddVCenterRequestProperties: msRest.CompositeMapper = { + serializedName: "AddVCenterRequestProperties", + type: { + name: "Composite", + className: "AddVCenterRequestProperties", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + }, + ipAddress: { + serializedName: "ipAddress", + type: { + name: "String" + } + }, + processServerId: { + serializedName: "processServerId", + type: { + name: "String" + } + }, + port: { + serializedName: "port", + type: { + name: "String" + } + }, + runAsAccountId: { + serializedName: "runAsAccountId", + type: { + name: "String" + } + } + } + } +}; + +export const AddVCenterRequest: msRest.CompositeMapper = { + serializedName: "AddVCenterRequest", + type: { + name: "Composite", + className: "AddVCenterRequest", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AddVCenterRequestProperties" + } + } + } + } +}; + +export const AgentDiskDetails: msRest.CompositeMapper = { + serializedName: "AgentDiskDetails", + type: { + name: "Composite", + className: "AgentDiskDetails", + modelProperties: { + diskId: { + readOnly: true, + serializedName: "diskId", + type: { + name: "String" + } + }, + diskName: { + readOnly: true, + serializedName: "diskName", + type: { + name: "String" + } + }, + isOSDisk: { + readOnly: true, + serializedName: "isOSDisk", + type: { + name: "String" + } + }, + capacityInBytes: { + readOnly: true, + serializedName: "capacityInBytes", + type: { + name: "Number" + } + }, + lunId: { + readOnly: true, + serializedName: "lunId", + type: { + name: "Number" + } + } + } + } +}; + +export const AgentDetails: msRest.CompositeMapper = { + serializedName: "AgentDetails", + type: { + name: "Composite", + className: "AgentDetails", + modelProperties: { + agentId: { + readOnly: true, + serializedName: "agentId", + type: { + name: "String" + } + }, + machineId: { + readOnly: true, + serializedName: "machineId", + type: { + name: "String" + } + }, + biosId: { + readOnly: true, + serializedName: "biosId", + type: { + name: "String" + } + }, + fqdn: { + readOnly: true, + serializedName: "fqdn", + type: { + name: "String" + } + }, + disks: { + readOnly: true, + serializedName: "disks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AgentDiskDetails" + } + } + } + } + } + } +}; + +export const AlertProperties: msRest.CompositeMapper = { + serializedName: "AlertProperties", + type: { + name: "Composite", + className: "AlertProperties", + modelProperties: { + sendToOwners: { + serializedName: "sendToOwners", + type: { + name: "String" + } + }, + customEmailAddresses: { + serializedName: "customEmailAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locale: { + serializedName: "locale", + type: { + name: "String" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const Alert: msRest.CompositeMapper = { + serializedName: "Alert", + type: { + name: "Composite", + className: "Alert", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AlertProperties" + } + } + } + } +}; + +export const ApplyRecoveryPointInputProperties: msRest.CompositeMapper = { + serializedName: "ApplyRecoveryPointInputProperties", + type: { + name: "Composite", + className: "ApplyRecoveryPointInputProperties", + modelProperties: { + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + }, + providerSpecificDetails: { + required: true, + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "ApplyRecoveryPointProviderSpecificInput" + } + } + } + } +}; + +export const ApplyRecoveryPointInput: msRest.CompositeMapper = { + serializedName: "ApplyRecoveryPointInput", + type: { + name: "Composite", + className: "ApplyRecoveryPointInput", + modelProperties: { + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "ApplyRecoveryPointInputProperties" + } + } + } + } +}; + +export const JobDetails: msRest.CompositeMapper = { + serializedName: "JobDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "JobDetails", + className: "JobDetails", + modelProperties: { + affectedObjectDetails: { + serializedName: "affectedObjectDetails", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const AsrJobDetails: msRest.CompositeMapper = { + serializedName: "AsrJobDetails", + type: { + name: "Composite", + polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, + uberParent: "JobDetails", + className: "AsrJobDetails", + modelProperties: { + ...JobDetails.type.modelProperties + } + } +}; + +export const TaskTypeDetails: msRest.CompositeMapper = { + serializedName: "TaskTypeDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "TaskTypeDetails", + className: "TaskTypeDetails", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const GroupTaskDetails: msRest.CompositeMapper = { + serializedName: "GroupTaskDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "GroupTaskDetails", + className: "GroupTaskDetails", + modelProperties: { + childTasks: { + serializedName: "childTasks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ASRTask" + } + } + } + }, + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceError: msRest.CompositeMapper = { + serializedName: "ServiceError", + type: { + name: "Composite", + className: "ServiceError", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + possibleCauses: { + serializedName: "possibleCauses", + type: { + name: "String" + } + }, + recommendedAction: { + serializedName: "recommendedAction", + type: { + name: "String" + } + }, + activityId: { + serializedName: "activityId", + type: { + name: "String" + } + } + } + } +}; + +export const ProviderError: msRest.CompositeMapper = { + serializedName: "ProviderError", + type: { + name: "Composite", + className: "ProviderError", + modelProperties: { + errorCode: { + serializedName: "errorCode", + type: { + name: "Number" + } + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + }, + errorId: { + serializedName: "errorId", + type: { + name: "String" + } + }, + possibleCauses: { + serializedName: "possibleCauses", + type: { + name: "String" + } + }, + recommendedAction: { + serializedName: "recommendedAction", + type: { + name: "String" + } + } + } + } +}; + +export const JobErrorDetails: msRest.CompositeMapper = { + serializedName: "JobErrorDetails", + type: { + name: "Composite", + className: "JobErrorDetails", + modelProperties: { + serviceErrorDetails: { + serializedName: "serviceErrorDetails", + type: { + name: "Composite", + className: "ServiceError" + } + }, + providerErrorDetails: { + serializedName: "providerErrorDetails", + type: { + name: "Composite", + className: "ProviderError" + } + }, + errorLevel: { + serializedName: "errorLevel", + type: { + name: "String" + } + }, + creationTime: { + serializedName: "creationTime", + type: { + name: "DateTime" + } + }, + taskId: { + serializedName: "taskId", + type: { + name: "String" + } + } + } + } +}; + +export const ASRTask: msRest.CompositeMapper = { + serializedName: "ASRTask", + type: { + name: "Composite", + className: "ASRTask", + modelProperties: { + taskId: { + serializedName: "taskId", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + allowedActions: { + serializedName: "allowedActions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + stateDescription: { + serializedName: "stateDescription", + type: { + name: "String" + } + }, + taskType: { + serializedName: "taskType", + type: { + name: "String" + } + }, + customDetails: { + serializedName: "customDetails", + type: { + name: "Composite", + className: "TaskTypeDetails" + } + }, + groupTaskCustomDetails: { + serializedName: "groupTaskCustomDetails", + type: { + name: "Composite", + className: "GroupTaskDetails" + } + }, + errors: { + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobErrorDetails" + } + } + } + } + } + } +}; + +export const AutomationRunbookTaskDetails: msRest.CompositeMapper = { + serializedName: "AutomationRunbookTaskDetails", + type: { + name: "Composite", + polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, + uberParent: "TaskTypeDetails", + className: "AutomationRunbookTaskDetails", + modelProperties: { + ...TaskTypeDetails.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + cloudServiceName: { + serializedName: "cloudServiceName", + type: { + name: "String" + } + }, + subscriptionId: { + serializedName: "subscriptionId", + type: { + name: "String" + } + }, + accountName: { + serializedName: "accountName", + type: { + name: "String" + } + }, + runbookId: { + serializedName: "runbookId", + type: { + name: "String" + } + }, + runbookName: { + serializedName: "runbookName", + type: { + name: "String" + } + }, + jobId: { + serializedName: "jobId", + type: { + name: "String" + } + }, + jobOutput: { + serializedName: "jobOutput", + type: { + name: "String" + } + }, + isPrimarySideScript: { + serializedName: "isPrimarySideScript", + type: { + name: "Boolean" + } + } + } + } +}; + +export const FabricSpecificCreationInput: msRest.CompositeMapper = { + serializedName: "FabricSpecificCreationInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "FabricSpecificCreationInput", + className: "FabricSpecificCreationInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureFabricCreationInput: msRest.CompositeMapper = { + serializedName: "Azure", + type: { + name: "Composite", + polymorphicDiscriminator: FabricSpecificCreationInput.type.polymorphicDiscriminator, + uberParent: "FabricSpecificCreationInput", + className: "AzureFabricCreationInput", + modelProperties: { + ...FabricSpecificCreationInput.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const FabricSpecificDetails: msRest.CompositeMapper = { + serializedName: "FabricSpecificDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "FabricSpecificDetails", + className: "FabricSpecificDetails", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureFabricSpecificDetails: msRest.CompositeMapper = { + serializedName: "Azure", + type: { + name: "Composite", + polymorphicDiscriminator: FabricSpecificDetails.type.polymorphicDiscriminator, + uberParent: "FabricSpecificDetails", + className: "AzureFabricSpecificDetails", + modelProperties: { + ...FabricSpecificDetails.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + containerIds: { + serializedName: "containerIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "A2AZoneDetails" + } + } + } + } + } + } +}; + +export const FabricSpecificCreateNetworkMappingInput: msRest.CompositeMapper = { + serializedName: "FabricSpecificCreateNetworkMappingInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "FabricSpecificCreateNetworkMappingInput", + className: "FabricSpecificCreateNetworkMappingInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureToAzureCreateNetworkMappingInput: msRest.CompositeMapper = { + serializedName: "AzureToAzure", + type: { + name: "Composite", + polymorphicDiscriminator: FabricSpecificCreateNetworkMappingInput.type.polymorphicDiscriminator, + uberParent: "FabricSpecificCreateNetworkMappingInput", + className: "AzureToAzureCreateNetworkMappingInput", + modelProperties: { + ...FabricSpecificCreateNetworkMappingInput.type.modelProperties, + primaryNetworkId: { + required: true, + serializedName: "primaryNetworkId", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkMappingFabricSpecificSettings: msRest.CompositeMapper = { + serializedName: "NetworkMappingFabricSpecificSettings", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "NetworkMappingFabricSpecificSettings", + className: "NetworkMappingFabricSpecificSettings", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureToAzureNetworkMappingSettings: msRest.CompositeMapper = { + serializedName: "AzureToAzure", + type: { + name: "Composite", + polymorphicDiscriminator: NetworkMappingFabricSpecificSettings.type.polymorphicDiscriminator, + uberParent: "NetworkMappingFabricSpecificSettings", + className: "AzureToAzureNetworkMappingSettings", + modelProperties: { + ...NetworkMappingFabricSpecificSettings.type.modelProperties, + primaryFabricLocation: { + serializedName: "primaryFabricLocation", + type: { + name: "String" + } + }, + recoveryFabricLocation: { + serializedName: "recoveryFabricLocation", + type: { + name: "String" + } + } + } + } +}; + +export const FabricSpecificUpdateNetworkMappingInput: msRest.CompositeMapper = { + serializedName: "FabricSpecificUpdateNetworkMappingInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "FabricSpecificUpdateNetworkMappingInput", + className: "FabricSpecificUpdateNetworkMappingInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureToAzureUpdateNetworkMappingInput: msRest.CompositeMapper = { + serializedName: "AzureToAzure", + type: { + name: "Composite", + polymorphicDiscriminator: FabricSpecificUpdateNetworkMappingInput.type.polymorphicDiscriminator, + uberParent: "FabricSpecificUpdateNetworkMappingInput", + className: "AzureToAzureUpdateNetworkMappingInput", + modelProperties: { + ...FabricSpecificUpdateNetworkMappingInput.type.modelProperties, + primaryNetworkId: { + serializedName: "primaryNetworkId", + type: { + name: "String" + } + } + } + } +}; + +export const AzureVmDiskDetails: msRest.CompositeMapper = { + serializedName: "AzureVmDiskDetails", + type: { + name: "Composite", + className: "AzureVmDiskDetails", + modelProperties: { + vhdType: { + serializedName: "vhdType", + type: { + name: "String" + } + }, + vhdId: { + serializedName: "vhdId", + type: { + name: "String" + } + }, + diskId: { + serializedName: "diskId", + type: { + name: "String" + } + }, + vhdName: { + serializedName: "vhdName", + type: { + name: "String" + } + }, + maxSizeMB: { + serializedName: "maxSizeMB", + type: { + name: "String" + } + }, + targetDiskLocation: { + serializedName: "targetDiskLocation", + type: { + name: "String" + } + }, + targetDiskName: { + serializedName: "targetDiskName", + type: { + name: "String" + } + }, + lunId: { + serializedName: "lunId", + type: { + name: "String" + } + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeSizeErrorDetails: msRest.CompositeMapper = { + serializedName: "ComputeSizeErrorDetails", + type: { + name: "Composite", + className: "ComputeSizeErrorDetails", + modelProperties: { + message: { + serializedName: "message", + type: { + name: "String" + } + }, + severity: { + serializedName: "severity", + type: { + name: "String" + } + } + } + } +}; + +export const ConfigurationSettings: msRest.CompositeMapper = { + serializedName: "ConfigurationSettings", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "ConfigurationSettings", + className: "ConfigurationSettings", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const ConfigureAlertRequestProperties: msRest.CompositeMapper = { + serializedName: "ConfigureAlertRequestProperties", + type: { + name: "Composite", + className: "ConfigureAlertRequestProperties", + modelProperties: { + sendToOwners: { + serializedName: "sendToOwners", + type: { + name: "String" + } + }, + customEmailAddresses: { + serializedName: "customEmailAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locale: { + serializedName: "locale", + type: { + name: "String" + } + } + } + } +}; + +export const ConfigureAlertRequest: msRest.CompositeMapper = { + serializedName: "ConfigureAlertRequest", + type: { + name: "Composite", + className: "ConfigureAlertRequest", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ConfigureAlertRequestProperties" + } + } + } + } +}; + +export const InconsistentVmDetails: msRest.CompositeMapper = { + serializedName: "InconsistentVmDetails", + type: { + name: "Composite", + className: "InconsistentVmDetails", + modelProperties: { + vmName: { + serializedName: "vmName", + type: { + name: "String" + } + }, + cloudName: { + serializedName: "cloudName", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + errorIds: { + serializedName: "errorIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ConsistencyCheckTaskDetails: msRest.CompositeMapper = { + serializedName: "ConsistencyCheckTaskDetails", + type: { + name: "Composite", + polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, + uberParent: "TaskTypeDetails", + className: "ConsistencyCheckTaskDetails", + modelProperties: { + ...TaskTypeDetails.type.modelProperties, + vmDetails: { + serializedName: "vmDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InconsistentVmDetails" + } + } + } + } + } + } +}; + +export const CreateNetworkMappingInputProperties: msRest.CompositeMapper = { + serializedName: "CreateNetworkMappingInputProperties", + type: { + name: "Composite", + className: "CreateNetworkMappingInputProperties", + modelProperties: { + recoveryFabricName: { + serializedName: "recoveryFabricName", + type: { + name: "String" + } + }, + recoveryNetworkId: { + required: true, + serializedName: "recoveryNetworkId", + type: { + name: "String" + } + }, + fabricSpecificDetails: { + serializedName: "fabricSpecificDetails", + type: { + name: "Composite", + className: "FabricSpecificCreateNetworkMappingInput" + } + } + } + } +}; + +export const CreateNetworkMappingInput: msRest.CompositeMapper = { + serializedName: "CreateNetworkMappingInput", + type: { + name: "Composite", + className: "CreateNetworkMappingInput", + modelProperties: { + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "CreateNetworkMappingInputProperties" + } + } + } + } +}; + +export const CreatePolicyInputProperties: msRest.CompositeMapper = { + serializedName: "CreatePolicyInputProperties", + type: { + name: "Composite", + className: "CreatePolicyInputProperties", + modelProperties: { + providerSpecificInput: { + serializedName: "providerSpecificInput", + type: { + name: "Composite", + className: "PolicyProviderSpecificInput" + } + } + } + } +}; + +export const CreatePolicyInput: msRest.CompositeMapper = { + serializedName: "CreatePolicyInput", + type: { + name: "Composite", + className: "CreatePolicyInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CreatePolicyInputProperties" + } + } + } + } +}; + +export const CreateProtectionContainerInputProperties: msRest.CompositeMapper = { + serializedName: "CreateProtectionContainerInputProperties", + type: { + name: "Composite", + className: "CreateProtectionContainerInputProperties", + modelProperties: { + providerSpecificInput: { + serializedName: "providerSpecificInput", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationProviderSpecificContainerCreationInput" + } + } + } + } + } + } +}; + +export const CreateProtectionContainerInput: msRest.CompositeMapper = { + serializedName: "CreateProtectionContainerInput", + type: { + name: "Composite", + className: "CreateProtectionContainerInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CreateProtectionContainerInputProperties" + } + } + } + } +}; + +export const CreateProtectionContainerMappingInputProperties: msRest.CompositeMapper = { + serializedName: "CreateProtectionContainerMappingInputProperties", + type: { + name: "Composite", + className: "CreateProtectionContainerMappingInputProperties", + modelProperties: { + targetProtectionContainerId: { + serializedName: "targetProtectionContainerId", + type: { + name: "String" + } + }, + policyId: { + serializedName: "policyId", + type: { + name: "String" + } + }, + providerSpecificInput: { + serializedName: "providerSpecificInput", + type: { + name: "Composite", + className: "ReplicationProviderSpecificContainerMappingInput" + } + } + } + } +}; + +export const CreateProtectionContainerMappingInput: msRest.CompositeMapper = { + serializedName: "CreateProtectionContainerMappingInput", + type: { + name: "Composite", + className: "CreateProtectionContainerMappingInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CreateProtectionContainerMappingInputProperties" + } + } + } + } +}; + +export const CreateProtectionIntentProperties: msRest.CompositeMapper = { + serializedName: "CreateProtectionIntentProperties", + type: { + name: "Composite", + className: "CreateProtectionIntentProperties", + modelProperties: { + providerSpecificDetails: { + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "CreateProtectionIntentProviderSpecificDetails" + } + } + } + } +}; + +export const CreateProtectionIntentInput: msRest.CompositeMapper = { + serializedName: "CreateProtectionIntentInput", + type: { + name: "Composite", + className: "CreateProtectionIntentInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CreateProtectionIntentProperties" + } + } + } + } +}; + +export const RecoveryPlanProtectedItem: msRest.CompositeMapper = { + serializedName: "RecoveryPlanProtectedItem", + type: { + name: "Composite", + className: "RecoveryPlanProtectedItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + virtualMachineId: { + serializedName: "virtualMachineId", + type: { + name: "String" + } + } + } + } +}; + +export const RecoveryPlanActionDetails: msRest.CompositeMapper = { + serializedName: "RecoveryPlanActionDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "RecoveryPlanActionDetails", + className: "RecoveryPlanActionDetails", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const RecoveryPlanAction: msRest.CompositeMapper = { + serializedName: "RecoveryPlanAction", + type: { + name: "Composite", + className: "RecoveryPlanAction", + modelProperties: { + actionName: { + required: true, + serializedName: "actionName", + type: { + name: "String" + } + }, + failoverTypes: { + required: true, + serializedName: "failoverTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + failoverDirections: { + required: true, + serializedName: "failoverDirections", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + customDetails: { + required: true, + serializedName: "customDetails", + type: { + name: "Composite", + className: "RecoveryPlanActionDetails" + } + } + } + } +}; + +export const RecoveryPlanGroup: msRest.CompositeMapper = { + serializedName: "RecoveryPlanGroup", + type: { + name: "Composite", + className: "RecoveryPlanGroup", + modelProperties: { + groupType: { + required: true, + serializedName: "groupType", + type: { + name: "String" + } + }, + replicationProtectedItems: { + serializedName: "replicationProtectedItems", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPlanProtectedItem" + } + } + } + }, + startGroupActions: { + serializedName: "startGroupActions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPlanAction" + } + } + } + }, + endGroupActions: { + serializedName: "endGroupActions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPlanAction" + } + } + } + } + } + } +}; + +export const RecoveryPlanProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "RecoveryPlanProviderSpecificInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "RecoveryPlanProviderSpecificInput", + className: "RecoveryPlanProviderSpecificInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const CreateRecoveryPlanInputProperties: msRest.CompositeMapper = { + serializedName: "CreateRecoveryPlanInputProperties", + type: { + name: "Composite", + className: "CreateRecoveryPlanInputProperties", + modelProperties: { + primaryFabricId: { + required: true, + serializedName: "primaryFabricId", + type: { + name: "String" + } + }, + recoveryFabricId: { + required: true, + serializedName: "recoveryFabricId", + type: { + name: "String" + } + }, + failoverDeploymentModel: { + serializedName: "failoverDeploymentModel", + type: { + name: "String" + } + }, + groups: { + required: true, + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPlanGroup" + } + } + } + }, + providerSpecificInput: { + serializedName: "providerSpecificInput", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPlanProviderSpecificInput" + } + } + } + } + } + } +}; + +export const CreateRecoveryPlanInput: msRest.CompositeMapper = { + serializedName: "CreateRecoveryPlanInput", + type: { + name: "Composite", + className: "CreateRecoveryPlanInput", + modelProperties: { + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "CreateRecoveryPlanInputProperties" + } + } + } + } +}; + +export const CurrentJobDetails: msRest.CompositeMapper = { + serializedName: "CurrentJobDetails", + type: { + name: "Composite", + className: "CurrentJobDetails", + modelProperties: { + jobName: { + readOnly: true, + serializedName: "jobName", + type: { + name: "String" + } + }, + jobId: { + readOnly: true, + serializedName: "jobId", + type: { + name: "String" + } + }, + startTime: { + readOnly: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const CurrentScenarioDetails: msRest.CompositeMapper = { + serializedName: "CurrentScenarioDetails", + type: { + name: "Composite", + className: "CurrentScenarioDetails", + modelProperties: { + scenarioName: { + serializedName: "scenarioName", + type: { + name: "String" + } + }, + jobId: { + serializedName: "jobId", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const DataStore: msRest.CompositeMapper = { + serializedName: "DataStore", + type: { + name: "Composite", + className: "DataStore", + modelProperties: { + symbolicName: { + serializedName: "symbolicName", + type: { + name: "String" + } + }, + uuid: { + serializedName: "uuid", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "String" + } + }, + freeSpace: { + serializedName: "freeSpace", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const DisableProtectionProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "DisableProtectionProviderSpecificInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "DisableProtectionProviderSpecificInput", + className: "DisableProtectionProviderSpecificInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const DisableProtectionInputProperties: msRest.CompositeMapper = { + serializedName: "DisableProtectionInputProperties", + type: { + name: "Composite", + className: "DisableProtectionInputProperties", + modelProperties: { + disableProtectionReason: { + serializedName: "disableProtectionReason", + type: { + name: "String" + } + }, + replicationProviderInput: { + serializedName: "replicationProviderInput", + type: { + name: "Composite", + className: "DisableProtectionProviderSpecificInput" + } + } + } + } +}; + +export const DisableProtectionInput: msRest.CompositeMapper = { + serializedName: "DisableProtectionInput", + type: { + name: "Composite", + className: "DisableProtectionInput", + modelProperties: { + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "DisableProtectionInputProperties" + } + } + } + } +}; + +export const DiscoverProtectableItemRequestProperties: msRest.CompositeMapper = { + serializedName: "DiscoverProtectableItemRequestProperties", + type: { + name: "Composite", + className: "DiscoverProtectableItemRequestProperties", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + }, + ipAddress: { + serializedName: "ipAddress", + type: { + name: "String" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + } + } + } +}; + +export const DiscoverProtectableItemRequest: msRest.CompositeMapper = { + serializedName: "DiscoverProtectableItemRequest", + type: { + name: "Composite", + className: "DiscoverProtectableItemRequest", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DiscoverProtectableItemRequestProperties" + } + } + } + } +}; + +export const DiskDetails: msRest.CompositeMapper = { + serializedName: "DiskDetails", + type: { + name: "Composite", + className: "DiskDetails", + modelProperties: { + maxSizeMB: { + serializedName: "maxSizeMB", + type: { + name: "Number" + } + }, + vhdType: { + serializedName: "vhdType", + type: { + name: "String" + } + }, + vhdId: { + serializedName: "vhdId", + type: { + name: "String" + } + }, + vhdName: { + serializedName: "vhdName", + type: { + name: "String" + } + } + } + } +}; + +export const DiskVolumeDetails: msRest.CompositeMapper = { + serializedName: "DiskVolumeDetails", + type: { + name: "Composite", + className: "DiskVolumeDetails", + modelProperties: { + label: { + serializedName: "label", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const Display: msRest.CompositeMapper = { + serializedName: "Display", + type: { + name: "Composite", + className: "Display", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const InnerHealthError: msRest.CompositeMapper = { + serializedName: "InnerHealthError", + type: { + name: "Composite", + className: "InnerHealthError", + modelProperties: { + errorSource: { + serializedName: "errorSource", + type: { + name: "String" + } + }, + errorType: { + serializedName: "errorType", + type: { + name: "String" + } + }, + errorLevel: { + serializedName: "errorLevel", + type: { + name: "String" + } + }, + errorCategory: { + serializedName: "errorCategory", + type: { + name: "String" + } + }, + errorCode: { + serializedName: "errorCode", + type: { + name: "String" + } + }, + summaryMessage: { + serializedName: "summaryMessage", + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + }, + possibleCauses: { + serializedName: "possibleCauses", + type: { + name: "String" + } + }, + recommendedAction: { + serializedName: "recommendedAction", + type: { + name: "String" + } + }, + creationTimeUtc: { + serializedName: "creationTimeUtc", + type: { + name: "DateTime" + } + }, + recoveryProviderErrorMessage: { + serializedName: "recoveryProviderErrorMessage", + type: { + name: "String" + } + }, + entityId: { + serializedName: "entityId", + type: { + name: "String" + } + }, + errorId: { + serializedName: "errorId", + type: { + name: "String" + } + }, + customerResolvability: { + serializedName: "customerResolvability", + type: { + name: "String" + } + } + } + } +}; + +export const HealthError: msRest.CompositeMapper = { + serializedName: "HealthError", + type: { + name: "Composite", + className: "HealthError", + modelProperties: { + innerHealthErrors: { + serializedName: "innerHealthErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InnerHealthError" + } + } + } + }, + errorSource: { + serializedName: "errorSource", + type: { + name: "String" + } + }, + errorType: { + serializedName: "errorType", + type: { + name: "String" + } + }, + errorLevel: { + serializedName: "errorLevel", + type: { + name: "String" + } + }, + errorCategory: { + serializedName: "errorCategory", + type: { + name: "String" + } + }, + errorCode: { + serializedName: "errorCode", + type: { + name: "String" + } + }, + summaryMessage: { + serializedName: "summaryMessage", + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + }, + possibleCauses: { + serializedName: "possibleCauses", + type: { + name: "String" + } + }, + recommendedAction: { + serializedName: "recommendedAction", + type: { + name: "String" + } + }, + creationTimeUtc: { + serializedName: "creationTimeUtc", + type: { + name: "DateTime" + } + }, + recoveryProviderErrorMessage: { + serializedName: "recoveryProviderErrorMessage", + type: { + name: "String" + } + }, + entityId: { + serializedName: "entityId", + type: { + name: "String" + } + }, + errorId: { + serializedName: "errorId", + type: { + name: "String" + } + }, + customerResolvability: { + serializedName: "customerResolvability", + type: { + name: "String" + } + } + } + } +}; + +export const DraDetails: msRest.CompositeMapper = { + serializedName: "DraDetails", + type: { + name: "Composite", + className: "DraDetails", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + biosId: { + readOnly: true, + serializedName: "biosId", + type: { + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + }, + lastHeartbeatUtc: { + readOnly: true, + serializedName: "lastHeartbeatUtc", + type: { + name: "DateTime" + } + }, + health: { + readOnly: true, + serializedName: "health", + type: { + name: "String" + } + }, + healthErrors: { + readOnly: true, + serializedName: "healthErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } + } + }, + forwardProtectedItemCount: { + readOnly: true, + serializedName: "forwardProtectedItemCount", + type: { + name: "Number" + } + }, + reverseProtectedItemCount: { + readOnly: true, + serializedName: "reverseProtectedItemCount", + type: { + name: "Number" + } + } + } + } +}; + +export const EnableMigrationProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "EnableMigrationProviderSpecificInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "EnableMigrationProviderSpecificInput", + className: "EnableMigrationProviderSpecificInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const EnableMigrationInputProperties: msRest.CompositeMapper = { + serializedName: "EnableMigrationInputProperties", + type: { + name: "Composite", + className: "EnableMigrationInputProperties", + modelProperties: { + policyId: { + required: true, + serializedName: "policyId", + type: { + name: "String" + } + }, + providerSpecificDetails: { + required: true, + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "EnableMigrationProviderSpecificInput" + } + } + } + } +}; + +export const EnableMigrationInput: msRest.CompositeMapper = { + serializedName: "EnableMigrationInput", + type: { + name: "Composite", + className: "EnableMigrationInput", + modelProperties: { + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "EnableMigrationInputProperties" + } + } + } + } +}; + +export const EnableProtectionInputProperties: msRest.CompositeMapper = { + serializedName: "EnableProtectionInputProperties", + type: { + name: "Composite", + className: "EnableProtectionInputProperties", + modelProperties: { + policyId: { + serializedName: "policyId", + type: { + name: "String" + } + }, + protectableItemId: { + serializedName: "protectableItemId", + type: { + name: "String" + } + }, + providerSpecificDetails: { + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "EnableProtectionProviderSpecificInput" + } + } + } + } +}; + +export const EnableProtectionInput: msRest.CompositeMapper = { + serializedName: "EnableProtectionInput", + type: { + name: "Composite", + className: "EnableProtectionInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnableProtectionInputProperties" + } + } + } + } +}; + +export const EncryptionDetails: msRest.CompositeMapper = { + serializedName: "EncryptionDetails", + type: { + name: "Composite", + className: "EncryptionDetails", + modelProperties: { + kekState: { + serializedName: "kekState", + type: { + name: "String" + } + }, + kekCertThumbprint: { + serializedName: "kekCertThumbprint", + type: { + name: "String" + } + }, + kekCertExpiryDate: { + serializedName: "kekCertExpiryDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const EventSpecificDetails: msRest.CompositeMapper = { + serializedName: "EventSpecificDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "EventSpecificDetails", + className: "EventSpecificDetails", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const EventProperties: msRest.CompositeMapper = { + serializedName: "EventProperties", + type: { + name: "Composite", + className: "EventProperties", + modelProperties: { + eventCode: { + serializedName: "eventCode", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + eventType: { + serializedName: "eventType", + type: { + name: "String" + } + }, + affectedObjectFriendlyName: { + serializedName: "affectedObjectFriendlyName", + type: { + name: "String" + } + }, + affectedObjectCorrelationId: { + serializedName: "affectedObjectCorrelationId", + type: { + name: "String" + } + }, + severity: { + serializedName: "severity", + type: { + name: "String" + } + }, + timeOfOccurrence: { + serializedName: "timeOfOccurrence", + type: { + name: "DateTime" + } + }, + fabricId: { + serializedName: "fabricId", + type: { + name: "String" + } + }, + providerSpecificDetails: { + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "EventProviderSpecificDetails" + } + }, + eventSpecificDetails: { + serializedName: "eventSpecificDetails", + type: { + name: "Composite", + className: "EventSpecificDetails" + } + }, + healthErrors: { + serializedName: "healthErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } + } + } + } + } +}; + +export const Event: msRest.CompositeMapper = { + serializedName: "Event", + type: { + name: "Composite", + className: "Event", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EventProperties" + } + } + } + } +}; + +export const EventQueryParameter: msRest.CompositeMapper = { + serializedName: "EventQueryParameter", + type: { + name: "Composite", + className: "EventQueryParameter", + modelProperties: { + eventCode: { + serializedName: "eventCode", + type: { + name: "String" + } + }, + severity: { + serializedName: "severity", + type: { + name: "String" + } + }, + eventType: { + serializedName: "eventType", + type: { + name: "String" + } + }, + fabricName: { + serializedName: "fabricName", + type: { + name: "String" + } + }, + affectedObjectFriendlyName: { + serializedName: "affectedObjectFriendlyName", + type: { + name: "String" + } + }, + affectedObjectCorrelationId: { + serializedName: "affectedObjectCorrelationId", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ExistingProtectionProfile: msRest.CompositeMapper = { + serializedName: "Existing", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionProfileCustomDetails.type.polymorphicDiscriminator, + uberParent: "ProtectionProfileCustomDetails", + className: "ExistingProtectionProfile", + modelProperties: { + ...ProtectionProfileCustomDetails.type.modelProperties, + protectionProfileId: { + required: true, + serializedName: "protectionProfileId", + type: { + name: "String" + } + } + } + } +}; + +export const ExistingRecoveryAvailabilitySet: msRest.CompositeMapper = { + serializedName: "Existing", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryAvailabilitySetCustomDetails.type.polymorphicDiscriminator, + uberParent: "RecoveryAvailabilitySetCustomDetails", + className: "ExistingRecoveryAvailabilitySet", + modelProperties: { + ...RecoveryAvailabilitySetCustomDetails.type.modelProperties, + recoveryAvailabilitySetId: { + serializedName: "recoveryAvailabilitySetId", + type: { + name: "String" + } + } + } + } +}; + +export const ExistingRecoveryProximityPlacementGroup: msRest.CompositeMapper = { + serializedName: "Existing", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryProximityPlacementGroupCustomDetails.type.polymorphicDiscriminator, + uberParent: "RecoveryProximityPlacementGroupCustomDetails", + className: "ExistingRecoveryProximityPlacementGroup", + modelProperties: { + ...RecoveryProximityPlacementGroupCustomDetails.type.modelProperties, + recoveryProximityPlacementGroupId: { + serializedName: "recoveryProximityPlacementGroupId", + type: { + name: "String" + } + } + } + } +}; + +export const ExistingRecoveryRecoveryResourceGroup: msRest.CompositeMapper = { + serializedName: "Existing", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryResourceGroupCustomDetails.type.polymorphicDiscriminator, + uberParent: "RecoveryResourceGroupCustomDetails", + className: "ExistingRecoveryRecoveryResourceGroup", + modelProperties: { + ...RecoveryResourceGroupCustomDetails.type.modelProperties, + recoveryResourceGroupId: { + serializedName: "recoveryResourceGroupId", + type: { + name: "String" + } + } + } + } +}; + +export const ExistingRecoveryVirtualNetwork: msRest.CompositeMapper = { + serializedName: "Existing", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryVirtualNetworkCustomDetails.type.polymorphicDiscriminator, + uberParent: "RecoveryVirtualNetworkCustomDetails", + className: "ExistingRecoveryVirtualNetwork", + modelProperties: { + ...RecoveryVirtualNetworkCustomDetails.type.modelProperties, + recoveryVirtualNetworkId: { + required: true, + serializedName: "recoveryVirtualNetworkId", + type: { + name: "String" + } + }, + recoverySubnetName: { + serializedName: "recoverySubnetName", + type: { + name: "String" + } + } + } + } +}; + +export const ExistingStorageAccount: msRest.CompositeMapper = { + serializedName: "Existing", + type: { + name: "Composite", + polymorphicDiscriminator: StorageAccountCustomDetails.type.polymorphicDiscriminator, + uberParent: "StorageAccountCustomDetails", + className: "ExistingStorageAccount", + modelProperties: { + ...StorageAccountCustomDetails.type.modelProperties, + azureStorageAccountId: { + required: true, + serializedName: "azureStorageAccountId", + type: { + name: "String" + } + } + } + } +}; + +export const ExportJobDetails: msRest.CompositeMapper = { + serializedName: "ExportJobDetails", + type: { + name: "Composite", + polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, + uberParent: "JobDetails", + className: "ExportJobDetails", + modelProperties: { + ...JobDetails.type.modelProperties, + blobUri: { + serializedName: "blobUri", + type: { + name: "String" + } + }, + sasToken: { + serializedName: "sasToken", + type: { + name: "String" + } + } + } + } +}; + +export const FabricProperties: msRest.CompositeMapper = { + serializedName: "FabricProperties", + type: { + name: "Composite", + className: "FabricProperties", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + }, + encryptionDetails: { + serializedName: "encryptionDetails", + type: { + name: "Composite", + className: "EncryptionDetails" + } + }, + rolloverEncryptionDetails: { + serializedName: "rolloverEncryptionDetails", + type: { + name: "Composite", + className: "EncryptionDetails" + } + }, + internalIdentifier: { + serializedName: "internalIdentifier", + type: { + name: "String" + } + }, + bcdrState: { + serializedName: "bcdrState", + type: { + name: "String" + } + }, + customDetails: { + serializedName: "customDetails", + type: { + name: "Composite", + className: "FabricSpecificDetails" + } + }, + healthErrorDetails: { + serializedName: "healthErrorDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } + } + }, + health: { + serializedName: "health", + type: { + name: "String" + } + } + } + } +}; + +export const Fabric: msRest.CompositeMapper = { + serializedName: "Fabric", + type: { + name: "Composite", + className: "Fabric", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FabricProperties" + } + } + } + } +}; + +export const FabricCreationInputProperties: msRest.CompositeMapper = { + serializedName: "FabricCreationInputProperties", + type: { + name: "Composite", + className: "FabricCreationInputProperties", + modelProperties: { + customDetails: { + serializedName: "customDetails", + type: { + name: "Composite", + className: "FabricSpecificCreationInput" + } + } + } + } +}; + +export const FabricCreationInput: msRest.CompositeMapper = { + serializedName: "FabricCreationInput", + type: { + name: "Composite", + className: "FabricCreationInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FabricCreationInputProperties" + } + } + } + } +}; + +export const FabricQueryParameter: msRest.CompositeMapper = { + serializedName: "FabricQueryParameter", + type: { + name: "Composite", + className: "FabricQueryParameter", + modelProperties: { + zoneToZoneMappings: { + serializedName: "zoneToZoneMappings", + type: { + name: "String" + } + }, + fetchAgentDetails: { + serializedName: "fetchAgentDetails", + type: { + name: "String" + } + }, + biosId: { + serializedName: "biosId", + type: { + name: "String" + } + }, + fqdn: { + serializedName: "fqdn", + type: { + name: "String" + } + }, + discoveryType: { + serializedName: "discoveryType", + type: { + name: "String" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + } + } + } +}; + +export const JobTaskDetails: msRest.CompositeMapper = { + serializedName: "JobTaskDetails", + type: { + name: "Composite", + polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, + uberParent: "TaskTypeDetails", + className: "JobTaskDetails", + modelProperties: { + ...TaskTypeDetails.type.modelProperties, + jobTask: { + serializedName: "jobTask", + type: { + name: "Composite", + className: "JobEntity" + } + } + } + } +}; + +export const FabricReplicationGroupTaskDetails: msRest.CompositeMapper = { + serializedName: "FabricReplicationGroupTaskDetails", + type: { + name: "Composite", + polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, + uberParent: "TaskTypeDetails", + className: "FabricReplicationGroupTaskDetails", + modelProperties: { + ...JobTaskDetails.type.modelProperties, + skippedReason: { + serializedName: "skippedReason", + type: { + name: "String" + } + }, + skippedReasonString: { + serializedName: "skippedReasonString", + type: { + name: "String" + } + } + } + } +}; + +export const FailoverReplicationProtectedItemDetails: msRest.CompositeMapper = { + serializedName: "FailoverReplicationProtectedItemDetails", + type: { + name: "Composite", + className: "FailoverReplicationProtectedItemDetails", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + }, + testVmName: { + serializedName: "testVmName", + type: { + name: "String" + } + }, + testVmFriendlyName: { + serializedName: "testVmFriendlyName", + type: { + name: "String" + } + }, + networkConnectionStatus: { + serializedName: "networkConnectionStatus", + type: { + name: "String" + } + }, + networkFriendlyName: { + serializedName: "networkFriendlyName", + type: { + name: "String" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "String" + } + }, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + }, + recoveryPointTime: { + serializedName: "recoveryPointTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const FailoverJobDetails: msRest.CompositeMapper = { + serializedName: "FailoverJobDetails", + type: { + name: "Composite", + polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, + uberParent: "JobDetails", + className: "FailoverJobDetails", + modelProperties: { + ...JobDetails.type.modelProperties, + protectedItemDetails: { + serializedName: "protectedItemDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailoverReplicationProtectedItemDetails" + } + } + } + } + } + } +}; + +export const FailoverProcessServerRequestProperties: msRest.CompositeMapper = { + serializedName: "FailoverProcessServerRequestProperties", + type: { + name: "Composite", + className: "FailoverProcessServerRequestProperties", + modelProperties: { + containerName: { + serializedName: "containerName", + type: { + name: "String" + } + }, + sourceProcessServerId: { + serializedName: "sourceProcessServerId", + type: { + name: "String" + } + }, + targetProcessServerId: { + serializedName: "targetProcessServerId", + type: { + name: "String" + } + }, + vmsToMigrate: { + serializedName: "vmsToMigrate", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + updateType: { + serializedName: "updateType", + type: { + name: "String" + } + } + } + } +}; + +export const FailoverProcessServerRequest: msRest.CompositeMapper = { + serializedName: "FailoverProcessServerRequest", + type: { + name: "Composite", + className: "FailoverProcessServerRequest", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FailoverProcessServerRequestProperties" + } + } + } + } +}; + +export const HealthErrorSummary: msRest.CompositeMapper = { + serializedName: "HealthErrorSummary", + type: { + name: "Composite", + className: "HealthErrorSummary", + modelProperties: { + summaryCode: { + serializedName: "summaryCode", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + severity: { + serializedName: "severity", + type: { + name: "String" + } + }, + summaryMessage: { + serializedName: "summaryMessage", + type: { + name: "String" + } + }, + affectedResourceType: { + serializedName: "affectedResourceType", + type: { + name: "String" + } + }, + affectedResourceSubtype: { + serializedName: "affectedResourceSubtype", + type: { + name: "String" + } + }, + affectedResourceCorrelationIds: { + serializedName: "affectedResourceCorrelationIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const HyperVHostDetails: msRest.CompositeMapper = { + serializedName: "HyperVHostDetails", + type: { + name: "Composite", + className: "HyperVHostDetails", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + marsAgentVersion: { + readOnly: true, + serializedName: "marsAgentVersion", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplica2012EventDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplica2012", + type: { + name: "Composite", + polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "EventProviderSpecificDetails", + className: "HyperVReplica2012EventDetails", + modelProperties: { + ...EventProviderSpecificDetails.type.modelProperties, + containerName: { + serializedName: "containerName", + type: { + name: "String" + } + }, + fabricName: { + serializedName: "fabricName", + type: { + name: "String" + } + }, + remoteContainerName: { + serializedName: "remoteContainerName", + type: { + name: "String" + } + }, + remoteFabricName: { + serializedName: "remoteFabricName", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplica2012R2EventDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplica2012R2", + type: { + name: "Composite", + polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "EventProviderSpecificDetails", + className: "HyperVReplica2012R2EventDetails", + modelProperties: { + ...EventProviderSpecificDetails.type.modelProperties, + containerName: { + serializedName: "containerName", + type: { + name: "String" + } + }, + fabricName: { + serializedName: "fabricName", + type: { + name: "String" + } + }, + remoteContainerName: { + serializedName: "remoteContainerName", + type: { + name: "String" + } + }, + remoteFabricName: { + serializedName: "remoteFabricName", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzureApplyRecoveryPointInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: ApplyRecoveryPointProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ApplyRecoveryPointProviderSpecificInput", + className: "HyperVReplicaAzureApplyRecoveryPointInput", + modelProperties: { + ...ApplyRecoveryPointProviderSpecificInput.type.modelProperties, + primaryKekCertificatePfx: { + serializedName: "primaryKekCertificatePfx", + type: { + name: "String" + } + }, + secondaryKekCertificatePfx: { + serializedName: "secondaryKekCertificatePfx", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzureDiskInputDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzureDiskInputDetails", + type: { + name: "Composite", + className: "HyperVReplicaAzureDiskInputDetails", + modelProperties: { + diskId: { + serializedName: "diskId", + type: { + name: "String" + } + }, + logStorageAccountId: { + serializedName: "logStorageAccountId", + type: { + name: "String" + } + }, + diskType: { + serializedName: "diskType", + type: { + name: "String" + } + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzureEnableProtectionInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "EnableProtectionProviderSpecificInput", + className: "HyperVReplicaAzureEnableProtectionInput", + modelProperties: { + ...EnableProtectionProviderSpecificInput.type.modelProperties, + hvHostVmId: { + serializedName: "hvHostVmId", + type: { + name: "String" + } + }, + vmName: { + serializedName: "vmName", + type: { + name: "String" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + vhdId: { + serializedName: "vhdId", + type: { + name: "String" + } + }, + targetStorageAccountId: { + serializedName: "targetStorageAccountId", + type: { + name: "String" + } + }, + targetAzureNetworkId: { + serializedName: "targetAzureNetworkId", + type: { + name: "String" + } + }, + targetAzureSubnetId: { + serializedName: "targetAzureSubnetId", + type: { + name: "String" + } + }, + enableRdpOnTargetOption: { + serializedName: "enableRdpOnTargetOption", + type: { + name: "String" + } + }, + targetAzureVmName: { + serializedName: "targetAzureVmName", + type: { + name: "String" + } + }, + logStorageAccountId: { + serializedName: "logStorageAccountId", + type: { + name: "String" + } + }, + disksToInclude: { + serializedName: "disksToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + targetAzureV1ResourceGroupId: { + serializedName: "targetAzureV1ResourceGroupId", + type: { + name: "String" + } + }, + targetAzureV2ResourceGroupId: { + serializedName: "targetAzureV2ResourceGroupId", + type: { + name: "String" + } + }, + useManagedDisks: { + serializedName: "useManagedDisks", + type: { + name: "String" + } + }, + targetAvailabilitySetId: { + serializedName: "targetAvailabilitySetId", + type: { + name: "String" + } + }, + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", + type: { + name: "String" + } + }, + licenseType: { + serializedName: "licenseType", + type: { + name: "String" + } + }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", + type: { + name: "String" + } + }, + targetVmSize: { + serializedName: "targetVmSize", + type: { + name: "String" + } + }, + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", + type: { + name: "String" + } + }, + useManagedDisksForReplication: { + serializedName: "useManagedDisksForReplication", + type: { + name: "String" + } + }, + diskType: { + serializedName: "diskType", + type: { + name: "String" + } + }, + disksToIncludeForManagedDisks: { + serializedName: "disksToIncludeForManagedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HyperVReplicaAzureDiskInputDetails" + } + } + } + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + seedManagedDiskTags: { + serializedName: "seedManagedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetManagedDiskTags: { + serializedName: "targetManagedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetNicTags: { + serializedName: "targetNicTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const HyperVReplicaAzureEventDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "EventProviderSpecificDetails", + className: "HyperVReplicaAzureEventDetails", + modelProperties: { + ...EventProviderSpecificDetails.type.modelProperties, + containerName: { + serializedName: "containerName", + type: { + name: "String" + } + }, + fabricName: { + serializedName: "fabricName", + type: { + name: "String" + } + }, + remoteContainerName: { + serializedName: "remoteContainerName", + type: { + name: "String" + } + } + } + } +}; + +export const PlannedFailoverProviderSpecificFailoverInput: msRest.CompositeMapper = { + serializedName: "PlannedFailoverProviderSpecificFailoverInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "PlannedFailoverProviderSpecificFailoverInput", + className: "PlannedFailoverProviderSpecificFailoverInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzureFailbackProviderInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzureFailback", + type: { + name: "Composite", + polymorphicDiscriminator: PlannedFailoverProviderSpecificFailoverInput.type.polymorphicDiscriminator, + uberParent: "PlannedFailoverProviderSpecificFailoverInput", + className: "HyperVReplicaAzureFailbackProviderInput", + modelProperties: { + ...PlannedFailoverProviderSpecificFailoverInput.type.modelProperties, + dataSyncOption: { + serializedName: "dataSyncOption", + type: { + name: "String" + } + }, + recoveryVmCreationOption: { + serializedName: "recoveryVmCreationOption", + type: { + name: "String" + } + }, + providerIdForAlternateRecovery: { + serializedName: "providerIdForAlternateRecovery", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzureManagedDiskDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzureManagedDiskDetails", + type: { + name: "Composite", + className: "HyperVReplicaAzureManagedDiskDetails", + modelProperties: { + diskId: { + serializedName: "diskId", + type: { + name: "String" + } + }, + seedManagedDiskId: { + serializedName: "seedManagedDiskId", + type: { + name: "String" + } + }, + replicaDiskType: { + serializedName: "replicaDiskType", + type: { + name: "String" + } + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzurePlannedFailoverProviderInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: PlannedFailoverProviderSpecificFailoverInput.type.polymorphicDiscriminator, + uberParent: "PlannedFailoverProviderSpecificFailoverInput", + className: "HyperVReplicaAzurePlannedFailoverProviderInput", + modelProperties: { + ...PlannedFailoverProviderSpecificFailoverInput.type.modelProperties, + primaryKekCertificatePfx: { + serializedName: "primaryKekCertificatePfx", + type: { + name: "String" + } + }, + secondaryKekCertificatePfx: { + serializedName: "secondaryKekCertificatePfx", + type: { + name: "String" + } + }, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzurePolicyDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "HyperVReplicaAzurePolicyDetails", + modelProperties: { + ...PolicyProviderSpecificDetails.type.modelProperties, + recoveryPointHistoryDurationInHours: { + serializedName: "recoveryPointHistoryDurationInHours", + type: { + name: "Number" + } + }, + applicationConsistentSnapshotFrequencyInHours: { + serializedName: "applicationConsistentSnapshotFrequencyInHours", + type: { + name: "Number" + } + }, + replicationInterval: { + serializedName: "replicationInterval", + type: { + name: "Number" + } + }, + onlineReplicationStartTime: { + serializedName: "onlineReplicationStartTime", + type: { + name: "String" + } + }, + encryption: { + serializedName: "encryption", + type: { + name: "String" + } + }, + activeStorageAccountId: { + serializedName: "activeStorageAccountId", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzurePolicyInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificInput", + className: "HyperVReplicaAzurePolicyInput", + modelProperties: { + ...PolicyProviderSpecificInput.type.modelProperties, + recoveryPointHistoryDuration: { + serializedName: "recoveryPointHistoryDuration", + type: { + name: "Number" + } + }, + applicationConsistentSnapshotFrequencyInHours: { + serializedName: "applicationConsistentSnapshotFrequencyInHours", + type: { + name: "Number" + } + }, + replicationInterval: { + serializedName: "replicationInterval", + type: { + name: "Number" + } + }, + onlineReplicationStartTime: { + serializedName: "onlineReplicationStartTime", + type: { + name: "String" + } + }, + storageAccounts: { + serializedName: "storageAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const InitialReplicationDetails: msRest.CompositeMapper = { + serializedName: "InitialReplicationDetails", + type: { + name: "Composite", + className: "InitialReplicationDetails", + modelProperties: { + initialReplicationType: { + serializedName: "initialReplicationType", + type: { + name: "String" + } + }, + initialReplicationProgressPercentage: { + serializedName: "initialReplicationProgressPercentage", + type: { + name: "String" + } + } + } + } +}; + +export const OSDetails: msRest.CompositeMapper = { + serializedName: "OSDetails", + type: { + name: "Composite", + className: "OSDetails", + modelProperties: { + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + productType: { + serializedName: "productType", + type: { + name: "String" + } + }, + osEdition: { + serializedName: "osEdition", + type: { + name: "String" + } + }, + oSVersion: { + serializedName: "oSVersion", + type: { + name: "String" + } + }, + oSMajorVersion: { + serializedName: "oSMajorVersion", + type: { + name: "String" + } + }, + oSMinorVersion: { + serializedName: "oSMinorVersion", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzureReplicationDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificSettings", + className: "HyperVReplicaAzureReplicationDetails", + modelProperties: { + ...ReplicationProviderSpecificSettings.type.modelProperties, + azureVmDiskDetails: { + serializedName: "azureVmDiskDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureVmDiskDetails" + } + } + } + }, + recoveryAzureVmName: { + serializedName: "recoveryAzureVmName", + type: { + name: "String" + } + }, + recoveryAzureVMSize: { + serializedName: "recoveryAzureVMSize", + type: { + name: "String" + } + }, + recoveryAzureStorageAccount: { + serializedName: "recoveryAzureStorageAccount", + type: { + name: "String" + } + }, + recoveryAzureLogStorageAccountId: { + serializedName: "recoveryAzureLogStorageAccountId", + type: { + name: "String" + } + }, + lastReplicatedTime: { + serializedName: "lastReplicatedTime", + type: { + name: "DateTime" + } + }, + rpoInSeconds: { + serializedName: "rpoInSeconds", + type: { + name: "Number" + } + }, + lastRpoCalculatedTime: { + serializedName: "lastRpoCalculatedTime", + type: { + name: "DateTime" + } + }, + vmId: { + serializedName: "vmId", + type: { + name: "String" + } + }, + vmProtectionState: { + serializedName: "vmProtectionState", + type: { + name: "String" + } + }, + vmProtectionStateDescription: { + serializedName: "vmProtectionStateDescription", + type: { + name: "String" + } + }, + initialReplicationDetails: { + serializedName: "initialReplicationDetails", + type: { + name: "Composite", + className: "InitialReplicationDetails" + } + }, + vmNics: { + serializedName: "vmNics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMNicDetails" + } + } + } + }, + selectedRecoveryAzureNetworkId: { + serializedName: "selectedRecoveryAzureNetworkId", + type: { + name: "String" + } + }, + selectedSourceNicId: { + serializedName: "selectedSourceNicId", + type: { + name: "String" + } + }, + encryption: { + serializedName: "encryption", + type: { + name: "String" + } + }, + oSDetails: { + serializedName: "oSDetails", + type: { + name: "Composite", + className: "OSDetails" + } + }, + sourceVmRamSizeInMB: { + serializedName: "sourceVmRamSizeInMB", + type: { + name: "Number" + } + }, + sourceVmCpuCount: { + serializedName: "sourceVmCpuCount", + type: { + name: "Number" + } + }, + enableRdpOnTargetOption: { + serializedName: "enableRdpOnTargetOption", + type: { + name: "String" + } + }, + recoveryAzureResourceGroupId: { + serializedName: "recoveryAzureResourceGroupId", + type: { + name: "String" + } + }, + recoveryAvailabilitySetId: { + serializedName: "recoveryAvailabilitySetId", + type: { + name: "String" + } + }, + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", + type: { + name: "String" + } + }, + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", + type: { + name: "String" + } + }, + useManagedDisks: { + serializedName: "useManagedDisks", + type: { + name: "String" + } + }, + licenseType: { + serializedName: "licenseType", + type: { + name: "String" + } + }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", + type: { + name: "String" + } + }, + lastRecoveryPointReceived: { + readOnly: true, + serializedName: "lastRecoveryPointReceived", + type: { + name: "DateTime" + } + }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + seedManagedDiskTags: { + serializedName: "seedManagedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetManagedDiskTags: { + serializedName: "targetManagedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetNicTags: { + serializedName: "targetNicTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + protectedManagedDisks: { + serializedName: "protectedManagedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HyperVReplicaAzureManagedDiskDetails" + } + } + } + } + } + } +}; + +export const HyperVReplicaAzureReprotectInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: ReverseReplicationProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ReverseReplicationProviderSpecificInput", + className: "HyperVReplicaAzureReprotectInput", + modelProperties: { + ...ReverseReplicationProviderSpecificInput.type.modelProperties, + hvHostVmId: { + serializedName: "hvHostVmId", + type: { + name: "String" + } + }, + vmName: { + serializedName: "vmName", + type: { + name: "String" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + vHDId: { + serializedName: "vHDId", + type: { + name: "String" + } + }, + storageAccountId: { + serializedName: "storageAccountId", + type: { + name: "String" + } + }, + logStorageAccountId: { + serializedName: "logStorageAccountId", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzureTestFailoverInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "TestFailoverProviderSpecificInput", + className: "HyperVReplicaAzureTestFailoverInput", + modelProperties: { + ...TestFailoverProviderSpecificInput.type.modelProperties, + primaryKekCertificatePfx: { + serializedName: "primaryKekCertificatePfx", + type: { + name: "String" + } + }, + secondaryKekCertificatePfx: { + serializedName: "secondaryKekCertificatePfx", + type: { + name: "String" + } + }, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzureUnplannedFailoverInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "UnplannedFailoverProviderSpecificInput", + className: "HyperVReplicaAzureUnplannedFailoverInput", + modelProperties: { + ...UnplannedFailoverProviderSpecificInput.type.modelProperties, + primaryKekCertificatePfx: { + serializedName: "primaryKekCertificatePfx", + type: { + name: "String" + } + }, + secondaryKekCertificatePfx: { + serializedName: "secondaryKekCertificatePfx", + type: { + name: "String" + } + }, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaAzureUpdateReplicationProtectedItemInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", + type: { + name: "Composite", + polymorphicDiscriminator: UpdateReplicationProtectedItemProviderInput.type.polymorphicDiscriminator, + uberParent: "UpdateReplicationProtectedItemProviderInput", + className: "HyperVReplicaAzureUpdateReplicationProtectedItemInput", + modelProperties: { + ...UpdateReplicationProtectedItemProviderInput.type.modelProperties, + recoveryAzureV1ResourceGroupId: { + serializedName: "recoveryAzureV1ResourceGroupId", + type: { + name: "String" + } + }, + recoveryAzureV2ResourceGroupId: { + serializedName: "recoveryAzureV2ResourceGroupId", + type: { + name: "String" + } + }, + useManagedDisks: { + serializedName: "useManagedDisks", + type: { + name: "String" + } + }, + diskIdToDiskEncryptionMap: { + serializedName: "diskIdToDiskEncryptionMap", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", + type: { + name: "String" + } + }, + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", + type: { + name: "String" + } + }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetManagedDiskTags: { + serializedName: "targetManagedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetNicTags: { + serializedName: "targetNicTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaBaseEventDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplicaBaseEventDetails", + type: { + name: "Composite", + polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "EventProviderSpecificDetails", + className: "HyperVReplicaBaseEventDetails", + modelProperties: { + ...EventProviderSpecificDetails.type.modelProperties, + containerName: { + serializedName: "containerName", + type: { + name: "String" + } + }, + fabricName: { + serializedName: "fabricName", + type: { + name: "String" + } + }, + remoteContainerName: { + serializedName: "remoteContainerName", + type: { + name: "String" + } + }, + remoteFabricName: { + serializedName: "remoteFabricName", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaBasePolicyDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplicaBasePolicyDetails", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "HyperVReplicaBasePolicyDetails", + modelProperties: { + ...PolicyProviderSpecificDetails.type.modelProperties, + recoveryPoints: { + serializedName: "recoveryPoints", + type: { + name: "Number" + } + }, + applicationConsistentSnapshotFrequencyInHours: { + serializedName: "applicationConsistentSnapshotFrequencyInHours", + type: { + name: "Number" + } + }, + compression: { + serializedName: "compression", + type: { + name: "String" + } + }, + initialReplicationMethod: { + serializedName: "initialReplicationMethod", + type: { + name: "String" + } + }, + onlineReplicationStartTime: { + serializedName: "onlineReplicationStartTime", + type: { + name: "String" + } + }, + offlineReplicationImportPath: { + serializedName: "offlineReplicationImportPath", + type: { + name: "String" + } + }, + offlineReplicationExportPath: { + serializedName: "offlineReplicationExportPath", + type: { + name: "String" + } + }, + replicationPort: { + serializedName: "replicationPort", + type: { + name: "Number" + } + }, + allowedAuthenticationType: { + serializedName: "allowedAuthenticationType", + type: { + name: "Number" + } + }, + replicaDeletionOption: { + serializedName: "replicaDeletionOption", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaBaseReplicationDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplicaBaseReplicationDetails", + type: { + name: "Composite", + polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificSettings", + className: "HyperVReplicaBaseReplicationDetails", + modelProperties: { + ...ReplicationProviderSpecificSettings.type.modelProperties, + lastReplicatedTime: { + serializedName: "lastReplicatedTime", + type: { + name: "DateTime" + } + }, + vmNics: { + serializedName: "vmNics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMNicDetails" + } + } + } + }, + vmId: { + serializedName: "vmId", + type: { + name: "String" + } + }, + vmProtectionState: { + serializedName: "vmProtectionState", + type: { + name: "String" + } + }, + vmProtectionStateDescription: { + serializedName: "vmProtectionStateDescription", + type: { + name: "String" + } + }, + initialReplicationDetails: { + serializedName: "initialReplicationDetails", + type: { + name: "Composite", + className: "InitialReplicationDetails" + } + }, + vMDiskDetails: { + serializedName: "vMDiskDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskDetails" + } + } + } + } + } + } +}; + +export const HyperVReplicaBluePolicyDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplica2012R2", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "HyperVReplicaBluePolicyDetails", + modelProperties: { + ...PolicyProviderSpecificDetails.type.modelProperties, + replicationFrequencyInSeconds: { + serializedName: "replicationFrequencyInSeconds", + type: { + name: "Number" + } + }, + recoveryPoints: { + serializedName: "recoveryPoints", + type: { + name: "Number" + } + }, + applicationConsistentSnapshotFrequencyInHours: { + serializedName: "applicationConsistentSnapshotFrequencyInHours", + type: { + name: "Number" + } + }, + compression: { + serializedName: "compression", + type: { + name: "String" + } + }, + initialReplicationMethod: { + serializedName: "initialReplicationMethod", + type: { + name: "String" + } + }, + onlineReplicationStartTime: { + serializedName: "onlineReplicationStartTime", + type: { + name: "String" + } + }, + offlineReplicationImportPath: { + serializedName: "offlineReplicationImportPath", + type: { + name: "String" + } + }, + offlineReplicationExportPath: { + serializedName: "offlineReplicationExportPath", + type: { + name: "String" + } + }, + replicationPort: { + serializedName: "replicationPort", + type: { + name: "Number" + } + }, + allowedAuthenticationType: { + serializedName: "allowedAuthenticationType", + type: { + name: "Number" + } + }, + replicaDeletionOption: { + serializedName: "replicaDeletionOption", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaPolicyInput: msRest.CompositeMapper = { + serializedName: "HyperVReplica2012", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificInput", + className: "HyperVReplicaPolicyInput", + modelProperties: { + ...PolicyProviderSpecificInput.type.modelProperties, + recoveryPoints: { + serializedName: "recoveryPoints", + type: { + name: "Number" + } + }, + applicationConsistentSnapshotFrequencyInHours: { + serializedName: "applicationConsistentSnapshotFrequencyInHours", + type: { + name: "Number" + } + }, + compression: { + serializedName: "compression", + type: { + name: "String" + } + }, + initialReplicationMethod: { + serializedName: "initialReplicationMethod", + type: { + name: "String" + } + }, + onlineReplicationStartTime: { + serializedName: "onlineReplicationStartTime", + type: { + name: "String" + } + }, + offlineReplicationImportPath: { + serializedName: "offlineReplicationImportPath", + type: { + name: "String" + } + }, + offlineReplicationExportPath: { + serializedName: "offlineReplicationExportPath", + type: { + name: "String" + } + }, + replicationPort: { + serializedName: "replicationPort", + type: { + name: "Number" + } + }, + allowedAuthenticationType: { + serializedName: "allowedAuthenticationType", + type: { + name: "Number" + } + }, + replicaDeletion: { + serializedName: "replicaDeletion", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaBluePolicyInput: msRest.CompositeMapper = { + serializedName: "HyperVReplica2012R2", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificInput", + className: "HyperVReplicaBluePolicyInput", + modelProperties: { + ...HyperVReplicaPolicyInput.type.modelProperties, + replicationFrequencyInSeconds: { + serializedName: "replicationFrequencyInSeconds", + type: { + name: "Number" + } + } + } + } +}; + +export const HyperVReplicaBlueReplicationDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplica2012R2", + type: { + name: "Composite", + polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificSettings", + className: "HyperVReplicaBlueReplicationDetails", + modelProperties: { + ...ReplicationProviderSpecificSettings.type.modelProperties, + lastReplicatedTime: { + serializedName: "lastReplicatedTime", + type: { + name: "DateTime" + } + }, + vmNics: { + serializedName: "vmNics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMNicDetails" + } + } + } + }, + vmId: { + serializedName: "vmId", + type: { + name: "String" + } + }, + vmProtectionState: { + serializedName: "vmProtectionState", + type: { + name: "String" + } + }, + vmProtectionStateDescription: { + serializedName: "vmProtectionStateDescription", + type: { + name: "String" + } + }, + initialReplicationDetails: { + serializedName: "initialReplicationDetails", + type: { + name: "Composite", + className: "InitialReplicationDetails" + } + }, + vMDiskDetails: { + serializedName: "vMDiskDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskDetails" + } + } + } + } + } + } +}; + +export const HyperVReplicaPolicyDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplica2012", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "HyperVReplicaPolicyDetails", + modelProperties: { + ...PolicyProviderSpecificDetails.type.modelProperties, + recoveryPoints: { + serializedName: "recoveryPoints", + type: { + name: "Number" + } + }, + applicationConsistentSnapshotFrequencyInHours: { + serializedName: "applicationConsistentSnapshotFrequencyInHours", + type: { + name: "Number" + } + }, + compression: { + serializedName: "compression", + type: { + name: "String" + } + }, + initialReplicationMethod: { + serializedName: "initialReplicationMethod", + type: { + name: "String" + } + }, + onlineReplicationStartTime: { + serializedName: "onlineReplicationStartTime", + type: { + name: "String" + } + }, + offlineReplicationImportPath: { + serializedName: "offlineReplicationImportPath", + type: { + name: "String" + } + }, + offlineReplicationExportPath: { + serializedName: "offlineReplicationExportPath", + type: { + name: "String" + } + }, + replicationPort: { + serializedName: "replicationPort", + type: { + name: "Number" + } + }, + allowedAuthenticationType: { + serializedName: "allowedAuthenticationType", + type: { + name: "Number" + } + }, + replicaDeletionOption: { + serializedName: "replicaDeletionOption", + type: { + name: "String" + } + } + } + } +}; + +export const HyperVReplicaReplicationDetails: msRest.CompositeMapper = { + serializedName: "HyperVReplica2012", + type: { + name: "Composite", + polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificSettings", + className: "HyperVReplicaReplicationDetails", + modelProperties: { + ...ReplicationProviderSpecificSettings.type.modelProperties, + lastReplicatedTime: { + serializedName: "lastReplicatedTime", + type: { + name: "DateTime" + } + }, + vmNics: { + serializedName: "vmNics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMNicDetails" + } + } + } + }, + vmId: { + serializedName: "vmId", + type: { + name: "String" + } + }, + vmProtectionState: { + serializedName: "vmProtectionState", + type: { + name: "String" + } + }, + vmProtectionStateDescription: { + serializedName: "vmProtectionStateDescription", + type: { + name: "String" + } + }, + initialReplicationDetails: { + serializedName: "initialReplicationDetails", + type: { + name: "Composite", + className: "InitialReplicationDetails" + } + }, + vMDiskDetails: { + serializedName: "vMDiskDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskDetails" + } + } + } + } + } + } +}; + +export const HyperVSiteDetails: msRest.CompositeMapper = { + serializedName: "HyperVSite", + type: { + name: "Composite", + polymorphicDiscriminator: FabricSpecificDetails.type.polymorphicDiscriminator, + uberParent: "FabricSpecificDetails", + className: "HyperVSiteDetails", + modelProperties: { + ...FabricSpecificDetails.type.modelProperties, + hyperVHosts: { + serializedName: "hyperVHosts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HyperVHostDetails" + } + } + } + } + } + } +}; + +export const HyperVVirtualMachineDetails: msRest.CompositeMapper = { + serializedName: "HyperVVirtualMachine", + type: { + name: "Composite", + polymorphicDiscriminator: ConfigurationSettings.type.polymorphicDiscriminator, + uberParent: "ConfigurationSettings", + className: "HyperVVirtualMachineDetails", + modelProperties: { + ...ConfigurationSettings.type.modelProperties, + sourceItemId: { + serializedName: "sourceItemId", + type: { + name: "String" + } + }, + generation: { + serializedName: "generation", + type: { + name: "String" + } + }, + osDetails: { + serializedName: "osDetails", + type: { + name: "Composite", + className: "OSDetails" + } + }, + diskDetails: { + serializedName: "diskDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskDetails" + } + } + } + }, + hasPhysicalDisk: { + serializedName: "hasPhysicalDisk", + type: { + name: "String" + } + }, + hasFibreChannelAdapter: { + serializedName: "hasFibreChannelAdapter", + type: { + name: "String" + } + }, + hasSharedVhd: { + serializedName: "hasSharedVhd", + type: { + name: "String" + } + } + } + } +}; + +export const IdentityProviderDetails: msRest.CompositeMapper = { + serializedName: "IdentityProviderDetails", + type: { + name: "Composite", + className: "IdentityProviderDetails", + modelProperties: { + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + }, + applicationId: { + serializedName: "applicationId", + type: { + name: "String" + } + }, + objectId: { + serializedName: "objectId", + type: { + name: "String" + } + }, + audience: { + serializedName: "audience", + type: { + name: "String" + } + }, + aadAuthority: { + serializedName: "aadAuthority", + type: { + name: "String" + } + } + } + } +}; + +export const InlineWorkflowTaskDetails: msRest.CompositeMapper = { + serializedName: "InlineWorkflowTaskDetails", + type: { + name: "Composite", + polymorphicDiscriminator: GroupTaskDetails.type.polymorphicDiscriminator, + uberParent: "GroupTaskDetails", + className: "InlineWorkflowTaskDetails", + modelProperties: { + ...GroupTaskDetails.type.modelProperties, + workflowIds: { + serializedName: "workflowIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const InMageAgentDetails: msRest.CompositeMapper = { + serializedName: "InMageAgentDetails", + type: { + name: "Composite", + className: "InMageAgentDetails", + modelProperties: { + agentVersion: { + serializedName: "agentVersion", + type: { + name: "String" + } + }, + agentUpdateStatus: { + serializedName: "agentUpdateStatus", + type: { + name: "String" + } + }, + postUpdateRebootStatus: { + serializedName: "postUpdateRebootStatus", + type: { + name: "String" + } + }, + agentExpiryDate: { + serializedName: "agentExpiryDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const InMageAzureV2ApplyRecoveryPointInput: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: ApplyRecoveryPointProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ApplyRecoveryPointProviderSpecificInput", + className: "InMageAzureV2ApplyRecoveryPointInput", + modelProperties: { + ...ApplyRecoveryPointProviderSpecificInput.type.modelProperties + } + } +}; + +export const InMageAzureV2DiskInputDetails: msRest.CompositeMapper = { + serializedName: "InMageAzureV2DiskInputDetails", + type: { + name: "Composite", + className: "InMageAzureV2DiskInputDetails", + modelProperties: { + diskId: { + serializedName: "diskId", + type: { + name: "String" + } + }, + logStorageAccountId: { + serializedName: "logStorageAccountId", + type: { + name: "String" + } + }, + diskType: { + serializedName: "diskType", + type: { + name: "String" + } + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + } + } + } +}; + +export const InMageAzureV2EnableProtectionInput: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "EnableProtectionProviderSpecificInput", + className: "InMageAzureV2EnableProtectionInput", + modelProperties: { + ...EnableProtectionProviderSpecificInput.type.modelProperties, + masterTargetId: { + serializedName: "masterTargetId", + type: { + name: "String" + } + }, + processServerId: { + serializedName: "processServerId", + type: { + name: "String" + } + }, + storageAccountId: { + serializedName: "storageAccountId", + type: { + name: "String" + } + }, + runAsAccountId: { + serializedName: "runAsAccountId", + type: { + name: "String" + } + }, + multiVmGroupId: { + serializedName: "multiVmGroupId", + type: { + name: "String" + } + }, + multiVmGroupName: { + serializedName: "multiVmGroupName", + type: { + name: "String" + } + }, + disksToInclude: { + serializedName: "disksToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageAzureV2DiskInputDetails" + } + } + } + }, + targetAzureNetworkId: { + serializedName: "targetAzureNetworkId", + type: { + name: "String" + } + }, + targetAzureSubnetId: { + serializedName: "targetAzureSubnetId", + type: { + name: "String" + } + }, + enableRdpOnTargetOption: { + serializedName: "enableRdpOnTargetOption", + type: { + name: "String" + } + }, + targetAzureVmName: { + serializedName: "targetAzureVmName", + type: { + name: "String" + } + }, + logStorageAccountId: { + serializedName: "logStorageAccountId", + type: { + name: "String" + } + }, + targetAzureV1ResourceGroupId: { + serializedName: "targetAzureV1ResourceGroupId", + type: { + name: "String" + } + }, + targetAzureV2ResourceGroupId: { + serializedName: "targetAzureV2ResourceGroupId", + type: { + name: "String" + } + }, + diskType: { + serializedName: "diskType", + type: { + name: "String" + } + }, + targetAvailabilitySetId: { + serializedName: "targetAvailabilitySetId", + type: { + name: "String" + } + }, + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", + type: { + name: "String" + } + }, + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", + type: { + name: "String" + } + }, + licenseType: { + serializedName: "licenseType", + type: { + name: "String" + } + }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", + type: { + name: "String" + } + }, + targetVmSize: { + serializedName: "targetVmSize", + type: { + name: "String" + } + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + seedManagedDiskTags: { + serializedName: "seedManagedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetManagedDiskTags: { + serializedName: "targetManagedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetNicTags: { + serializedName: "targetNicTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const InMageAzureV2EventDetails: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "EventProviderSpecificDetails", + className: "InMageAzureV2EventDetails", + modelProperties: { + ...EventProviderSpecificDetails.type.modelProperties, + eventType: { + serializedName: "eventType", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + component: { + serializedName: "component", + type: { + name: "String" + } + }, + correctiveAction: { + serializedName: "correctiveAction", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "String" + } + }, + summary: { + serializedName: "summary", + type: { + name: "String" + } + }, + siteName: { + serializedName: "siteName", + type: { + name: "String" + } + } + } + } +}; + +export const InMageAzureV2ManagedDiskDetails: msRest.CompositeMapper = { + serializedName: "InMageAzureV2ManagedDiskDetails", + type: { + name: "Composite", + className: "InMageAzureV2ManagedDiskDetails", + modelProperties: { + diskId: { + serializedName: "diskId", + type: { + name: "String" + } + }, + seedManagedDiskId: { + serializedName: "seedManagedDiskId", + type: { + name: "String" + } + }, + replicaDiskType: { + serializedName: "replicaDiskType", + type: { + name: "String" + } + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + } + } + } +}; + +export const InMageAzureV2PolicyDetails: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "InMageAzureV2PolicyDetails", + modelProperties: { + ...PolicyProviderSpecificDetails.type.modelProperties, + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + recoveryPointThresholdInMinutes: { + serializedName: "recoveryPointThresholdInMinutes", + type: { + name: "Number" + } + }, + recoveryPointHistory: { + serializedName: "recoveryPointHistory", + type: { + name: "Number" + } + }, + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + multiVmSyncStatus: { + serializedName: "multiVmSyncStatus", + type: { + name: "String" + } + } + } + } +}; + +export const InMageAzureV2PolicyInput: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificInput", + className: "InMageAzureV2PolicyInput", + modelProperties: { + ...PolicyProviderSpecificInput.type.modelProperties, + recoveryPointThresholdInMinutes: { + serializedName: "recoveryPointThresholdInMinutes", + type: { + name: "Number" + } + }, + recoveryPointHistory: { + serializedName: "recoveryPointHistory", + type: { + name: "Number" + } + }, + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + multiVmSyncStatus: { + required: true, + serializedName: "multiVmSyncStatus", + type: { + name: "String" + } + } + } + } +}; + +export const InMageAzureV2ProtectedDiskDetails: msRest.CompositeMapper = { + serializedName: "InMageAzureV2ProtectedDiskDetails", + type: { + name: "Composite", + className: "InMageAzureV2ProtectedDiskDetails", + modelProperties: { + diskId: { + serializedName: "diskId", + type: { + name: "String" + } + }, + diskName: { + serializedName: "diskName", + type: { + name: "String" + } + }, + protectionStage: { + serializedName: "protectionStage", + type: { + name: "String" + } + }, + healthErrorCode: { + serializedName: "healthErrorCode", + type: { + name: "String" + } + }, + rpoInSeconds: { + serializedName: "rpoInSeconds", + type: { + name: "Number" + } + }, + resyncRequired: { + serializedName: "resyncRequired", + type: { + name: "String" + } + }, + resyncProgressPercentage: { + serializedName: "resyncProgressPercentage", + type: { + name: "Number" + } + }, + resyncDurationInSeconds: { + serializedName: "resyncDurationInSeconds", + type: { + name: "Number" + } + }, + diskCapacityInBytes: { + serializedName: "diskCapacityInBytes", + type: { + name: "Number" + } + }, + fileSystemCapacityInBytes: { + serializedName: "fileSystemCapacityInBytes", + type: { + name: "Number" + } + }, + sourceDataInMegaBytes: { + serializedName: "sourceDataInMegaBytes", + type: { + name: "Number" + } + }, + psDataInMegaBytes: { + serializedName: "psDataInMegaBytes", + type: { + name: "Number" + } + }, + targetDataInMegaBytes: { + serializedName: "targetDataInMegaBytes", + type: { + name: "Number" + } + }, + diskResized: { + serializedName: "diskResized", + type: { + name: "String" + } + }, + lastRpoCalculatedTime: { + serializedName: "lastRpoCalculatedTime", + type: { + name: "DateTime" + } + }, + resyncProcessedBytes: { + serializedName: "resyncProcessedBytes", + type: { + name: "Number" + } + }, + resyncTotalTransferredBytes: { + serializedName: "resyncTotalTransferredBytes", + type: { + name: "Number" + } + }, + resyncLast15MinutesTransferredBytes: { + serializedName: "resyncLast15MinutesTransferredBytes", + type: { + name: "Number" + } + }, + resyncLastDataTransferTimeUTC: { + serializedName: "resyncLastDataTransferTimeUTC", + type: { + name: "DateTime" + } + }, + resyncStartTime: { + serializedName: "resyncStartTime", + type: { + name: "DateTime" + } + }, + progressHealth: { + serializedName: "progressHealth", + type: { + name: "String" + } + }, + progressStatus: { + serializedName: "progressStatus", + type: { + name: "String" + } + } + } + } +}; + +export const InMageAzureV2RecoveryPointDetails: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: ProviderSpecificRecoveryPointDetails.type.polymorphicDiscriminator, + uberParent: "ProviderSpecificRecoveryPointDetails", + className: "InMageAzureV2RecoveryPointDetails", + modelProperties: { + ...ProviderSpecificRecoveryPointDetails.type.modelProperties, + isMultiVmSyncPoint: { + serializedName: "isMultiVmSyncPoint", + type: { + name: "String" + } + } + } + } +}; + +export const InMageAzureV2ReplicationDetails: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificSettings", + className: "InMageAzureV2ReplicationDetails", + modelProperties: { + ...ReplicationProviderSpecificSettings.type.modelProperties, + infrastructureVmId: { + serializedName: "infrastructureVmId", + type: { + name: "String" + } + }, + vCenterInfrastructureId: { + serializedName: "vCenterInfrastructureId", + type: { + name: "String" + } + }, + protectionStage: { + serializedName: "protectionStage", + type: { + name: "String" + } + }, + vmId: { + serializedName: "vmId", + type: { + name: "String" + } + }, + vmProtectionState: { + serializedName: "vmProtectionState", + type: { + name: "String" + } + }, + vmProtectionStateDescription: { + serializedName: "vmProtectionStateDescription", + type: { + name: "String" + } + }, + resyncProgressPercentage: { + serializedName: "resyncProgressPercentage", + type: { + name: "Number" + } + }, + rpoInSeconds: { + serializedName: "rpoInSeconds", + type: { + name: "Number" + } + }, + compressedDataRateInMB: { + serializedName: "compressedDataRateInMB", + type: { + name: "Number" + } + }, + uncompressedDataRateInMB: { + serializedName: "uncompressedDataRateInMB", + type: { + name: "Number" + } + }, + ipAddress: { + serializedName: "ipAddress", + type: { + name: "String" + } + }, + agentVersion: { + serializedName: "agentVersion", + type: { + name: "String" + } + }, + agentExpiryDate: { + serializedName: "agentExpiryDate", + type: { + name: "DateTime" + } + }, + isAgentUpdateRequired: { + serializedName: "isAgentUpdateRequired", + type: { + name: "String" + } + }, + isRebootAfterUpdateRequired: { + serializedName: "isRebootAfterUpdateRequired", + type: { + name: "String" + } + }, + lastHeartbeat: { + serializedName: "lastHeartbeat", + type: { + name: "DateTime" + } + }, + processServerId: { + serializedName: "processServerId", + type: { + name: "String" + } + }, + processServerName: { + serializedName: "processServerName", + type: { + name: "String" + } + }, + multiVmGroupId: { + serializedName: "multiVmGroupId", + type: { + name: "String" + } + }, + multiVmGroupName: { + serializedName: "multiVmGroupName", + type: { + name: "String" + } + }, + multiVmSyncStatus: { + serializedName: "multiVmSyncStatus", + type: { + name: "String" + } + }, + protectedDisks: { + serializedName: "protectedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageAzureV2ProtectedDiskDetails" + } + } + } + }, + diskResized: { + serializedName: "diskResized", + type: { + name: "String" + } + }, + masterTargetId: { + serializedName: "masterTargetId", + type: { + name: "String" + } + }, + sourceVmCpuCount: { + serializedName: "sourceVmCpuCount", + type: { + name: "Number" + } + }, + sourceVmRamSizeInMB: { + serializedName: "sourceVmRamSizeInMB", + type: { + name: "Number" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + vhdName: { + serializedName: "vhdName", + type: { + name: "String" + } + }, + osDiskId: { + serializedName: "osDiskId", + type: { + name: "String" + } + }, + azureVMDiskDetails: { + serializedName: "azureVMDiskDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureVmDiskDetails" + } + } + } + }, + recoveryAzureVMName: { + serializedName: "recoveryAzureVMName", + type: { + name: "String" + } + }, + recoveryAzureVMSize: { + serializedName: "recoveryAzureVMSize", + type: { + name: "String" + } + }, + recoveryAzureStorageAccount: { + serializedName: "recoveryAzureStorageAccount", + type: { + name: "String" + } + }, + recoveryAzureLogStorageAccountId: { + serializedName: "recoveryAzureLogStorageAccountId", + type: { + name: "String" + } + }, + vmNics: { + serializedName: "vmNics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMNicDetails" + } + } + } + }, + selectedRecoveryAzureNetworkId: { + serializedName: "selectedRecoveryAzureNetworkId", + type: { + name: "String" + } + }, + selectedTfoAzureNetworkId: { + serializedName: "selectedTfoAzureNetworkId", + type: { + name: "String" + } + }, + selectedSourceNicId: { + serializedName: "selectedSourceNicId", + type: { + name: "String" + } + }, + discoveryType: { + serializedName: "discoveryType", + type: { + name: "String" + } + }, + enableRdpOnTargetOption: { + serializedName: "enableRdpOnTargetOption", + type: { + name: "String" + } + }, + datastores: { + serializedName: "datastores", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + targetVmId: { + serializedName: "targetVmId", + type: { + name: "String" + } + }, + recoveryAzureResourceGroupId: { + serializedName: "recoveryAzureResourceGroupId", + type: { + name: "String" + } + }, + recoveryAvailabilitySetId: { + serializedName: "recoveryAvailabilitySetId", + type: { + name: "String" + } + }, + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", + type: { + name: "String" + } + }, + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", + type: { + name: "String" + } + }, + useManagedDisks: { + serializedName: "useManagedDisks", + type: { + name: "String" + } + }, + licenseType: { + serializedName: "licenseType", + type: { + name: "String" + } + }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", + type: { + name: "String" + } + }, + validationErrors: { + serializedName: "validationErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } + } + }, + lastRpoCalculatedTime: { + serializedName: "lastRpoCalculatedTime", + type: { + name: "DateTime" + } + }, + lastUpdateReceivedTime: { + serializedName: "lastUpdateReceivedTime", + type: { + name: "DateTime" + } + }, + replicaId: { + serializedName: "replicaId", + type: { + name: "String" + } + }, + osVersion: { + serializedName: "osVersion", + type: { + name: "String" + } + }, + protectedManagedDisks: { + serializedName: "protectedManagedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageAzureV2ManagedDiskDetails" + } + } + } + }, + lastRecoveryPointReceived: { + readOnly: true, + serializedName: "lastRecoveryPointReceived", + type: { + name: "DateTime" + } + }, + firmwareType: { + serializedName: "firmwareType", + type: { + name: "String" + } + }, + azureVmGeneration: { + serializedName: "azureVmGeneration", + type: { + name: "String" + } + }, + isAdditionalStatsAvailable: { + serializedName: "isAdditionalStatsAvailable", + type: { + name: "Boolean" + } + }, + totalDataTransferred: { + serializedName: "totalDataTransferred", + type: { + name: "Number" + } + }, + totalProgressHealth: { + serializedName: "totalProgressHealth", + type: { + name: "String" + } + }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + seedManagedDiskTags: { + serializedName: "seedManagedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetManagedDiskTags: { + serializedName: "targetManagedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetNicTags: { + serializedName: "targetNicTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const InMageAzureV2ReprotectInput: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: ReverseReplicationProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ReverseReplicationProviderSpecificInput", + className: "InMageAzureV2ReprotectInput", + modelProperties: { + ...ReverseReplicationProviderSpecificInput.type.modelProperties, + masterTargetId: { + serializedName: "masterTargetId", + type: { + name: "String" + } + }, + processServerId: { + serializedName: "processServerId", + type: { + name: "String" + } + }, + storageAccountId: { + serializedName: "storageAccountId", + type: { + name: "String" + } + }, + runAsAccountId: { + serializedName: "runAsAccountId", + type: { + name: "String" + } + }, + policyId: { + serializedName: "policyId", + type: { + name: "String" + } + }, + logStorageAccountId: { + serializedName: "logStorageAccountId", + type: { + name: "String" + } + }, + disksToInclude: { + serializedName: "disksToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const InMageAzureV2TestFailoverInput: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "TestFailoverProviderSpecificInput", + className: "InMageAzureV2TestFailoverInput", + modelProperties: { + ...TestFailoverProviderSpecificInput.type.modelProperties, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + } + } + } +}; + +export const InMageAzureV2UnplannedFailoverInput: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "UnplannedFailoverProviderSpecificInput", + className: "InMageAzureV2UnplannedFailoverInput", + modelProperties: { + ...UnplannedFailoverProviderSpecificInput.type.modelProperties, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + } + } + } +}; + +export const InMageAzureV2UpdateReplicationProtectedItemInput: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: UpdateReplicationProtectedItemProviderInput.type.polymorphicDiscriminator, + uberParent: "UpdateReplicationProtectedItemProviderInput", + className: "InMageAzureV2UpdateReplicationProtectedItemInput", + modelProperties: { + ...UpdateReplicationProtectedItemProviderInput.type.modelProperties, + recoveryAzureV1ResourceGroupId: { + serializedName: "recoveryAzureV1ResourceGroupId", + type: { + name: "String" + } + }, + recoveryAzureV2ResourceGroupId: { + serializedName: "recoveryAzureV2ResourceGroupId", + type: { + name: "String" + } + }, + useManagedDisks: { + serializedName: "useManagedDisks", + type: { + name: "String" + } + }, + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", + type: { + name: "String" + } + }, + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", + type: { + name: "String" + } + }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetManagedDiskTags: { + serializedName: "targetManagedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetNicTags: { + serializedName: "targetNicTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", + type: { + name: "String" + } + } + } + } +}; + +export const InMageBasePolicyDetails: msRest.CompositeMapper = { + serializedName: "InMageBasePolicyDetails", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "InMageBasePolicyDetails", + modelProperties: { + ...PolicyProviderSpecificDetails.type.modelProperties, + recoveryPointThresholdInMinutes: { + serializedName: "recoveryPointThresholdInMinutes", + type: { + name: "Number" + } + }, + recoveryPointHistory: { + serializedName: "recoveryPointHistory", + type: { + name: "Number" + } + }, + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + multiVmSyncStatus: { + serializedName: "multiVmSyncStatus", + type: { + name: "String" + } + } + } + } +}; + +export const InMageDisableProtectionProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "InMage", + type: { + name: "Composite", + polymorphicDiscriminator: DisableProtectionProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "DisableProtectionProviderSpecificInput", + className: "InMageDisableProtectionProviderSpecificInput", + modelProperties: { + ...DisableProtectionProviderSpecificInput.type.modelProperties, + replicaVmDeletionStatus: { + serializedName: "replicaVmDeletionStatus", + type: { + name: "String" + } + } + } + } +}; + +export const InMageDiskDetails: msRest.CompositeMapper = { + serializedName: "InMageDiskDetails", + type: { + name: "Composite", + className: "InMageDiskDetails", + modelProperties: { + diskId: { + serializedName: "diskId", + type: { + name: "String" + } + }, + diskName: { + serializedName: "diskName", + type: { + name: "String" + } + }, + diskSizeInMB: { + serializedName: "diskSizeInMB", + type: { + name: "String" + } + }, + diskType: { + serializedName: "diskType", + type: { + name: "String" + } + }, + diskConfiguration: { + serializedName: "diskConfiguration", + type: { + name: "String" + } + }, + volumeList: { + serializedName: "volumeList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskVolumeDetails" + } + } + } + } + } + } +}; + +export const InMageVolumeExclusionOptions: msRest.CompositeMapper = { + serializedName: "InMageVolumeExclusionOptions", + type: { + name: "Composite", + className: "InMageVolumeExclusionOptions", + modelProperties: { + volumeLabel: { + serializedName: "volumeLabel", + type: { + name: "String" + } + }, + onlyExcludeIfSingleVolume: { + serializedName: "onlyExcludeIfSingleVolume", + type: { + name: "String" + } + } + } + } +}; + +export const InMageDiskSignatureExclusionOptions: msRest.CompositeMapper = { + serializedName: "InMageDiskSignatureExclusionOptions", + type: { + name: "Composite", + className: "InMageDiskSignatureExclusionOptions", + modelProperties: { + diskSignature: { + serializedName: "diskSignature", + type: { + name: "String" + } + } + } + } +}; + +export const InMageDiskExclusionInput: msRest.CompositeMapper = { + serializedName: "InMageDiskExclusionInput", + type: { + name: "Composite", + className: "InMageDiskExclusionInput", + modelProperties: { + volumeOptions: { + serializedName: "volumeOptions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageVolumeExclusionOptions" + } + } + } + }, + diskSignatureOptions: { + serializedName: "diskSignatureOptions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageDiskSignatureExclusionOptions" + } + } + } + } + } + } +}; + +export const InMageEnableProtectionInput: msRest.CompositeMapper = { + serializedName: "InMage", + type: { + name: "Composite", + polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "EnableProtectionProviderSpecificInput", + className: "InMageEnableProtectionInput", + modelProperties: { + ...EnableProtectionProviderSpecificInput.type.modelProperties, + vmFriendlyName: { + serializedName: "vmFriendlyName", + type: { + name: "String" + } + }, + masterTargetId: { + required: true, + serializedName: "masterTargetId", + type: { + name: "String" + } + }, + processServerId: { + required: true, + serializedName: "processServerId", + type: { + name: "String" + } + }, + retentionDrive: { + required: true, + serializedName: "retentionDrive", + type: { + name: "String" + } + }, + runAsAccountId: { + serializedName: "runAsAccountId", + type: { + name: "String" + } + }, + multiVmGroupId: { + required: true, + serializedName: "multiVmGroupId", + type: { + name: "String" + } + }, + multiVmGroupName: { + required: true, + serializedName: "multiVmGroupName", + type: { + name: "String" + } + }, + datastoreName: { + serializedName: "datastoreName", + type: { + name: "String" + } + }, + diskExclusionInput: { + serializedName: "diskExclusionInput", + type: { + name: "Composite", + className: "InMageDiskExclusionInput" + } + }, + disksToInclude: { + serializedName: "disksToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const InMagePolicyDetails: msRest.CompositeMapper = { + serializedName: "InMage", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "InMagePolicyDetails", + modelProperties: { + ...PolicyProviderSpecificDetails.type.modelProperties, + recoveryPointThresholdInMinutes: { + serializedName: "recoveryPointThresholdInMinutes", + type: { + name: "Number" + } + }, + recoveryPointHistory: { + serializedName: "recoveryPointHistory", + type: { + name: "Number" + } + }, + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + multiVmSyncStatus: { + serializedName: "multiVmSyncStatus", + type: { + name: "String" + } + } + } + } +}; + +export const InMagePolicyInput: msRest.CompositeMapper = { + serializedName: "InMage", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificInput", + className: "InMagePolicyInput", + modelProperties: { + ...PolicyProviderSpecificInput.type.modelProperties, + recoveryPointThresholdInMinutes: { + serializedName: "recoveryPointThresholdInMinutes", + type: { + name: "Number" + } + }, + recoveryPointHistory: { + serializedName: "recoveryPointHistory", + type: { + name: "Number" + } + }, + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + multiVmSyncStatus: { + required: true, + serializedName: "multiVmSyncStatus", + type: { + name: "String" + } + } + } + } +}; + +export const InMageProtectedDiskDetails: msRest.CompositeMapper = { + serializedName: "InMageProtectedDiskDetails", + type: { + name: "Composite", + className: "InMageProtectedDiskDetails", + modelProperties: { + diskId: { + serializedName: "diskId", + type: { + name: "String" + } + }, + diskName: { + serializedName: "diskName", + type: { + name: "String" + } + }, + protectionStage: { + serializedName: "protectionStage", + type: { + name: "String" + } + }, + healthErrorCode: { + serializedName: "healthErrorCode", + type: { + name: "String" + } + }, + rpoInSeconds: { + serializedName: "rpoInSeconds", + type: { + name: "Number" + } + }, + resyncRequired: { + serializedName: "resyncRequired", + type: { + name: "String" + } + }, + resyncProgressPercentage: { + serializedName: "resyncProgressPercentage", + type: { + name: "Number" + } + }, + resyncDurationInSeconds: { + serializedName: "resyncDurationInSeconds", + type: { + name: "Number" + } + }, + diskCapacityInBytes: { + serializedName: "diskCapacityInBytes", + type: { + name: "Number" + } + }, + fileSystemCapacityInBytes: { + serializedName: "fileSystemCapacityInBytes", + type: { + name: "Number" + } + }, + sourceDataInMB: { + serializedName: "sourceDataInMB", + type: { + name: "Number" + } + }, + psDataInMB: { + serializedName: "psDataInMB", + type: { + name: "Number" + } + }, + targetDataInMB: { + serializedName: "targetDataInMB", + type: { + name: "Number" + } + }, + diskResized: { + serializedName: "diskResized", + type: { + name: "String" + } + }, + lastRpoCalculatedTime: { + serializedName: "lastRpoCalculatedTime", + type: { + name: "DateTime" + } + }, + resyncProcessedBytes: { + serializedName: "resyncProcessedBytes", + type: { + name: "Number" + } + }, + resyncTotalTransferredBytes: { + serializedName: "resyncTotalTransferredBytes", + type: { + name: "Number" + } + }, + resyncLast15MinutesTransferredBytes: { + serializedName: "resyncLast15MinutesTransferredBytes", + type: { + name: "Number" + } + }, + resyncLastDataTransferTimeUTC: { + serializedName: "resyncLastDataTransferTimeUTC", + type: { + name: "DateTime" + } + }, + resyncStartTime: { + serializedName: "resyncStartTime", + type: { + name: "DateTime" + } + }, + progressHealth: { + serializedName: "progressHealth", + type: { + name: "String" + } + }, + progressStatus: { + serializedName: "progressStatus", + type: { + name: "String" + } + } + } + } +}; + +export const InMageRcmAgentUpgradeBlockingErrorDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmAgentUpgradeBlockingErrorDetails", + type: { + name: "Composite", + className: "InMageRcmAgentUpgradeBlockingErrorDetails", + modelProperties: { + errorCode: { + readOnly: true, + serializedName: "errorCode", + type: { + name: "String" + } + }, + errorMessage: { + readOnly: true, + serializedName: "errorMessage", + type: { + name: "String" + } + }, + possibleCauses: { + readOnly: true, + serializedName: "possibleCauses", + type: { + name: "String" + } + }, + recommendedAction: { + readOnly: true, + serializedName: "recommendedAction", + type: { + name: "String" + } + }, + errorMessageParameters: { + readOnly: true, + serializedName: "errorMessageParameters", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + errorTags: { + readOnly: true, + serializedName: "errorTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const InMageRcmApplyRecoveryPointInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", + type: { + name: "Composite", + polymorphicDiscriminator: ApplyRecoveryPointProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ApplyRecoveryPointProviderSpecificInput", + className: "InMageRcmApplyRecoveryPointInput", + modelProperties: { + ...ApplyRecoveryPointProviderSpecificInput.type.modelProperties, + recoveryPointId: { + required: true, + serializedName: "recoveryPointId", + type: { + name: "String" + } + } + } + } +}; + +export const InMageRcmDiscoveredProtectedVmDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmDiscoveredProtectedVmDetails", + type: { + name: "Composite", + className: "InMageRcmDiscoveredProtectedVmDetails", + modelProperties: { + vCenterId: { + readOnly: true, + serializedName: "vCenterId", + type: { + name: "String" + } + }, + vCenterFqdn: { + readOnly: true, + serializedName: "vCenterFqdn", + type: { + name: "String" + } + }, + datastores: { + readOnly: true, + serializedName: "datastores", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + ipAddresses: { + readOnly: true, + serializedName: "ipAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + vmwareToolsStatus: { + readOnly: true, + serializedName: "vmwareToolsStatus", + type: { + name: "String" + } + }, + powerStatus: { + readOnly: true, + serializedName: "powerStatus", + type: { + name: "String" + } + }, + vmFqdn: { + readOnly: true, + serializedName: "vmFqdn", + type: { + name: "String" + } + }, + osName: { + readOnly: true, + serializedName: "osName", + type: { + name: "String" + } + }, + createdTimestamp: { + readOnly: true, + serializedName: "createdTimestamp", + type: { + name: "DateTime" + } + }, + updatedTimestamp: { + readOnly: true, + serializedName: "updatedTimestamp", + type: { + name: "DateTime" + } + }, + isDeleted: { + readOnly: true, + serializedName: "isDeleted", + type: { + name: "Boolean" + } + }, + lastDiscoveryTimeInUtc: { + readOnly: true, + serializedName: "lastDiscoveryTimeInUtc", + type: { + name: "DateTime" + } + } + } + } +}; + +export const InMageRcmDiskInput: msRest.CompositeMapper = { + serializedName: "InMageRcmDiskInput", + type: { + name: "Composite", + className: "InMageRcmDiskInput", + modelProperties: { + diskId: { + required: true, + serializedName: "diskId", + type: { + name: "String" + } + }, + logStorageAccountId: { + required: true, + serializedName: "logStorageAccountId", + type: { + name: "String" + } + }, + diskType: { + required: true, + serializedName: "diskType", + type: { + name: "String" + } + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + } + } + } +}; + +export const InMageRcmDisksDefaultInput: msRest.CompositeMapper = { + serializedName: "InMageRcmDisksDefaultInput", + type: { + name: "Composite", + className: "InMageRcmDisksDefaultInput", + modelProperties: { + logStorageAccountId: { + required: true, + serializedName: "logStorageAccountId", + type: { + name: "String" + } + }, + diskType: { + required: true, + serializedName: "diskType", + type: { + name: "String" + } + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + } + } + } +}; + +export const InMageRcmEnableProtectionInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", + type: { + name: "Composite", + polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "EnableProtectionProviderSpecificInput", + className: "InMageRcmEnableProtectionInput", + modelProperties: { + ...EnableProtectionProviderSpecificInput.type.modelProperties, + fabricDiscoveryMachineId: { + required: true, + serializedName: "fabricDiscoveryMachineId", + type: { + name: "String" + } + }, + disksToInclude: { + serializedName: "disksToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageRcmDiskInput" + } + } + } + }, + disksDefault: { + serializedName: "disksDefault", + type: { + name: "Composite", + className: "InMageRcmDisksDefaultInput" + } + }, + targetResourceGroupId: { + required: true, + serializedName: "targetResourceGroupId", + type: { + name: "String" + } + }, + targetNetworkId: { + serializedName: "targetNetworkId", + type: { + name: "String" + } + }, + testNetworkId: { + serializedName: "testNetworkId", + type: { + name: "String" + } + }, + targetSubnetName: { + serializedName: "targetSubnetName", + type: { + name: "String" + } + }, + testSubnetName: { + serializedName: "testSubnetName", + type: { + name: "String" + } + }, + targetVmName: { + serializedName: "targetVmName", + type: { + name: "String" + } + }, + targetVmSize: { + serializedName: "targetVmSize", + type: { + name: "String" + } + }, + licenseType: { + serializedName: "licenseType", + type: { + name: "String" + } + }, + targetAvailabilitySetId: { + serializedName: "targetAvailabilitySetId", + type: { + name: "String" + } + }, + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", + type: { + name: "String" + } + }, + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", + type: { + name: "String" + } + }, + targetBootDiagnosticsStorageAccountId: { + serializedName: "targetBootDiagnosticsStorageAccountId", + type: { + name: "String" + } + }, + runAsAccountId: { + serializedName: "runAsAccountId", + type: { + name: "String" + } + }, + processServerId: { + required: true, + serializedName: "processServerId", + type: { + name: "String" + } + }, + multiVmGroupName: { + serializedName: "multiVmGroupName", + type: { + name: "String" + } + } + } + } +}; + +export const InMageRcmEventDetails: msRest.CompositeMapper = { + serializedName: "InMageRcm", + type: { + name: "Composite", + polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "EventProviderSpecificDetails", + className: "InMageRcmEventDetails", + modelProperties: { + ...EventProviderSpecificDetails.type.modelProperties, + protectedItemName: { + readOnly: true, + serializedName: "protectedItemName", + type: { + name: "String" + } + }, + vmName: { + readOnly: true, + serializedName: "vmName", + type: { + name: "String" + } + }, + latestAgentVersion: { + readOnly: true, + serializedName: "latestAgentVersion", + type: { + name: "String" + } + }, + jobId: { + readOnly: true, + serializedName: "jobId", + type: { + name: "String" + } + }, + fabricName: { + readOnly: true, + serializedName: "fabricName", + type: { + name: "String" + } + }, + applianceName: { + readOnly: true, + serializedName: "applianceName", + type: { + name: "String" + } + }, + serverType: { + readOnly: true, + serializedName: "serverType", + type: { + name: "String" + } + }, + componentDisplayName: { + readOnly: true, + serializedName: "componentDisplayName", + type: { + name: "String" + } + } + } + } +}; + +export const InMageRcmFabricCreationInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", + type: { name: "Composite", polymorphicDiscriminator: FabricSpecificCreationInput.type.polymorphicDiscriminator, uberParent: "FabricSpecificCreationInput", - className: "AzureFabricCreationInput", + className: "InMageRcmFabricCreationInput", modelProperties: { ...FabricSpecificCreationInput.type.modelProperties, - location: { - serializedName: "location", + vmwareSiteId: { + required: true, + serializedName: "vmwareSiteId", + type: { + name: "String" + } + }, + physicalSiteId: { + required: true, + serializedName: "physicalSiteId", + type: { + name: "String" + } + }, + sourceAgentIdentity: { + required: true, + serializedName: "sourceAgentIdentity", + type: { + name: "Composite", + className: "IdentityProviderInput" + } + } + } + } +}; + +export const ProcessServerDetails: msRest.CompositeMapper = { + serializedName: "ProcessServerDetails", + type: { + name: "Composite", + className: "ProcessServerDetails", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + biosId: { + readOnly: true, + serializedName: "biosId", + type: { + name: "String" + } + }, + fabricObjectId: { + readOnly: true, + serializedName: "fabricObjectId", + type: { + name: "String" + } + }, + fqdn: { + readOnly: true, + serializedName: "fqdn", + type: { + name: "String" + } + }, + ipAddresses: { + readOnly: true, + serializedName: "ipAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + }, + lastHeartbeatUtc: { + readOnly: true, + serializedName: "lastHeartbeatUtc", + type: { + name: "DateTime" + } + }, + totalMemoryInBytes: { + readOnly: true, + serializedName: "totalMemoryInBytes", + type: { + name: "Number" + } + }, + availableMemoryInBytes: { + readOnly: true, + serializedName: "availableMemoryInBytes", + type: { + name: "Number" + } + }, + usedMemoryInBytes: { + readOnly: true, + serializedName: "usedMemoryInBytes", + type: { + name: "Number" + } + }, + memoryUsagePercentage: { + readOnly: true, + serializedName: "memoryUsagePercentage", + type: { + name: "Number" + } + }, + totalSpaceInBytes: { + readOnly: true, + serializedName: "totalSpaceInBytes", + type: { + name: "Number" + } + }, + availableSpaceInBytes: { + readOnly: true, + serializedName: "availableSpaceInBytes", + type: { + name: "Number" + } + }, + usedSpaceInBytes: { + readOnly: true, + serializedName: "usedSpaceInBytes", + type: { + name: "Number" + } + }, + freeSpacePercentage: { + readOnly: true, + serializedName: "freeSpacePercentage", + type: { + name: "Number" + } + }, + throughputUploadPendingDataInBytes: { + readOnly: true, + serializedName: "throughputUploadPendingDataInBytes", + type: { + name: "Number" + } + }, + throughputInBytes: { + readOnly: true, + serializedName: "throughputInBytes", + type: { + name: "Number" + } + }, + processorUsagePercentage: { + readOnly: true, + serializedName: "processorUsagePercentage", + type: { + name: "Number" + } + }, + throughputStatus: { + readOnly: true, + serializedName: "throughputStatus", type: { name: "String" } - } - } - } -}; - -export const FabricSpecificDetails: msRest.CompositeMapper = { - serializedName: "FabricSpecificDetails", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "FabricSpecificDetails", - className: "FabricSpecificDetails", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + }, + systemLoad: { + readOnly: true, + serializedName: "systemLoad", + type: { + name: "Number" + } + }, + systemLoadStatus: { + readOnly: true, + serializedName: "systemLoadStatus", type: { name: "String" } - } - } - } -}; - -export const AzureFabricSpecificDetails: msRest.CompositeMapper = { - serializedName: "Azure", - type: { - name: "Composite", - polymorphicDiscriminator: FabricSpecificDetails.type.polymorphicDiscriminator, - uberParent: "FabricSpecificDetails", - className: "AzureFabricSpecificDetails", - modelProperties: { - ...FabricSpecificDetails.type.modelProperties, - location: { - serializedName: "location", + }, + diskUsageStatus: { + readOnly: true, + serializedName: "diskUsageStatus", type: { name: "String" } }, - containerIds: { - serializedName: "containerIds", + memoryUsageStatus: { + readOnly: true, + serializedName: "memoryUsageStatus", + type: { + name: "String" + } + }, + processorUsageStatus: { + readOnly: true, + serializedName: "processorUsageStatus", + type: { + name: "String" + } + }, + health: { + readOnly: true, + serializedName: "health", + type: { + name: "String" + } + }, + healthErrors: { + readOnly: true, + serializedName: "healthErrors", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "HealthError" } } } - } - } - } -}; - -export const FabricSpecificCreateNetworkMappingInput: msRest.CompositeMapper = { - serializedName: "FabricSpecificCreateNetworkMappingInput", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "FabricSpecificCreateNetworkMappingInput", - className: "FabricSpecificCreateNetworkMappingInput", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + }, + protectedItemCount: { + readOnly: true, + serializedName: "protectedItemCount", + type: { + name: "Number" + } + }, + historicHealth: { + readOnly: true, + serializedName: "historicHealth", type: { name: "String" } @@ -2437,279 +10526,335 @@ export const FabricSpecificCreateNetworkMappingInput: msRest.CompositeMapper = { } }; -export const AzureToAzureCreateNetworkMappingInput: msRest.CompositeMapper = { - serializedName: "AzureToAzure", +export const RcmProxyDetails: msRest.CompositeMapper = { + serializedName: "RcmProxyDetails", type: { name: "Composite", - polymorphicDiscriminator: FabricSpecificCreateNetworkMappingInput.type.polymorphicDiscriminator, - uberParent: "FabricSpecificCreateNetworkMappingInput", - className: "AzureToAzureCreateNetworkMappingInput", + className: "RcmProxyDetails", modelProperties: { - ...FabricSpecificCreateNetworkMappingInput.type.modelProperties, - primaryNetworkId: { - serializedName: "primaryNetworkId", + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + biosId: { + readOnly: true, + serializedName: "biosId", + type: { + name: "String" + } + }, + fabricObjectId: { + readOnly: true, + serializedName: "fabricObjectId", + type: { + name: "String" + } + }, + fqdn: { + readOnly: true, + serializedName: "fqdn", + type: { + name: "String" + } + }, + clientAuthenticationType: { + readOnly: true, + serializedName: "clientAuthenticationType", + type: { + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "version", type: { name: "String" } + }, + lastHeartbeatUtc: { + readOnly: true, + serializedName: "lastHeartbeatUtc", + type: { + name: "DateTime" + } + }, + health: { + readOnly: true, + serializedName: "health", + type: { + name: "String" + } + }, + healthErrors: { + readOnly: true, + serializedName: "healthErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } + } } } } }; -export const NetworkMappingFabricSpecificSettings: msRest.CompositeMapper = { - serializedName: "NetworkMappingFabricSpecificSettings", +export const PushInstallerDetails: msRest.CompositeMapper = { + serializedName: "PushInstallerDetails", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "NetworkMappingFabricSpecificSettings", - className: "NetworkMappingFabricSpecificSettings", + className: "PushInstallerDetails", modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + biosId: { + readOnly: true, + serializedName: "biosId", type: { name: "String" } - } - } - } -}; - -export const AzureToAzureNetworkMappingSettings: msRest.CompositeMapper = { - serializedName: "AzureToAzure", - type: { - name: "Composite", - polymorphicDiscriminator: NetworkMappingFabricSpecificSettings.type.polymorphicDiscriminator, - uberParent: "NetworkMappingFabricSpecificSettings", - className: "AzureToAzureNetworkMappingSettings", - modelProperties: { - ...NetworkMappingFabricSpecificSettings.type.modelProperties, - primaryFabricLocation: { - serializedName: "primaryFabricLocation", + }, + fabricObjectId: { + readOnly: true, + serializedName: "fabricObjectId", type: { name: "String" } }, - recoveryFabricLocation: { - serializedName: "recoveryFabricLocation", + fqdn: { + readOnly: true, + serializedName: "fqdn", type: { name: "String" } - } - } - } -}; - -export const FabricSpecificUpdateNetworkMappingInput: msRest.CompositeMapper = { - serializedName: "FabricSpecificUpdateNetworkMappingInput", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "FabricSpecificUpdateNetworkMappingInput", - className: "FabricSpecificUpdateNetworkMappingInput", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + }, + version: { + readOnly: true, + serializedName: "version", type: { name: "String" } - } - } - } -}; - -export const AzureToAzureUpdateNetworkMappingInput: msRest.CompositeMapper = { - serializedName: "AzureToAzure", - type: { - name: "Composite", - polymorphicDiscriminator: FabricSpecificUpdateNetworkMappingInput.type.polymorphicDiscriminator, - uberParent: "FabricSpecificUpdateNetworkMappingInput", - className: "AzureToAzureUpdateNetworkMappingInput", - modelProperties: { - ...FabricSpecificUpdateNetworkMappingInput.type.modelProperties, - primaryNetworkId: { - serializedName: "primaryNetworkId", + }, + lastHeartbeatUtc: { + readOnly: true, + serializedName: "lastHeartbeatUtc", + type: { + name: "DateTime" + } + }, + health: { + readOnly: true, + serializedName: "health", type: { name: "String" } + }, + healthErrors: { + readOnly: true, + serializedName: "healthErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } + } } } } }; -export const AzureVmDiskDetails: msRest.CompositeMapper = { - serializedName: "AzureVmDiskDetails", +export const ReplicationAgentDetails: msRest.CompositeMapper = { + serializedName: "ReplicationAgentDetails", type: { name: "Composite", - className: "AzureVmDiskDetails", + className: "ReplicationAgentDetails", modelProperties: { - vhdType: { - serializedName: "vhdType", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - vhdId: { - serializedName: "vhdId", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - vhdName: { - serializedName: "vhdName", + biosId: { + readOnly: true, + serializedName: "biosId", type: { name: "String" } }, - maxSizeMB: { - serializedName: "maxSizeMB", + fabricObjectId: { + readOnly: true, + serializedName: "fabricObjectId", type: { name: "String" } }, - targetDiskLocation: { - serializedName: "targetDiskLocation", + fqdn: { + readOnly: true, + serializedName: "fqdn", type: { name: "String" } }, - targetDiskName: { - serializedName: "targetDiskName", + version: { + readOnly: true, + serializedName: "version", type: { name: "String" } }, - lunId: { - serializedName: "lunId", + lastHeartbeatUtc: { + readOnly: true, + serializedName: "lastHeartbeatUtc", + type: { + name: "DateTime" + } + }, + health: { + readOnly: true, + serializedName: "health", type: { name: "String" } + }, + healthErrors: { + readOnly: true, + serializedName: "healthErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } + } } } } }; -export const ComputeSizeErrorDetails: msRest.CompositeMapper = { - serializedName: "ComputeSizeErrorDetails", +export const ReprotectAgentDetails: msRest.CompositeMapper = { + serializedName: "ReprotectAgentDetails", type: { name: "Composite", - className: "ComputeSizeErrorDetails", + className: "ReprotectAgentDetails", modelProperties: { - message: { - serializedName: "message", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - severity: { - serializedName: "severity", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } - } - } - } -}; - -export const ConfigurationSettings: msRest.CompositeMapper = { - serializedName: "ConfigurationSettings", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "ConfigurationSettings", - className: "ConfigurationSettings", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + }, + biosId: { + readOnly: true, + serializedName: "biosId", type: { name: "String" } - } - } - } -}; - -export const ConfigureAlertRequestProperties: msRest.CompositeMapper = { - serializedName: "ConfigureAlertRequestProperties", - type: { - name: "Composite", - className: "ConfigureAlertRequestProperties", - modelProperties: { - sendToOwners: { - serializedName: "sendToOwners", + }, + fabricObjectId: { + readOnly: true, + serializedName: "fabricObjectId", type: { name: "String" } }, - customEmailAddresses: { - serializedName: "customEmailAddresses", + fqdn: { + readOnly: true, + serializedName: "fqdn", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - locale: { - serializedName: "locale", + version: { + readOnly: true, + serializedName: "version", type: { name: "String" } - } - } - } -}; - -export const ConfigureAlertRequest: msRest.CompositeMapper = { - serializedName: "ConfigureAlertRequest", - type: { - name: "Composite", - className: "ConfigureAlertRequest", - modelProperties: { - properties: { - serializedName: "properties", + }, + lastHeartbeatUtc: { + readOnly: true, + serializedName: "lastHeartbeatUtc", type: { - name: "Composite", - className: "ConfigureAlertRequestProperties" + name: "DateTime" } - } - } - } -}; - -export const InconsistentVmDetails: msRest.CompositeMapper = { - serializedName: "InconsistentVmDetails", - type: { - name: "Composite", - className: "InconsistentVmDetails", - modelProperties: { - vmName: { - serializedName: "vmName", + }, + health: { + readOnly: true, + serializedName: "health", type: { name: "String" } }, - cloudName: { - serializedName: "cloudName", + healthErrors: { + readOnly: true, + serializedName: "healthErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } + } + }, + protectedItemCount: { + readOnly: true, + serializedName: "protectedItemCount", type: { - name: "String" + name: "Number" } }, - details: { - serializedName: "details", + accessibleDatastores: { + readOnly: true, + serializedName: "accessibleDatastores", type: { name: "Sequence", element: { @@ -2719,140 +10864,95 @@ export const InconsistentVmDetails: msRest.CompositeMapper = { } } }, - errorIds: { - serializedName: "errorIds", + vcenterId: { + readOnly: true, + serializedName: "vcenterId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - } - } - } -}; - -export const ConsistencyCheckTaskDetails: msRest.CompositeMapper = { - serializedName: "ConsistencyCheckTaskDetails", - type: { - name: "Composite", - polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, - uberParent: "TaskTypeDetails", - className: "ConsistencyCheckTaskDetails", - modelProperties: { - ...TaskTypeDetails.type.modelProperties, - vmDetails: { - serializedName: "vmDetails", + }, + lastDiscoveryInUtc: { + readOnly: true, + serializedName: "lastDiscoveryInUtc", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InconsistentVmDetails" - } - } + name: "DateTime" } } } } }; -export const CreateNetworkMappingInputProperties: msRest.CompositeMapper = { - serializedName: "CreateNetworkMappingInputProperties", +export const MarsAgentDetails: msRest.CompositeMapper = { + serializedName: "MarsAgentDetails", type: { name: "Composite", - className: "CreateNetworkMappingInputProperties", + className: "MarsAgentDetails", modelProperties: { - recoveryFabricName: { - serializedName: "recoveryFabricName", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - recoveryNetworkId: { - serializedName: "recoveryNetworkId", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - fabricSpecificDetails: { - serializedName: "fabricSpecificDetails", + biosId: { + readOnly: true, + serializedName: "biosId", type: { - name: "Composite", - className: "FabricSpecificCreateNetworkMappingInput" + name: "String" } - } - } - } -}; - -export const CreateNetworkMappingInput: msRest.CompositeMapper = { - serializedName: "CreateNetworkMappingInput", - type: { - name: "Composite", - className: "CreateNetworkMappingInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + fabricObjectId: { + readOnly: true, + serializedName: "fabricObjectId", type: { - name: "Composite", - className: "CreateNetworkMappingInputProperties" + name: "String" } - } - } - } -}; - -export const CreatePolicyInputProperties: msRest.CompositeMapper = { - serializedName: "CreatePolicyInputProperties", - type: { - name: "Composite", - className: "CreatePolicyInputProperties", - modelProperties: { - providerSpecificInput: { - serializedName: "providerSpecificInput", + }, + fqdn: { + readOnly: true, + serializedName: "fqdn", type: { - name: "Composite", - className: "PolicyProviderSpecificInput" + name: "String" } - } - } - } -}; - -export const CreatePolicyInput: msRest.CompositeMapper = { - serializedName: "CreatePolicyInput", - type: { - name: "Composite", - className: "CreatePolicyInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + version: { + readOnly: true, + serializedName: "version", type: { - name: "Composite", - className: "CreatePolicyInputProperties" + name: "String" } - } - } - } -}; - -export const CreateProtectionContainerInputProperties: msRest.CompositeMapper = { - serializedName: "CreateProtectionContainerInputProperties", - type: { - name: "Composite", - className: "CreateProtectionContainerInputProperties", - modelProperties: { - providerSpecificInput: { - serializedName: "providerSpecificInput", + }, + lastHeartbeatUtc: { + readOnly: true, + serializedName: "lastHeartbeatUtc", + type: { + name: "DateTime" + } + }, + health: { + readOnly: true, + serializedName: "health", + type: { + name: "String" + } + }, + healthErrors: { + readOnly: true, + serializedName: "healthErrors", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ReplicationProviderSpecificContainerCreationInput" + className: "HealthError" } } } @@ -2861,207 +10961,171 @@ export const CreateProtectionContainerInputProperties: msRest.CompositeMapper = } }; -export const CreateProtectionContainerInput: msRest.CompositeMapper = { - serializedName: "CreateProtectionContainerInput", - type: { - name: "Composite", - className: "CreateProtectionContainerInput", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "CreateProtectionContainerInputProperties" - } - } - } - } -}; - -export const CreateProtectionContainerMappingInputProperties: msRest.CompositeMapper = { - serializedName: "CreateProtectionContainerMappingInputProperties", +export const InMageRcmFabricSpecificDetails: msRest.CompositeMapper = { + serializedName: "InMageRcm", type: { name: "Composite", - className: "CreateProtectionContainerMappingInputProperties", + polymorphicDiscriminator: FabricSpecificDetails.type.polymorphicDiscriminator, + uberParent: "FabricSpecificDetails", + className: "InMageRcmFabricSpecificDetails", modelProperties: { - targetProtectionContainerId: { - serializedName: "targetProtectionContainerId", + ...FabricSpecificDetails.type.modelProperties, + vmwareSiteId: { + readOnly: true, + serializedName: "vmwareSiteId", type: { name: "String" } }, - policyId: { - serializedName: "policyId", + physicalSiteId: { + readOnly: true, + serializedName: "physicalSiteId", type: { name: "String" } }, - providerSpecificInput: { - serializedName: "providerSpecificInput", - type: { - name: "Composite", - className: "ReplicationProviderSpecificContainerMappingInput" - } - } - } - } -}; - -export const CreateProtectionContainerMappingInput: msRest.CompositeMapper = { - serializedName: "CreateProtectionContainerMappingInput", - type: { - name: "Composite", - className: "CreateProtectionContainerMappingInput", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "CreateProtectionContainerMappingInputProperties" - } - } - } - } -}; - -export const RecoveryPlanProtectedItem: msRest.CompositeMapper = { - serializedName: "RecoveryPlanProtectedItem", - type: { - name: "Composite", - className: "RecoveryPlanProtectedItem", - modelProperties: { - id: { - serializedName: "id", + serviceEndpoint: { + readOnly: true, + serializedName: "serviceEndpoint", type: { name: "String" } }, - virtualMachineId: { - serializedName: "virtualMachineId", + serviceResourceId: { + readOnly: true, + serializedName: "serviceResourceId", type: { name: "String" } - } - } - } -}; - -export const RecoveryPlanActionDetails: msRest.CompositeMapper = { - serializedName: "RecoveryPlanActionDetails", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "RecoveryPlanActionDetails", - className: "RecoveryPlanActionDetails", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + }, + serviceContainerId: { + readOnly: true, + serializedName: "serviceContainerId", type: { name: "String" - } - } - } - } -}; - -export const RecoveryPlanAction: msRest.CompositeMapper = { - serializedName: "RecoveryPlanAction", - type: { - name: "Composite", - className: "RecoveryPlanAction", - modelProperties: { - actionName: { - required: true, - serializedName: "actionName", + } + }, + dataPlaneUri: { + readOnly: true, + serializedName: "dataPlaneUri", type: { name: "String" } }, - failoverTypes: { - required: true, - serializedName: "failoverTypes", + controlPlaneUri: { + readOnly: true, + serializedName: "controlPlaneUri", + type: { + name: "String" + } + }, + sourceAgentIdentityDetails: { + serializedName: "sourceAgentIdentityDetails", + type: { + name: "Composite", + className: "IdentityProviderDetails" + } + }, + processServers: { + readOnly: true, + serializedName: "processServers", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ProcessServerDetails" } } } }, - failoverDirections: { - required: true, - serializedName: "failoverDirections", + rcmProxies: { + readOnly: true, + serializedName: "rcmProxies", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "RcmProxyDetails" } } } }, - customDetails: { - required: true, - serializedName: "customDetails", + pushInstallers: { + readOnly: true, + serializedName: "pushInstallers", type: { - name: "Composite", - className: "RecoveryPlanActionDetails" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PushInstallerDetails" + } + } } - } - } - } -}; - -export const RecoveryPlanGroup: msRest.CompositeMapper = { - serializedName: "RecoveryPlanGroup", - type: { - name: "Composite", - className: "RecoveryPlanGroup", - modelProperties: { - groupType: { - required: true, - serializedName: "groupType", + }, + replicationAgents: { + readOnly: true, + serializedName: "replicationAgents", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationAgentDetails" + } + } } }, - replicationProtectedItems: { - serializedName: "replicationProtectedItems", + reprotectAgents: { + readOnly: true, + serializedName: "reprotectAgents", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecoveryPlanProtectedItem" + className: "ReprotectAgentDetails" } } } }, - startGroupActions: { - serializedName: "startGroupActions", + marsAgents: { + readOnly: true, + serializedName: "marsAgents", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecoveryPlanAction" + className: "MarsAgentDetails" } } } }, - endGroupActions: { - serializedName: "endGroupActions", + dras: { + readOnly: true, + serializedName: "dras", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecoveryPlanAction" + className: "DraDetails" + } + } + } + }, + agentDetails: { + readOnly: true, + serializedName: "agentDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AgentDetails" } } } @@ -3070,127 +11134,266 @@ export const RecoveryPlanGroup: msRest.CompositeMapper = { } }; -export const CreateRecoveryPlanInputProperties: msRest.CompositeMapper = { - serializedName: "CreateRecoveryPlanInputProperties", +export const InMageRcmFailbackDiscoveredProtectedVmDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmFailbackDiscoveredProtectedVmDetails", type: { name: "Composite", - className: "CreateRecoveryPlanInputProperties", + className: "InMageRcmFailbackDiscoveredProtectedVmDetails", modelProperties: { - primaryFabricId: { - required: true, - serializedName: "primaryFabricId", + vCenterId: { + readOnly: true, + serializedName: "vCenterId", type: { name: "String" } }, - recoveryFabricId: { - required: true, - serializedName: "recoveryFabricId", + vCenterFqdn: { + readOnly: true, + serializedName: "vCenterFqdn", type: { name: "String" } }, - failoverDeploymentModel: { - serializedName: "failoverDeploymentModel", + datastores: { + readOnly: true, + serializedName: "datastores", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - groups: { - required: true, - serializedName: "groups", + ipAddresses: { + readOnly: true, + serializedName: "ipAddresses", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RecoveryPlanGroup" + name: "String" } } } + }, + vmwareToolsStatus: { + readOnly: true, + serializedName: "vmwareToolsStatus", + type: { + name: "String" + } + }, + powerStatus: { + readOnly: true, + serializedName: "powerStatus", + type: { + name: "String" + } + }, + vmFqdn: { + readOnly: true, + serializedName: "vmFqdn", + type: { + name: "String" + } + }, + osName: { + readOnly: true, + serializedName: "osName", + type: { + name: "String" + } + }, + createdTimestamp: { + readOnly: true, + serializedName: "createdTimestamp", + type: { + name: "DateTime" + } + }, + updatedTimestamp: { + readOnly: true, + serializedName: "updatedTimestamp", + type: { + name: "DateTime" + } + }, + isDeleted: { + readOnly: true, + serializedName: "isDeleted", + type: { + name: "Boolean" + } + }, + lastDiscoveryTimeInUtc: { + readOnly: true, + serializedName: "lastDiscoveryTimeInUtc", + type: { + name: "DateTime" + } } } } }; -export const CreateRecoveryPlanInput: msRest.CompositeMapper = { - serializedName: "CreateRecoveryPlanInput", +export const InMageRcmFailbackEventDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmFailback", type: { name: "Composite", - className: "CreateRecoveryPlanInput", + polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "EventProviderSpecificDetails", + className: "InMageRcmFailbackEventDetails", modelProperties: { - properties: { - required: true, - serializedName: "properties", + ...EventProviderSpecificDetails.type.modelProperties, + protectedItemName: { + readOnly: true, + serializedName: "protectedItemName", type: { - name: "Composite", - className: "CreateRecoveryPlanInputProperties" + name: "String" + } + }, + vmName: { + readOnly: true, + serializedName: "vmName", + type: { + name: "String" + } + }, + applianceName: { + readOnly: true, + serializedName: "applianceName", + type: { + name: "String" + } + }, + serverType: { + readOnly: true, + serializedName: "serverType", + type: { + name: "String" + } + }, + componentDisplayName: { + readOnly: true, + serializedName: "componentDisplayName", + type: { + name: "String" } } } } }; -export const CurrentScenarioDetails: msRest.CompositeMapper = { - serializedName: "CurrentScenarioDetails", +export const InMageRcmFailbackMobilityAgentDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmFailbackMobilityAgentDetails", type: { name: "Composite", - className: "CurrentScenarioDetails", + className: "InMageRcmFailbackMobilityAgentDetails", modelProperties: { - scenarioName: { - serializedName: "scenarioName", + version: { + readOnly: true, + serializedName: "version", type: { name: "String" } }, - jobId: { - serializedName: "jobId", + latestVersion: { + readOnly: true, + serializedName: "latestVersion", type: { name: "String" } }, - startTime: { - serializedName: "startTime", + driverVersion: { + readOnly: true, + serializedName: "driverVersion", + type: { + name: "String" + } + }, + latestUpgradableVersionWithoutReboot: { + readOnly: true, + serializedName: "latestUpgradableVersionWithoutReboot", + type: { + name: "String" + } + }, + agentVersionExpiryDate: { + readOnly: true, + serializedName: "agentVersionExpiryDate", + type: { + name: "DateTime" + } + }, + driverVersionExpiryDate: { + readOnly: true, + serializedName: "driverVersionExpiryDate", + type: { + name: "DateTime" + } + }, + lastHeartbeatUtc: { + readOnly: true, + serializedName: "lastHeartbeatUtc", type: { name: "DateTime" } + }, + reasonsBlockingUpgrade: { + readOnly: true, + serializedName: "reasonsBlockingUpgrade", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isUpgradeable: { + readOnly: true, + serializedName: "isUpgradeable", + type: { + name: "String" + } } } } }; -export const DataStore: msRest.CompositeMapper = { - serializedName: "DataStore", +export const InMageRcmFailbackNicDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmFailbackNicDetails", type: { name: "Composite", - className: "DataStore", + className: "InMageRcmFailbackNicDetails", modelProperties: { - symbolicName: { - serializedName: "symbolicName", - type: { - name: "String" - } - }, - uuid: { - serializedName: "uuid", + macAddress: { + readOnly: true, + serializedName: "macAddress", type: { name: "String" } - }, - capacity: { - serializedName: "capacity", + }, + networkName: { + readOnly: true, + serializedName: "networkName", type: { name: "String" } }, - freeSpace: { - serializedName: "freeSpace", + adapterType: { + readOnly: true, + serializedName: "adapterType", type: { name: "String" } }, - type: { - serializedName: "type", + sourceIpAddress: { + readOnly: true, + serializedName: "sourceIpAddress", type: { name: "String" } @@ -3199,20 +11402,18 @@ export const DataStore: msRest.CompositeMapper = { } }; -export const DisableProtectionProviderSpecificInput: msRest.CompositeMapper = { - serializedName: "DisableProtectionProviderSpecificInput", +export const InMageRcmFailbackPlannedFailoverProviderInput: msRest.CompositeMapper = { + serializedName: "InMageRcmFailback", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "DisableProtectionProviderSpecificInput", - className: "DisableProtectionProviderSpecificInput", + polymorphicDiscriminator: PlannedFailoverProviderSpecificFailoverInput.type.polymorphicDiscriminator, + uberParent: "PlannedFailoverProviderSpecificFailoverInput", + className: "InMageRcmFailbackPlannedFailoverProviderInput", modelProperties: { - instanceType: { + ...PlannedFailoverProviderSpecificFailoverInput.type.modelProperties, + recoveryPointType: { required: true, - serializedName: "instanceType", + serializedName: "recoveryPointType", type: { name: "String" } @@ -3221,618 +11422,700 @@ export const DisableProtectionProviderSpecificInput: msRest.CompositeMapper = { } }; -export const DisableProtectionInputProperties: msRest.CompositeMapper = { - serializedName: "DisableProtectionInputProperties", +export const InMageRcmFailbackPolicyCreationInput: msRest.CompositeMapper = { + serializedName: "InMageRcmFailback", type: { name: "Composite", - className: "DisableProtectionInputProperties", + polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificInput", + className: "InMageRcmFailbackPolicyCreationInput", modelProperties: { - disableProtectionReason: { - serializedName: "disableProtectionReason", + ...PolicyProviderSpecificInput.type.modelProperties, + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", type: { - name: "String" + name: "Number" } }, - replicationProviderInput: { - serializedName: "replicationProviderInput", + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", type: { - name: "Composite", - className: "DisableProtectionProviderSpecificInput" + name: "Number" } } } } }; -export const DisableProtectionInput: msRest.CompositeMapper = { - serializedName: "DisableProtectionInput", +export const InMageRcmFailbackPolicyDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmFailback", type: { name: "Composite", - className: "DisableProtectionInput", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "InMageRcmFailbackPolicyDetails", modelProperties: { - properties: { - serializedName: "properties", + ...PolicyProviderSpecificDetails.type.modelProperties, + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", type: { - name: "Composite", - className: "DisableProtectionInputProperties" + name: "Number" + } + }, + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", + type: { + name: "Number" } } } } }; -export const DiscoverProtectableItemRequestProperties: msRest.CompositeMapper = { - serializedName: "DiscoverProtectableItemRequestProperties", +export const InMageRcmFailbackSyncDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmFailbackSyncDetails", type: { name: "Composite", - className: "DiscoverProtectableItemRequestProperties", + className: "InMageRcmFailbackSyncDetails", modelProperties: { - friendlyName: { - serializedName: "friendlyName", + progressHealth: { + readOnly: true, + serializedName: "progressHealth", type: { name: "String" } }, - ipAddress: { - serializedName: "ipAddress", + transferredBytes: { + readOnly: true, + serializedName: "transferredBytes", type: { - name: "String" + name: "Number" } }, - osType: { - serializedName: "osType", + last15MinutesTransferredBytes: { + readOnly: true, + serializedName: "last15MinutesTransferredBytes", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const DiscoverProtectableItemRequest: msRest.CompositeMapper = { - serializedName: "DiscoverProtectableItemRequest", - type: { - name: "Composite", - className: "DiscoverProtectableItemRequest", - modelProperties: { - properties: { - serializedName: "properties", + }, + lastDataTransferTimeUtc: { + readOnly: true, + serializedName: "lastDataTransferTimeUtc", type: { - name: "Composite", - className: "DiscoverProtectableItemRequestProperties" + name: "String" } - } - } - } -}; - -export const DiskDetails: msRest.CompositeMapper = { - serializedName: "DiskDetails", - type: { - name: "Composite", - className: "DiskDetails", - modelProperties: { - maxSizeMB: { - serializedName: "maxSizeMB", + }, + processedBytes: { + readOnly: true, + serializedName: "processedBytes", type: { name: "Number" } }, - vhdType: { - serializedName: "vhdType", + startTime: { + readOnly: true, + serializedName: "startTime", type: { name: "String" } }, - vhdId: { - serializedName: "vhdId", + lastRefreshTime: { + readOnly: true, + serializedName: "lastRefreshTime", type: { name: "String" } }, - vhdName: { - serializedName: "vhdName", + progressPercentage: { + readOnly: true, + serializedName: "progressPercentage", type: { - name: "String" + name: "Number" } } } } }; -export const DiskVolumeDetails: msRest.CompositeMapper = { - serializedName: "DiskVolumeDetails", +export const InMageRcmFailbackProtectedDiskDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmFailbackProtectedDiskDetails", type: { name: "Composite", - className: "DiskVolumeDetails", + className: "InMageRcmFailbackProtectedDiskDetails", modelProperties: { - label: { - serializedName: "label", + diskId: { + readOnly: true, + serializedName: "diskId", type: { name: "String" } }, - name: { - serializedName: "name", + diskName: { + readOnly: true, + serializedName: "diskName", type: { name: "String" } - } - } - } -}; - -export const Display: msRest.CompositeMapper = { - serializedName: "Display", - type: { - name: "Composite", - className: "Display", - modelProperties: { - provider: { - serializedName: "provider", + }, + isOSDisk: { + readOnly: true, + serializedName: "isOSDisk", type: { name: "String" } }, - resource: { - serializedName: "resource", + capacityInBytes: { + readOnly: true, + serializedName: "capacityInBytes", type: { - name: "String" + name: "Number" } }, - operation: { - serializedName: "operation", + diskUuid: { + readOnly: true, + serializedName: "diskUuid", type: { name: "String" } }, - description: { - serializedName: "description", + dataPendingInLogDataStoreInMB: { + readOnly: true, + serializedName: "dataPendingInLogDataStoreInMB", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const EnableProtectionInputProperties: msRest.CompositeMapper = { - serializedName: "EnableProtectionInputProperties", - type: { - name: "Composite", - className: "EnableProtectionInputProperties", - modelProperties: { - policyId: { - serializedName: "policyId", + }, + dataPendingAtSourceAgentInMB: { + readOnly: true, + serializedName: "dataPendingAtSourceAgentInMB", type: { - name: "String" + name: "Number" } }, - protectableItemId: { - serializedName: "protectableItemId", + isInitialReplicationComplete: { + readOnly: true, + serializedName: "isInitialReplicationComplete", type: { name: "String" } }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + irDetails: { + serializedName: "irDetails", type: { name: "Composite", - className: "EnableProtectionProviderSpecificInput" + className: "InMageRcmFailbackSyncDetails" } - } - } - } -}; - -export const EnableProtectionInput: msRest.CompositeMapper = { - serializedName: "EnableProtectionInput", - type: { - name: "Composite", - className: "EnableProtectionInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + resyncDetails: { + serializedName: "resyncDetails", type: { name: "Composite", - className: "EnableProtectionInputProperties" + className: "InMageRcmFailbackSyncDetails" + } + }, + lastSyncTime: { + readOnly: true, + serializedName: "lastSyncTime", + type: { + name: "DateTime" } } } } }; -export const EncryptionDetails: msRest.CompositeMapper = { - serializedName: "EncryptionDetails", +export const InMageRcmFailbackReplicationDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmFailback", type: { name: "Composite", - className: "EncryptionDetails", + polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificSettings", + className: "InMageRcmFailbackReplicationDetails", modelProperties: { - kekState: { - serializedName: "kekState", + ...ReplicationProviderSpecificSettings.type.modelProperties, + internalIdentifier: { + readOnly: true, + serializedName: "internalIdentifier", + type: { + name: "String" + } + }, + azureVirtualMachineId: { + readOnly: true, + serializedName: "azureVirtualMachineId", + type: { + name: "String" + } + }, + multiVmGroupName: { + readOnly: true, + serializedName: "multiVmGroupName", + type: { + name: "String" + } + }, + reprotectAgentId: { + readOnly: true, + serializedName: "reprotectAgentId", + type: { + name: "String" + } + }, + reprotectAgentName: { + readOnly: true, + serializedName: "reprotectAgentName", + type: { + name: "String" + } + }, + osType: { + readOnly: true, + serializedName: "osType", + type: { + name: "String" + } + }, + logStorageAccountId: { + readOnly: true, + serializedName: "logStorageAccountId", type: { name: "String" } }, - kekCertThumbprint: { - serializedName: "kekCertThumbprint", + targetvCenterId: { + readOnly: true, + serializedName: "targetvCenterId", type: { name: "String" } }, - kekCertExpiryDate: { - serializedName: "kekCertExpiryDate", + targetDataStoreName: { + readOnly: true, + serializedName: "targetDataStoreName", type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const EventSpecificDetails: msRest.CompositeMapper = { - serializedName: "EventSpecificDetails", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "EventSpecificDetails", - className: "EventSpecificDetails", - modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + }, + targetVmName: { + readOnly: true, + serializedName: "targetVmName", type: { name: "String" } - } - } - } -}; - -export const InnerHealthError: msRest.CompositeMapper = { - serializedName: "InnerHealthError", - type: { - name: "Composite", - className: "InnerHealthError", - modelProperties: { - errorSource: { - serializedName: "errorSource", + }, + initialReplicationProgressPercentage: { + readOnly: true, + serializedName: "initialReplicationProgressPercentage", type: { - name: "String" + name: "Number" } }, - errorType: { - serializedName: "errorType", + initialReplicationProcessedBytes: { + readOnly: true, + serializedName: "initialReplicationProcessedBytes", type: { - name: "String" + name: "Number" } }, - errorLevel: { - serializedName: "errorLevel", + initialReplicationTransferredBytes: { + readOnly: true, + serializedName: "initialReplicationTransferredBytes", type: { - name: "String" + name: "Number" } }, - errorCategory: { - serializedName: "errorCategory", + initialReplicationProgressHealth: { + readOnly: true, + serializedName: "initialReplicationProgressHealth", type: { name: "String" } }, - errorCode: { - serializedName: "errorCode", + resyncProgressPercentage: { + readOnly: true, + serializedName: "resyncProgressPercentage", type: { - name: "String" + name: "Number" } }, - summaryMessage: { - serializedName: "summaryMessage", + resyncProcessedBytes: { + readOnly: true, + serializedName: "resyncProcessedBytes", type: { - name: "String" + name: "Number" } }, - errorMessage: { - serializedName: "errorMessage", + resyncTransferredBytes: { + readOnly: true, + serializedName: "resyncTransferredBytes", type: { - name: "String" + name: "Number" } }, - possibleCauses: { - serializedName: "possibleCauses", + resyncProgressHealth: { + readOnly: true, + serializedName: "resyncProgressHealth", type: { name: "String" } }, - recommendedAction: { - serializedName: "recommendedAction", + resyncRequired: { + readOnly: true, + serializedName: "resyncRequired", type: { name: "String" } }, - creationTimeUtc: { - serializedName: "creationTimeUtc", + resyncState: { + readOnly: true, + serializedName: "resyncState", type: { - name: "DateTime" + name: "String" } }, - recoveryProviderErrorMessage: { - serializedName: "recoveryProviderErrorMessage", + protectedDisks: { + serializedName: "protectedDisks", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageRcmFailbackProtectedDiskDetails" + } + } } }, - entityId: { - serializedName: "entityId", + mobilityAgentDetails: { + serializedName: "mobilityAgentDetails", type: { - name: "String" + name: "Composite", + className: "InMageRcmFailbackMobilityAgentDetails" } - } - } - } -}; - -export const HealthError: msRest.CompositeMapper = { - serializedName: "HealthError", - type: { - name: "Composite", - className: "HealthError", - modelProperties: { - innerHealthErrors: { - serializedName: "innerHealthErrors", + }, + vmNics: { + serializedName: "vmNics", type: { name: "Sequence", element: { type: { name: "Composite", - className: "InnerHealthError" + className: "InMageRcmFailbackNicDetails" } } } }, - errorSource: { - serializedName: "errorSource", + lastPlannedFailoverStartTime: { + readOnly: true, + serializedName: "lastPlannedFailoverStartTime", + type: { + name: "DateTime" + } + }, + lastPlannedFailoverStatus: { + readOnly: true, + serializedName: "lastPlannedFailoverStatus", type: { name: "String" } }, - errorType: { - serializedName: "errorType", + discoveredVmDetails: { + serializedName: "discoveredVmDetails", + type: { + name: "Composite", + className: "InMageRcmFailbackDiscoveredProtectedVmDetails" + } + }, + lastUsedPolicyId: { + readOnly: true, + serializedName: "lastUsedPolicyId", type: { name: "String" } }, - errorLevel: { - serializedName: "errorLevel", + lastUsedPolicyFriendlyName: { + readOnly: true, + serializedName: "lastUsedPolicyFriendlyName", type: { name: "String" } }, - errorCategory: { - serializedName: "errorCategory", + isAgentRegistrationSuccessfulAfterFailover: { + readOnly: true, + serializedName: "isAgentRegistrationSuccessfulAfterFailover", + type: { + name: "Boolean" + } + } + } + } +}; + +export const InMageRcmFailbackReprotectInput: msRest.CompositeMapper = { + serializedName: "InMageRcmFailback", + type: { + name: "Composite", + polymorphicDiscriminator: ReverseReplicationProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ReverseReplicationProviderSpecificInput", + className: "InMageRcmFailbackReprotectInput", + modelProperties: { + ...ReverseReplicationProviderSpecificInput.type.modelProperties, + processServerId: { + required: true, + serializedName: "processServerId", type: { name: "String" } }, - errorCode: { - serializedName: "errorCode", + runAsAccountId: { + serializedName: "runAsAccountId", type: { name: "String" } }, - summaryMessage: { - serializedName: "summaryMessage", + policyId: { + required: true, + serializedName: "policyId", + type: { + name: "String" + } + } + } + } +}; + +export const InMageRcmLastAgentUpgradeErrorDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmLastAgentUpgradeErrorDetails", + type: { + name: "Composite", + className: "InMageRcmLastAgentUpgradeErrorDetails", + modelProperties: { + errorCode: { + readOnly: true, + serializedName: "errorCode", type: { name: "String" } }, errorMessage: { + readOnly: true, serializedName: "errorMessage", type: { name: "String" } }, possibleCauses: { + readOnly: true, serializedName: "possibleCauses", type: { name: "String" } }, recommendedAction: { + readOnly: true, serializedName: "recommendedAction", type: { name: "String" } }, - creationTimeUtc: { - serializedName: "creationTimeUtc", - type: { - name: "DateTime" - } - }, - recoveryProviderErrorMessage: { - serializedName: "recoveryProviderErrorMessage", + errorMessageParameters: { + readOnly: true, + serializedName: "errorMessageParameters", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - entityId: { - serializedName: "entityId", + errorTags: { + readOnly: true, + serializedName: "errorTags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const EventProperties: msRest.CompositeMapper = { - serializedName: "EventProperties", +export const InMageRcmMobilityAgentDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmMobilityAgentDetails", type: { name: "Composite", - className: "EventProperties", + className: "InMageRcmMobilityAgentDetails", modelProperties: { - eventCode: { - serializedName: "eventCode", + version: { + readOnly: true, + serializedName: "version", type: { name: "String" } }, - description: { - serializedName: "description", + latestVersion: { + readOnly: true, + serializedName: "latestVersion", type: { name: "String" } }, - eventType: { - serializedName: "eventType", + latestAgentReleaseDate: { + readOnly: true, + serializedName: "latestAgentReleaseDate", type: { name: "String" } }, - affectedObjectFriendlyName: { - serializedName: "affectedObjectFriendlyName", + driverVersion: { + readOnly: true, + serializedName: "driverVersion", type: { name: "String" } }, - severity: { - serializedName: "severity", + latestUpgradableVersionWithoutReboot: { + readOnly: true, + serializedName: "latestUpgradableVersionWithoutReboot", type: { name: "String" } }, - timeOfOccurrence: { - serializedName: "timeOfOccurrence", + agentVersionExpiryDate: { + readOnly: true, + serializedName: "agentVersionExpiryDate", type: { name: "DateTime" } }, - fabricId: { - serializedName: "fabricId", - type: { - name: "String" - } - }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + driverVersionExpiryDate: { + readOnly: true, + serializedName: "driverVersionExpiryDate", type: { - name: "Composite", - className: "EventProviderSpecificDetails" + name: "DateTime" } }, - eventSpecificDetails: { - serializedName: "eventSpecificDetails", + lastHeartbeatUtc: { + readOnly: true, + serializedName: "lastHeartbeatUtc", type: { - name: "Composite", - className: "EventSpecificDetails" + name: "DateTime" } }, - healthErrors: { - serializedName: "healthErrors", + reasonsBlockingUpgrade: { + readOnly: true, + serializedName: "reasonsBlockingUpgrade", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "HealthError" + name: "String" } } } - } - } - } -}; - -export const Event: msRest.CompositeMapper = { - serializedName: "Event", - type: { - name: "Composite", - className: "Event", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + isUpgradeable: { + readOnly: true, + serializedName: "isUpgradeable", type: { - name: "Composite", - className: "EventProperties" + name: "String" } } } } }; -export const EventQueryParameter: msRest.CompositeMapper = { - serializedName: "EventQueryParameter", +export const InMageRcmNicDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmNicDetails", type: { name: "Composite", - className: "EventQueryParameter", + className: "InMageRcmNicDetails", modelProperties: { - eventCode: { - serializedName: "eventCode", + nicId: { + readOnly: true, + serializedName: "nicId", type: { name: "String" } }, - severity: { - serializedName: "severity", + isPrimaryNic: { + serializedName: "isPrimaryNic", type: { name: "String" } }, - eventType: { - serializedName: "eventType", + isSelectedForFailover: { + serializedName: "isSelectedForFailover", type: { name: "String" } }, - fabricName: { - serializedName: "fabricName", + sourceIPAddress: { + readOnly: true, + serializedName: "sourceIPAddress", type: { name: "String" } }, - affectedObjectFriendlyName: { - serializedName: "affectedObjectFriendlyName", + sourceIPAddressType: { + readOnly: true, + serializedName: "sourceIPAddressType", type: { name: "String" } }, - startTime: { - serializedName: "startTime", + sourceNetworkId: { + readOnly: true, + serializedName: "sourceNetworkId", type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "endTime", + sourceSubnetName: { + readOnly: true, + serializedName: "sourceSubnetName", type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const ExportJobDetails: msRest.CompositeMapper = { - serializedName: "ExportJobDetails", - type: { - name: "Composite", - polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, - uberParent: "JobDetails", - className: "ExportJobDetails", - modelProperties: { - ...JobDetails.type.modelProperties, - blobUri: { - serializedName: "blobUri", + }, + targetIPAddress: { + serializedName: "targetIPAddress", type: { name: "String" } }, - sasToken: { - serializedName: "sasToken", + targetIPAddressType: { + serializedName: "targetIPAddressType", + type: { + name: "String" + } + }, + targetSubnetName: { + serializedName: "targetSubnetName", + type: { + name: "String" + } + }, + testSubnetName: { + serializedName: "testSubnetName", + type: { + name: "String" + } + }, + testIPAddress: { + serializedName: "testIPAddress", + type: { + name: "String" + } + }, + testIPAddressType: { + serializedName: "testIPAddressType", type: { name: "String" } @@ -3841,65 +12124,52 @@ export const ExportJobDetails: msRest.CompositeMapper = { } }; -export const FabricProperties: msRest.CompositeMapper = { - serializedName: "FabricProperties", +export const InMageRcmNicInput: msRest.CompositeMapper = { + serializedName: "InMageRcmNicInput", type: { name: "Composite", - className: "FabricProperties", + className: "InMageRcmNicInput", modelProperties: { - friendlyName: { - serializedName: "friendlyName", + nicId: { + required: true, + serializedName: "nicId", type: { name: "String" } }, - encryptionDetails: { - serializedName: "encryptionDetails", - type: { - name: "Composite", - className: "EncryptionDetails" - } - }, - rolloverEncryptionDetails: { - serializedName: "rolloverEncryptionDetails", + isPrimaryNic: { + required: true, + serializedName: "isPrimaryNic", type: { - name: "Composite", - className: "EncryptionDetails" + name: "String" } }, - internalIdentifier: { - serializedName: "internalIdentifier", + isSelectedForFailover: { + serializedName: "isSelectedForFailover", type: { name: "String" } }, - bcdrState: { - serializedName: "bcdrState", + targetSubnetName: { + serializedName: "targetSubnetName", type: { name: "String" } }, - customDetails: { - serializedName: "customDetails", + targetStaticIPAddress: { + serializedName: "targetStaticIPAddress", type: { - name: "Composite", - className: "FabricSpecificDetails" + name: "String" } }, - healthErrorDetails: { - serializedName: "healthErrorDetails", + testSubnetName: { + serializedName: "testSubnetName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthError" - } - } + name: "String" } }, - health: { - serializedName: "health", + testStaticIPAddress: { + serializedName: "testStaticIPAddress", type: { name: "String" } @@ -3908,761 +12178,704 @@ export const FabricProperties: msRest.CompositeMapper = { } }; -export const Fabric: msRest.CompositeMapper = { - serializedName: "Fabric", +export const InMageRcmPolicyCreationInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", type: { name: "Composite", - className: "Fabric", + polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificInput", + className: "InMageRcmPolicyCreationInput", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...PolicyProviderSpecificInput.type.modelProperties, + recoveryPointHistoryInMinutes: { + serializedName: "recoveryPointHistoryInMinutes", type: { - name: "Composite", - className: "FabricProperties" + name: "Number" } - } - } - } -}; - -export const FabricCreationInputProperties: msRest.CompositeMapper = { - serializedName: "FabricCreationInputProperties", - type: { - name: "Composite", - className: "FabricCreationInputProperties", - modelProperties: { - customDetails: { - serializedName: "customDetails", + }, + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", type: { - name: "Composite", - className: "FabricSpecificCreationInput" + name: "Number" + } + }, + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + enableMultiVmSync: { + serializedName: "enableMultiVmSync", + type: { + name: "String" } } } } }; -export const FabricCreationInput: msRest.CompositeMapper = { - serializedName: "FabricCreationInput", +export const InMageRcmPolicyDetails: msRest.CompositeMapper = { + serializedName: "InMageRcm", type: { name: "Composite", - className: "FabricCreationInput", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "InMageRcmPolicyDetails", modelProperties: { - properties: { - serializedName: "properties", + ...PolicyProviderSpecificDetails.type.modelProperties, + recoveryPointHistoryInMinutes: { + serializedName: "recoveryPointHistoryInMinutes", type: { - name: "Composite", - className: "FabricCreationInputProperties" + name: "Number" + } + }, + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + enableMultiVmSync: { + serializedName: "enableMultiVmSync", + type: { + name: "String" } } } } }; -export const JobEntity: msRest.CompositeMapper = { - serializedName: "JobEntity", +export const InMageRcmSyncDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmSyncDetails", type: { name: "Composite", - className: "JobEntity", + className: "InMageRcmSyncDetails", modelProperties: { - jobId: { - serializedName: "jobId", + progressHealth: { + readOnly: true, + serializedName: "progressHealth", type: { name: "String" } }, - jobFriendlyName: { - serializedName: "jobFriendlyName", + transferredBytes: { + readOnly: true, + serializedName: "transferredBytes", type: { - name: "String" + name: "Number" } }, - targetObjectId: { - serializedName: "targetObjectId", + last15MinutesTransferredBytes: { + readOnly: true, + serializedName: "last15MinutesTransferredBytes", type: { - name: "String" + name: "Number" } }, - targetObjectName: { - serializedName: "targetObjectName", + lastDataTransferTimeUtc: { + readOnly: true, + serializedName: "lastDataTransferTimeUtc", type: { name: "String" } }, - targetInstanceType: { - serializedName: "targetInstanceType", + processedBytes: { + readOnly: true, + serializedName: "processedBytes", type: { - name: "String" + name: "Number" } }, - jobScenarioName: { - serializedName: "jobScenarioName", - type: { - name: "String" - } - } - } - } -}; - -export const FabricReplicationGroupTaskDetails: msRest.CompositeMapper = { - serializedName: "FabricReplicationGroupTaskDetails", - type: { - name: "Composite", - polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, - uberParent: "TaskTypeDetails", - className: "FabricReplicationGroupTaskDetails", - modelProperties: { - ...TaskTypeDetails.type.modelProperties, - skippedReason: { - serializedName: "skippedReason", + startTime: { + readOnly: true, + serializedName: "startTime", type: { name: "String" } }, - skippedReasonString: { - serializedName: "skippedReasonString", + lastRefreshTime: { + readOnly: true, + serializedName: "lastRefreshTime", type: { name: "String" } }, - jobTask: { - serializedName: "jobTask", + progressPercentage: { + readOnly: true, + serializedName: "progressPercentage", type: { - name: "Composite", - className: "JobEntity" + name: "Number" } } } } }; -export const FailoverReplicationProtectedItemDetails: msRest.CompositeMapper = { - serializedName: "FailoverReplicationProtectedItemDetails", +export const InMageRcmProtectedDiskDetails: msRest.CompositeMapper = { + serializedName: "InMageRcmProtectedDiskDetails", type: { name: "Composite", - className: "FailoverReplicationProtectedItemDetails", + className: "InMageRcmProtectedDiskDetails", modelProperties: { - name: { - serializedName: "name", + diskId: { + readOnly: true, + serializedName: "diskId", type: { name: "String" } }, - friendlyName: { - serializedName: "friendlyName", + diskName: { + readOnly: true, + serializedName: "diskName", type: { name: "String" } }, - testVmName: { - serializedName: "testVmName", + isOSDisk: { + readOnly: true, + serializedName: "isOSDisk", type: { name: "String" } }, - testVmFriendlyName: { - serializedName: "testVmFriendlyName", + capacityInBytes: { + readOnly: true, + serializedName: "capacityInBytes", type: { - name: "String" + name: "Number" } }, - networkConnectionStatus: { - serializedName: "networkConnectionStatus", + logStorageAccountId: { + readOnly: true, + serializedName: "logStorageAccountId", type: { name: "String" } }, - networkFriendlyName: { - serializedName: "networkFriendlyName", + diskEncryptionSetId: { + readOnly: true, + serializedName: "diskEncryptionSetId", type: { name: "String" } }, - subnet: { - serializedName: "subnet", + seedManagedDiskId: { + readOnly: true, + serializedName: "seedManagedDiskId", type: { name: "String" } }, - recoveryPointId: { - serializedName: "recoveryPointId", + targetManagedDiskId: { + readOnly: true, + serializedName: "targetManagedDiskId", type: { name: "String" } }, - recoveryPointTime: { - serializedName: "recoveryPointTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const FailoverJobDetails: msRest.CompositeMapper = { - serializedName: "FailoverJobDetails", - type: { - name: "Composite", - polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, - uberParent: "JobDetails", - className: "FailoverJobDetails", - modelProperties: { - ...JobDetails.type.modelProperties, - protectedItemDetails: { - serializedName: "protectedItemDetails", + diskType: { + serializedName: "diskType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FailoverReplicationProtectedItemDetails" - } - } + name: "String" } - } - } - } -}; - -export const FailoverProcessServerRequestProperties: msRest.CompositeMapper = { - serializedName: "FailoverProcessServerRequestProperties", - type: { - name: "Composite", - className: "FailoverProcessServerRequestProperties", - modelProperties: { - containerName: { - serializedName: "containerName", + }, + dataPendingInLogDataStoreInMB: { + readOnly: true, + serializedName: "dataPendingInLogDataStoreInMB", type: { - name: "String" + name: "Number" } }, - sourceProcessServerId: { - serializedName: "sourceProcessServerId", + dataPendingAtSourceAgentInMB: { + readOnly: true, + serializedName: "dataPendingAtSourceAgentInMB", type: { - name: "String" + name: "Number" } }, - targetProcessServerId: { - serializedName: "targetProcessServerId", + isInitialReplicationComplete: { + readOnly: true, + serializedName: "isInitialReplicationComplete", type: { name: "String" } }, - vmsToMigrate: { - serializedName: "vmsToMigrate", + irDetails: { + serializedName: "irDetails", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "InMageRcmSyncDetails" } }, - updateType: { - serializedName: "updateType", + resyncDetails: { + serializedName: "resyncDetails", type: { - name: "String" + name: "Composite", + className: "InMageRcmSyncDetails" } } } } }; -export const FailoverProcessServerRequest: msRest.CompositeMapper = { - serializedName: "FailoverProcessServerRequest", +export const InMageRcmProtectionContainerMappingDetails: msRest.CompositeMapper = { + serializedName: "InMageRcm", type: { name: "Composite", - className: "FailoverProcessServerRequest", + polymorphicDiscriminator: ProtectionContainerMappingProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "ProtectionContainerMappingProviderSpecificDetails", + className: "InMageRcmProtectionContainerMappingDetails", modelProperties: { - properties: { - serializedName: "properties", + ...ProtectionContainerMappingProviderSpecificDetails.type.modelProperties, + enableAgentAutoUpgrade: { + readOnly: true, + serializedName: "enableAgentAutoUpgrade", type: { - name: "Composite", - className: "FailoverProcessServerRequestProperties" + name: "String" } } } } }; -export const HealthErrorSummary: msRest.CompositeMapper = { - serializedName: "HealthErrorSummary", +export const InMageRcmRecoveryPointDetails: msRest.CompositeMapper = { + serializedName: "InMageRcm", type: { name: "Composite", - className: "HealthErrorSummary", + polymorphicDiscriminator: ProviderSpecificRecoveryPointDetails.type.polymorphicDiscriminator, + uberParent: "ProviderSpecificRecoveryPointDetails", + className: "InMageRcmRecoveryPointDetails", modelProperties: { - summaryCode: { - serializedName: "summaryCode", - type: { - name: "String" - } - }, - category: { - serializedName: "category", - type: { - name: "String" - } - }, - severity: { - serializedName: "severity", - type: { - name: "String" - } - }, - summaryMessage: { - serializedName: "summaryMessage", - type: { - name: "String" - } - }, - affectedResourceType: { - serializedName: "affectedResourceType", - type: { - name: "String" - } - }, - affectedResourceSubtype: { - serializedName: "affectedResourceSubtype", + ...ProviderSpecificRecoveryPointDetails.type.modelProperties, + isMultiVmSyncPoint: { + readOnly: true, + serializedName: "isMultiVmSyncPoint", type: { name: "String" } - }, - affectedResourceCorrelationIds: { - serializedName: "affectedResourceCorrelationIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } }; -export const HyperVReplica2012EventDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplica2012", +export const InMageRcmReplicationDetails: msRest.CompositeMapper = { + serializedName: "InMageRcm", type: { name: "Composite", - polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "EventProviderSpecificDetails", - className: "HyperVReplica2012EventDetails", + polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificSettings", + className: "InMageRcmReplicationDetails", modelProperties: { - ...EventProviderSpecificDetails.type.modelProperties, - containerName: { - serializedName: "containerName", + ...ReplicationProviderSpecificSettings.type.modelProperties, + internalIdentifier: { + readOnly: true, + serializedName: "internalIdentifier", type: { name: "String" } }, - fabricName: { - serializedName: "fabricName", + fabricDiscoveryMachineId: { + readOnly: true, + serializedName: "fabricDiscoveryMachineId", type: { name: "String" } }, - remoteContainerName: { - serializedName: "remoteContainerName", + multiVmGroupName: { + readOnly: true, + serializedName: "multiVmGroupName", type: { name: "String" } }, - remoteFabricName: { - serializedName: "remoteFabricName", + discoveryType: { + readOnly: true, + serializedName: "discoveryType", type: { name: "String" } - } - } - } -}; - -export const HyperVReplica2012R2EventDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplica2012R2", - type: { - name: "Composite", - polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "EventProviderSpecificDetails", - className: "HyperVReplica2012R2EventDetails", - modelProperties: { - ...EventProviderSpecificDetails.type.modelProperties, - containerName: { - serializedName: "containerName", + }, + processServerId: { + readOnly: true, + serializedName: "processServerId", type: { name: "String" } }, - fabricName: { - serializedName: "fabricName", + processorCoreCount: { + readOnly: true, + serializedName: "processorCoreCount", type: { - name: "String" + name: "Number" } }, - remoteContainerName: { - serializedName: "remoteContainerName", + allocatedMemoryInMB: { + readOnly: true, + serializedName: "allocatedMemoryInMB", + type: { + name: "Number" + } + }, + processServerName: { + readOnly: true, + serializedName: "processServerName", type: { name: "String" } }, - remoteFabricName: { - serializedName: "remoteFabricName", + runAsAccountId: { + readOnly: true, + serializedName: "runAsAccountId", type: { name: "String" } - } - } - } -}; - -export const HyperVReplicaAzureApplyRecoveryPointInput: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzure", - type: { - name: "Composite", - polymorphicDiscriminator: ApplyRecoveryPointProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "ApplyRecoveryPointProviderSpecificInput", - className: "HyperVReplicaAzureApplyRecoveryPointInput", - modelProperties: { - ...ApplyRecoveryPointProviderSpecificInput.type.modelProperties, - vaultLocation: { - serializedName: "vaultLocation", + }, + osType: { + readOnly: true, + serializedName: "osType", type: { name: "String" } }, - primaryKekCertificatePfx: { - serializedName: "primaryKekCertificatePfx", + firmwareType: { + readOnly: true, + serializedName: "firmwareType", type: { name: "String" } }, - secondaryKekCertificatePfx: { - serializedName: "secondaryKekCertificatePfx", + primaryNicIpAddress: { + readOnly: true, + serializedName: "primaryNicIpAddress", type: { name: "String" } - } - } - } -}; - -export const HyperVReplicaAzureEnableProtectionInput: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzure", - type: { - name: "Composite", - polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "EnableProtectionProviderSpecificInput", - className: "HyperVReplicaAzureEnableProtectionInput", - modelProperties: { - ...EnableProtectionProviderSpecificInput.type.modelProperties, - hvHostVmId: { - serializedName: "hvHostVmId", + }, + targetGeneration: { + readOnly: true, + serializedName: "targetGeneration", type: { name: "String" } }, - vmName: { - serializedName: "vmName", + licenseType: { + serializedName: "licenseType", type: { name: "String" } }, - osType: { - serializedName: "osType", + targetVmName: { + serializedName: "targetVmName", type: { name: "String" } }, - vhdId: { - serializedName: "vhdId", + targetVmSize: { + serializedName: "targetVmSize", type: { name: "String" } }, - targetStorageAccountId: { - serializedName: "targetStorageAccountId", + targetResourceGroupId: { + serializedName: "targetResourceGroupId", type: { name: "String" } }, - targetAzureNetworkId: { - serializedName: "targetAzureNetworkId", + targetLocation: { + serializedName: "targetLocation", type: { name: "String" } }, - targetAzureSubnetId: { - serializedName: "targetAzureSubnetId", + targetAvailabilitySetId: { + serializedName: "targetAvailabilitySetId", type: { name: "String" } }, - enableRdpOnTargetOption: { - serializedName: "enableRdpOnTargetOption", + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", type: { name: "String" } }, - targetAzureVmName: { - serializedName: "targetAzureVmName", + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", type: { name: "String" } }, - logStorageAccountId: { - serializedName: "logStorageAccountId", + targetBootDiagnosticsStorageAccountId: { + serializedName: "targetBootDiagnosticsStorageAccountId", type: { name: "String" } }, - disksToInclude: { - serializedName: "disksToInclude", + targetNetworkId: { + serializedName: "targetNetworkId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - targetAzureV1ResourceGroupId: { - serializedName: "targetAzureV1ResourceGroupId", + testNetworkId: { + serializedName: "testNetworkId", type: { name: "String" } }, - targetAzureV2ResourceGroupId: { - serializedName: "targetAzureV2ResourceGroupId", + failoverRecoveryPointId: { + readOnly: true, + serializedName: "failoverRecoveryPointId", type: { name: "String" } }, - useManagedDisks: { - serializedName: "useManagedDisks", + lastRecoveryPointReceived: { + readOnly: true, + serializedName: "lastRecoveryPointReceived", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const HyperVReplicaAzureEventDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzure", - type: { - name: "Composite", - polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "EventProviderSpecificDetails", - className: "HyperVReplicaAzureEventDetails", - modelProperties: { - ...EventProviderSpecificDetails.type.modelProperties, - containerName: { - serializedName: "containerName", + }, + lastRpoInSeconds: { + readOnly: true, + serializedName: "lastRpoInSeconds", type: { - name: "String" + name: "Number" } }, - fabricName: { - serializedName: "fabricName", + lastRpoCalculatedTime: { + readOnly: true, + serializedName: "lastRpoCalculatedTime", type: { - name: "String" + name: "DateTime" } }, - remoteContainerName: { - serializedName: "remoteContainerName", + lastRecoveryPointId: { + readOnly: true, + serializedName: "lastRecoveryPointId", type: { name: "String" } - } - } - } -}; - -export const HyperVReplicaAzureFailbackProviderInput: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzureFailback", - type: { - name: "Composite", - polymorphicDiscriminator: ProviderSpecificFailoverInput.type.polymorphicDiscriminator, - uberParent: "ProviderSpecificFailoverInput", - className: "HyperVReplicaAzureFailbackProviderInput", - modelProperties: { - ...ProviderSpecificFailoverInput.type.modelProperties, - dataSyncOption: { - serializedName: "dataSyncOption", + }, + initialReplicationProgressPercentage: { + readOnly: true, + serializedName: "initialReplicationProgressPercentage", type: { - name: "String" + name: "Number" } }, - recoveryVmCreationOption: { - serializedName: "recoveryVmCreationOption", + initialReplicationProcessedBytes: { + readOnly: true, + serializedName: "initialReplicationProcessedBytes", type: { - name: "String" + name: "Number" } }, - providerIdForAlternateRecovery: { - serializedName: "providerIdForAlternateRecovery", + initialReplicationTransferredBytes: { + readOnly: true, + serializedName: "initialReplicationTransferredBytes", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const HyperVReplicaAzureFailoverProviderInput: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzure", - type: { - name: "Composite", - polymorphicDiscriminator: ProviderSpecificFailoverInput.type.polymorphicDiscriminator, - uberParent: "ProviderSpecificFailoverInput", - className: "HyperVReplicaAzureFailoverProviderInput", - modelProperties: { - ...ProviderSpecificFailoverInput.type.modelProperties, - vaultLocation: { - serializedName: "vaultLocation", + }, + initialReplicationProgressHealth: { + readOnly: true, + serializedName: "initialReplicationProgressHealth", type: { name: "String" } }, - primaryKekCertificatePfx: { - serializedName: "primaryKekCertificatePfx", + resyncProgressPercentage: { + readOnly: true, + serializedName: "resyncProgressPercentage", type: { - name: "String" + name: "Number" } }, - secondaryKekCertificatePfx: { - serializedName: "secondaryKekCertificatePfx", + resyncProcessedBytes: { + readOnly: true, + serializedName: "resyncProcessedBytes", + type: { + name: "Number" + } + }, + resyncTransferredBytes: { + readOnly: true, + serializedName: "resyncTransferredBytes", + type: { + name: "Number" + } + }, + resyncProgressHealth: { + readOnly: true, + serializedName: "resyncProgressHealth", type: { name: "String" } }, - recoveryPointId: { - serializedName: "recoveryPointId", + resyncRequired: { + readOnly: true, + serializedName: "resyncRequired", type: { name: "String" } - } - } - } -}; - -export const HyperVReplicaAzurePolicyDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzure", - type: { - name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificDetails", - className: "HyperVReplicaAzurePolicyDetails", - modelProperties: { - ...PolicyProviderSpecificDetails.type.modelProperties, - recoveryPointHistoryDurationInHours: { - serializedName: "recoveryPointHistoryDurationInHours", + }, + resyncState: { + readOnly: true, + serializedName: "resyncState", type: { - name: "Number" + name: "String" } }, - applicationConsistentSnapshotFrequencyInHours: { - serializedName: "applicationConsistentSnapshotFrequencyInHours", + agentUpgradeState: { + readOnly: true, + serializedName: "agentUpgradeState", type: { - name: "Number" + name: "String" } }, - replicationInterval: { - serializedName: "replicationInterval", + lastAgentUpgradeType: { + readOnly: true, + serializedName: "lastAgentUpgradeType", type: { - name: "Number" + name: "String" } }, - onlineReplicationStartTime: { - serializedName: "onlineReplicationStartTime", + agentUpgradeJobId: { + readOnly: true, + serializedName: "agentUpgradeJobId", type: { name: "String" } }, - encryption: { - serializedName: "encryption", + agentUpgradeAttemptToVersion: { + readOnly: true, + serializedName: "agentUpgradeAttemptToVersion", type: { name: "String" } }, - activeStorageAccountId: { - serializedName: "activeStorageAccountId", + protectedDisks: { + serializedName: "protectedDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageRcmProtectedDiskDetails" + } + } + } + }, + isLastUpgradeSuccessful: { + readOnly: true, + serializedName: "isLastUpgradeSuccessful", type: { name: "String" } - } - } - } -}; - -export const HyperVReplicaAzurePolicyInput: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzure", - type: { - name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificInput", - className: "HyperVReplicaAzurePolicyInput", - modelProperties: { - ...PolicyProviderSpecificInput.type.modelProperties, - recoveryPointHistoryDuration: { - serializedName: "recoveryPointHistoryDuration", + }, + isAgentRegistrationSuccessfulAfterFailover: { + readOnly: true, + serializedName: "isAgentRegistrationSuccessfulAfterFailover", type: { - name: "Number" + name: "Boolean" } }, - applicationConsistentSnapshotFrequencyInHours: { - serializedName: "applicationConsistentSnapshotFrequencyInHours", + mobilityAgentDetails: { + serializedName: "mobilityAgentDetails", type: { - name: "Number" + name: "Composite", + className: "InMageRcmMobilityAgentDetails" } }, - replicationInterval: { - serializedName: "replicationInterval", + lastAgentUpgradeErrorDetails: { + serializedName: "lastAgentUpgradeErrorDetails", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageRcmLastAgentUpgradeErrorDetails" + } + } } }, - onlineReplicationStartTime: { - serializedName: "onlineReplicationStartTime", + agentUpgradeBlockingErrorDetails: { + serializedName: "agentUpgradeBlockingErrorDetails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageRcmAgentUpgradeBlockingErrorDetails" + } + } } }, - storageAccounts: { - serializedName: "storageAccounts", + vmNics: { + serializedName: "vmNics", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "InMageRcmNicDetails" } } } + }, + discoveredVmDetails: { + serializedName: "discoveredVmDetails", + type: { + name: "Composite", + className: "InMageRcmDiscoveredProtectedVmDetails" + } } } } }; -export const InitialReplicationDetails: msRest.CompositeMapper = { - serializedName: "InitialReplicationDetails", +export const InMageRcmReprotectInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", type: { name: "Composite", - className: "InitialReplicationDetails", + polymorphicDiscriminator: ReverseReplicationProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ReverseReplicationProviderSpecificInput", + className: "InMageRcmReprotectInput", modelProperties: { - initialReplicationType: { - serializedName: "initialReplicationType", + ...ReverseReplicationProviderSpecificInput.type.modelProperties, + reprotectAgentId: { + required: true, + serializedName: "reprotectAgentId", type: { name: "String" } }, - initialReplicationProgressPercentage: { - serializedName: "initialReplicationProgressPercentage", + datastoreName: { + required: true, + serializedName: "datastoreName", + type: { + name: "String" + } + }, + logStorageAccountId: { + required: true, + serializedName: "logStorageAccountId", + type: { + name: "String" + } + }, + policyId: { + serializedName: "policyId", type: { name: "String" } @@ -4671,44 +12884,90 @@ export const InitialReplicationDetails: msRest.CompositeMapper = { } }; -export const OSDetails: msRest.CompositeMapper = { - serializedName: "OSDetails", +export const InMageRcmTestFailoverInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", type: { name: "Composite", - className: "OSDetails", + polymorphicDiscriminator: TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "TestFailoverProviderSpecificInput", + className: "InMageRcmTestFailoverInput", modelProperties: { - osType: { - serializedName: "osType", + ...TestFailoverProviderSpecificInput.type.modelProperties, + networkId: { + serializedName: "networkId", type: { name: "String" } }, - productType: { - serializedName: "productType", + recoveryPointId: { + serializedName: "recoveryPointId", type: { name: "String" } - }, - osEdition: { - serializedName: "osEdition", + } + } + } +}; + +export const InMageRcmUnplannedFailoverInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", + type: { + name: "Composite", + polymorphicDiscriminator: UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "UnplannedFailoverProviderSpecificInput", + className: "InMageRcmUnplannedFailoverInput", + modelProperties: { + ...UnplannedFailoverProviderSpecificInput.type.modelProperties, + performShutdown: { + required: true, + serializedName: "performShutdown", type: { name: "String" } }, - oSVersion: { - serializedName: "oSVersion", + recoveryPointId: { + serializedName: "recoveryPointId", type: { name: "String" } - }, - oSMajorVersion: { - serializedName: "oSMajorVersion", + } + } + } +}; + +export const UpdateApplianceForReplicationProtectedItemProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "UpdateApplianceForReplicationProtectedItemProviderSpecificInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "UpdateApplianceForReplicationProtectedItemProviderSpecificInput", + className: "UpdateApplianceForReplicationProtectedItemProviderSpecificInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", type: { name: "String" } - }, - oSMinorVersion: { - serializedName: "oSMinorVersion", + } + } + } +}; + +export const InMageRcmUpdateApplianceForReplicationProtectedItemInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", + type: { + name: "Composite", + polymorphicDiscriminator: UpdateApplianceForReplicationProtectedItemProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "UpdateApplianceForReplicationProtectedItemProviderSpecificInput", + className: "InMageRcmUpdateApplianceForReplicationProtectedItemInput", + modelProperties: { + ...UpdateApplianceForReplicationProtectedItemProviderSpecificInput.type.modelProperties, + runAsAccountId: { + serializedName: "runAsAccountId", type: { name: "String" } @@ -4717,92 +12976,87 @@ export const OSDetails: msRest.CompositeMapper = { } }; -export const HyperVReplicaAzureReplicationDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzure", +export const InMageRcmUpdateContainerMappingInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", type: { name: "Composite", - polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, - uberParent: "ReplicationProviderSpecificSettings", - className: "HyperVReplicaAzureReplicationDetails", + polymorphicDiscriminator: ReplicationProviderSpecificUpdateContainerMappingInput.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificUpdateContainerMappingInput", + className: "InMageRcmUpdateContainerMappingInput", modelProperties: { - ...ReplicationProviderSpecificSettings.type.modelProperties, - azureVmDiskDetails: { - serializedName: "azureVmDiskDetails", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureVmDiskDetails" - } - } - } - }, - recoveryAzureVmName: { - serializedName: "recoveryAzureVmName", + ...ReplicationProviderSpecificUpdateContainerMappingInput.type.modelProperties, + enableAgentAutoUpgrade: { + required: true, + serializedName: "enableAgentAutoUpgrade", type: { name: "String" } - }, - recoveryAzureVMSize: { - serializedName: "recoveryAzureVMSize", + } + } + } +}; + +export const InMageRcmUpdateReplicationProtectedItemInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", + type: { + name: "Composite", + polymorphicDiscriminator: UpdateReplicationProtectedItemProviderInput.type.polymorphicDiscriminator, + uberParent: "UpdateReplicationProtectedItemProviderInput", + className: "InMageRcmUpdateReplicationProtectedItemInput", + modelProperties: { + ...UpdateReplicationProtectedItemProviderInput.type.modelProperties, + targetVmName: { + serializedName: "targetVmName", type: { name: "String" } }, - recoveryAzureStorageAccount: { - serializedName: "recoveryAzureStorageAccount", + targetVmSize: { + serializedName: "targetVmSize", type: { name: "String" } }, - recoveryAzureLogStorageAccountId: { - serializedName: "recoveryAzureLogStorageAccountId", + targetResourceGroupId: { + serializedName: "targetResourceGroupId", type: { name: "String" } }, - lastReplicatedTime: { - serializedName: "lastReplicatedTime", - type: { - name: "DateTime" - } - }, - rpoInSeconds: { - serializedName: "rpoInSeconds", + targetAvailabilitySetId: { + serializedName: "targetAvailabilitySetId", type: { - name: "Number" + name: "String" } }, - lastRpoCalculatedTime: { - serializedName: "lastRpoCalculatedTime", + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", type: { - name: "DateTime" + name: "String" } }, - vmId: { - serializedName: "vmId", + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", type: { name: "String" } }, - vmProtectionState: { - serializedName: "vmProtectionState", + targetBootDiagnosticsStorageAccountId: { + serializedName: "targetBootDiagnosticsStorageAccountId", type: { name: "String" } }, - vmProtectionStateDescription: { - serializedName: "vmProtectionStateDescription", + targetNetworkId: { + serializedName: "targetNetworkId", type: { name: "String" } }, - initialReplicationDetails: { - serializedName: "initialReplicationDetails", + testNetworkId: { + serializedName: "testNetworkId", type: { - name: "Composite", - className: "InitialReplicationDetails" + name: "String" } }, vmNics: { @@ -4812,40 +13066,62 @@ export const HyperVReplicaAzureReplicationDetails: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "VMNicDetails" + className: "InMageRcmNicInput" } } } }, - selectedRecoveryAzureNetworkId: { - serializedName: "selectedRecoveryAzureNetworkId", + licenseType: { + serializedName: "licenseType", type: { name: "String" } - }, - selectedSourceNicId: { - serializedName: "selectedSourceNicId", + } + } + } +}; + +export const OSDiskDetails: msRest.CompositeMapper = { + serializedName: "OSDiskDetails", + type: { + name: "Composite", + className: "OSDiskDetails", + modelProperties: { + osVhdId: { + serializedName: "osVhdId", type: { name: "String" } }, - encryption: { - serializedName: "encryption", + osType: { + serializedName: "osType", type: { name: "String" } }, - oSDetails: { - serializedName: "oSDetails", + vhdName: { + serializedName: "vhdName", type: { - name: "Composite", - className: "OSDetails" + name: "String" } - }, - sourceVmRamSizeInMB: { - serializedName: "sourceVmRamSizeInMB", + } + } + } +}; + +export const InMageReplicationDetails: msRest.CompositeMapper = { + serializedName: "InMage", + type: { + name: "Composite", + polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificSettings", + className: "InMageReplicationDetails", + modelProperties: { + ...ReplicationProviderSpecificSettings.type.modelProperties, + activeSiteType: { + serializedName: "activeSiteType", type: { - name: "Number" + name: "String" } }, sourceVmCpuCount: { @@ -4854,244 +13130,175 @@ export const HyperVReplicaAzureReplicationDetails: msRest.CompositeMapper = { name: "Number" } }, - enableRdpOnTargetOption: { - serializedName: "enableRdpOnTargetOption", + sourceVmRamSizeInMB: { + serializedName: "sourceVmRamSizeInMB", type: { - name: "String" + name: "Number" } }, - recoveryAzureResourceGroupId: { - serializedName: "recoveryAzureResourceGroupId", + osDetails: { + serializedName: "osDetails", type: { - name: "String" + name: "Composite", + className: "OSDiskDetails" } }, - recoveryAvailabilitySetId: { - serializedName: "recoveryAvailabilitySetId", + protectionStage: { + serializedName: "protectionStage", type: { name: "String" } }, - useManagedDisks: { - serializedName: "useManagedDisks", + vmId: { + serializedName: "vmId", type: { name: "String" } }, - licenseType: { - serializedName: "licenseType", - type: { - name: "String" - } - } - } - } -}; - -export const HyperVReplicaAzureReprotectInput: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzure", - type: { - name: "Composite", - polymorphicDiscriminator: ReverseReplicationProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "ReverseReplicationProviderSpecificInput", - className: "HyperVReplicaAzureReprotectInput", - modelProperties: { - ...ReverseReplicationProviderSpecificInput.type.modelProperties, - hvHostVmId: { - serializedName: "hvHostVmId", + vmProtectionState: { + serializedName: "vmProtectionState", type: { name: "String" } }, - vmName: { - serializedName: "vmName", + vmProtectionStateDescription: { + serializedName: "vmProtectionStateDescription", type: { name: "String" } }, - osType: { - serializedName: "osType", + resyncDetails: { + serializedName: "resyncDetails", type: { - name: "String" + name: "Composite", + className: "InitialReplicationDetails" } }, - vHDId: { - serializedName: "vHDId", + retentionWindowStart: { + serializedName: "retentionWindowStart", type: { - name: "String" + name: "DateTime" } }, - storageAccountId: { - serializedName: "storageAccountId", + retentionWindowEnd: { + serializedName: "retentionWindowEnd", type: { - name: "String" + name: "DateTime" } }, - logStorageAccountId: { - serializedName: "logStorageAccountId", + compressedDataRateInMB: { + serializedName: "compressedDataRateInMB", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const HyperVReplicaAzureUpdateReplicationProtectedItemInput: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzure", - type: { - name: "Composite", - polymorphicDiscriminator: UpdateReplicationProtectedItemProviderInput.type.polymorphicDiscriminator, - uberParent: "UpdateReplicationProtectedItemProviderInput", - className: "HyperVReplicaAzureUpdateReplicationProtectedItemInput", - modelProperties: { - ...UpdateReplicationProtectedItemProviderInput.type.modelProperties, - recoveryAzureV1ResourceGroupId: { - serializedName: "recoveryAzureV1ResourceGroupId", + }, + uncompressedDataRateInMB: { + serializedName: "uncompressedDataRateInMB", type: { - name: "String" + name: "Number" } }, - recoveryAzureV2ResourceGroupId: { - serializedName: "recoveryAzureV2ResourceGroupId", + rpoInSeconds: { + serializedName: "rpoInSeconds", type: { - name: "String" + name: "Number" } }, - useManagedDisks: { - serializedName: "useManagedDisks", + protectedDisks: { + serializedName: "protectedDisks", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InMageProtectedDiskDetails" + } + } } - } - } - } -}; - -export const HyperVReplicaBaseEventDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplicaBaseEventDetails", - type: { - name: "Composite", - polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "EventProviderSpecificDetails", - className: "HyperVReplicaBaseEventDetails", - modelProperties: { - ...EventProviderSpecificDetails.type.modelProperties, - containerName: { - serializedName: "containerName", + }, + ipAddress: { + serializedName: "ipAddress", type: { name: "String" } }, - fabricName: { - serializedName: "fabricName", + lastHeartbeat: { + serializedName: "lastHeartbeat", type: { - name: "String" + name: "DateTime" } }, - remoteContainerName: { - serializedName: "remoteContainerName", + processServerId: { + serializedName: "processServerId", type: { name: "String" } }, - remoteFabricName: { - serializedName: "remoteFabricName", + masterTargetId: { + serializedName: "masterTargetId", type: { name: "String" } - } - } - } -}; - -export const HyperVReplicaBasePolicyDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplicaBasePolicyDetails", - type: { - name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificDetails", - className: "HyperVReplicaBasePolicyDetails", - modelProperties: { - ...PolicyProviderSpecificDetails.type.modelProperties, - recoveryPoints: { - serializedName: "recoveryPoints", - type: { - name: "Number" - } }, - applicationConsistentSnapshotFrequencyInHours: { - serializedName: "applicationConsistentSnapshotFrequencyInHours", + consistencyPoints: { + serializedName: "consistencyPoints", type: { - name: "Number" + name: "Dictionary", + value: { + type: { + name: "DateTime" + } + } } }, - compression: { - serializedName: "compression", + diskResized: { + serializedName: "diskResized", type: { name: "String" } }, - initialReplicationMethod: { - serializedName: "initialReplicationMethod", + rebootAfterUpdateStatus: { + serializedName: "rebootAfterUpdateStatus", type: { name: "String" } }, - onlineReplicationStartTime: { - serializedName: "onlineReplicationStartTime", + multiVmGroupId: { + serializedName: "multiVmGroupId", type: { name: "String" } }, - offlineReplicationImportPath: { - serializedName: "offlineReplicationImportPath", + multiVmGroupName: { + serializedName: "multiVmGroupName", type: { name: "String" } }, - offlineReplicationExportPath: { - serializedName: "offlineReplicationExportPath", + multiVmSyncStatus: { + serializedName: "multiVmSyncStatus", type: { name: "String" } }, - replicationPort: { - serializedName: "replicationPort", + agentDetails: { + serializedName: "agentDetails", type: { - name: "Number" + name: "Composite", + className: "InMageAgentDetails" } }, - allowedAuthenticationType: { - serializedName: "allowedAuthenticationType", + vCenterInfrastructureId: { + serializedName: "vCenterInfrastructureId", type: { - name: "Number" + name: "String" } }, - replicaDeletionOption: { - serializedName: "replicaDeletionOption", + infrastructureVmId: { + serializedName: "infrastructureVmId", type: { name: "String" } - } - } - } -}; - -export const HyperVReplicaBaseReplicationDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplicaBaseReplicationDetails", - type: { - name: "Composite", - polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, - uberParent: "ReplicationProviderSpecificSettings", - className: "HyperVReplicaBaseReplicationDetails", - modelProperties: { - ...ReplicationProviderSpecificSettings.type.modelProperties, - lastReplicatedTime: { - serializedName: "lastReplicatedTime", - type: { - name: "DateTime" - } }, vmNics: { serializedName: "vmNics", @@ -5105,118 +13312,79 @@ export const HyperVReplicaBaseReplicationDetails: msRest.CompositeMapper = { } } }, - vmId: { - serializedName: "vmId", - type: { - name: "String" - } - }, - vmProtectionState: { - serializedName: "vmProtectionState", + discoveryType: { + serializedName: "discoveryType", type: { name: "String" } }, - vmProtectionStateDescription: { - serializedName: "vmProtectionStateDescription", + azureStorageAccountId: { + serializedName: "azureStorageAccountId", type: { name: "String" } }, - initialReplicationDetails: { - serializedName: "initialReplicationDetails", - type: { - name: "Composite", - className: "InitialReplicationDetails" - } - }, - vMDiskDetails: { - serializedName: "vMDiskDetails", + datastores: { + serializedName: "datastores", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DiskDetails" + name: "String" } } } - } - } - } -}; - -export const HyperVReplicaBluePolicyDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplica2012R2", - type: { - name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificDetails", - className: "HyperVReplicaBluePolicyDetails", - modelProperties: { - ...PolicyProviderSpecificDetails.type.modelProperties, - replicationFrequencyInSeconds: { - serializedName: "replicationFrequencyInSeconds", - type: { - name: "Number" - } - }, - recoveryPoints: { - serializedName: "recoveryPoints", - type: { - name: "Number" - } }, - applicationConsistentSnapshotFrequencyInHours: { - serializedName: "applicationConsistentSnapshotFrequencyInHours", - type: { - name: "Number" - } - }, - compression: { - serializedName: "compression", + validationErrors: { + serializedName: "validationErrors", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } } }, - initialReplicationMethod: { - serializedName: "initialReplicationMethod", + lastRpoCalculatedTime: { + serializedName: "lastRpoCalculatedTime", type: { - name: "String" + name: "DateTime" } }, - onlineReplicationStartTime: { - serializedName: "onlineReplicationStartTime", + lastUpdateReceivedTime: { + serializedName: "lastUpdateReceivedTime", type: { - name: "String" + name: "DateTime" } }, - offlineReplicationImportPath: { - serializedName: "offlineReplicationImportPath", + replicaId: { + serializedName: "replicaId", type: { name: "String" } }, - offlineReplicationExportPath: { - serializedName: "offlineReplicationExportPath", + osVersion: { + serializedName: "osVersion", type: { name: "String" } }, - replicationPort: { - serializedName: "replicationPort", + isAdditionalStatsAvailable: { + serializedName: "isAdditionalStatsAvailable", type: { - name: "Number" + name: "Boolean" } }, - allowedAuthenticationType: { - serializedName: "allowedAuthenticationType", + totalDataTransferred: { + serializedName: "totalDataTransferred", type: { name: "Number" } }, - replicaDeletionOption: { - serializedName: "replicaDeletionOption", + totalProgressHealth: { + serializedName: "totalProgressHealth", type: { name: "String" } @@ -5225,77 +13393,94 @@ export const HyperVReplicaBluePolicyDetails: msRest.CompositeMapper = { } }; -export const HyperVReplicaBluePolicyInput: msRest.CompositeMapper = { - serializedName: "HyperVReplica2012R2", +export const InMageReprotectInput: msRest.CompositeMapper = { + serializedName: "InMage", type: { name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificInput", - className: "HyperVReplicaBluePolicyInput", + polymorphicDiscriminator: ReverseReplicationProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ReverseReplicationProviderSpecificInput", + className: "InMageReprotectInput", modelProperties: { - ...PolicyProviderSpecificInput.type.modelProperties, - replicationFrequencyInSeconds: { - serializedName: "replicationFrequencyInSeconds", - type: { - name: "Number" - } - }, - recoveryPoints: { - serializedName: "recoveryPoints", + ...ReverseReplicationProviderSpecificInput.type.modelProperties, + masterTargetId: { + required: true, + serializedName: "masterTargetId", type: { - name: "Number" + name: "String" } }, - applicationConsistentSnapshotFrequencyInHours: { - serializedName: "applicationConsistentSnapshotFrequencyInHours", + processServerId: { + required: true, + serializedName: "processServerId", type: { - name: "Number" + name: "String" } }, - compression: { - serializedName: "compression", + retentionDrive: { + required: true, + serializedName: "retentionDrive", type: { name: "String" } }, - initialReplicationMethod: { - serializedName: "initialReplicationMethod", + runAsAccountId: { + serializedName: "runAsAccountId", type: { name: "String" } }, - onlineReplicationStartTime: { - serializedName: "onlineReplicationStartTime", + datastoreName: { + serializedName: "datastoreName", type: { name: "String" } }, - offlineReplicationImportPath: { - serializedName: "offlineReplicationImportPath", + diskExclusionInput: { + serializedName: "diskExclusionInput", type: { - name: "String" + name: "Composite", + className: "InMageDiskExclusionInput" } }, - offlineReplicationExportPath: { - serializedName: "offlineReplicationExportPath", + profileId: { + required: true, + serializedName: "profileId", type: { name: "String" } }, - replicationPort: { - serializedName: "replicationPort", + disksToInclude: { + serializedName: "disksToInclude", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - allowedAuthenticationType: { - serializedName: "allowedAuthenticationType", + } + } + } +}; + +export const InMageTestFailoverInput: msRest.CompositeMapper = { + serializedName: "InMage", + type: { + name: "Composite", + polymorphicDiscriminator: TestFailoverProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "TestFailoverProviderSpecificInput", + className: "InMageTestFailoverInput", + modelProperties: { + ...TestFailoverProviderSpecificInput.type.modelProperties, + recoveryPointType: { + serializedName: "recoveryPointType", type: { - name: "Number" + name: "String" } }, - replicaDeletion: { - serializedName: "replicaDeletion", + recoveryPointId: { + serializedName: "recoveryPointId", type: { name: "String" } @@ -5304,212 +13489,199 @@ export const HyperVReplicaBluePolicyInput: msRest.CompositeMapper = { } }; -export const HyperVReplicaBlueReplicationDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplica2012R2", +export const InMageUnplannedFailoverInput: msRest.CompositeMapper = { + serializedName: "InMage", type: { name: "Composite", - polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, - uberParent: "ReplicationProviderSpecificSettings", - className: "HyperVReplicaBlueReplicationDetails", + polymorphicDiscriminator: UnplannedFailoverProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "UnplannedFailoverProviderSpecificInput", + className: "InMageUnplannedFailoverInput", modelProperties: { - ...ReplicationProviderSpecificSettings.type.modelProperties, - lastReplicatedTime: { - serializedName: "lastReplicatedTime", + ...UnplannedFailoverProviderSpecificInput.type.modelProperties, + recoveryPointType: { + serializedName: "recoveryPointType", type: { - name: "DateTime" + name: "String" } }, - vmNics: { - serializedName: "vmNics", + recoveryPointId: { + serializedName: "recoveryPointId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VMNicDetails" - } - } + name: "String" + } + } + } + } +}; + +export const JobProperties: msRest.CompositeMapper = { + serializedName: "JobProperties", + type: { + name: "Composite", + className: "JobProperties", + modelProperties: { + activityId: { + serializedName: "activityId", + type: { + name: "String" } }, - vmId: { - serializedName: "vmId", + scenarioName: { + serializedName: "scenarioName", type: { name: "String" } }, - vmProtectionState: { - serializedName: "vmProtectionState", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - vmProtectionStateDescription: { - serializedName: "vmProtectionStateDescription", + state: { + serializedName: "state", type: { name: "String" } }, - initialReplicationDetails: { - serializedName: "initialReplicationDetails", + stateDescription: { + serializedName: "stateDescription", type: { - name: "Composite", - className: "InitialReplicationDetails" + name: "String" } }, - vMDiskDetails: { - serializedName: "vMDiskDetails", + tasks: { + serializedName: "tasks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiskDetails" + className: "ASRTask" } } } - } - } - } -}; - -export const HyperVReplicaPolicyDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplica2012", - type: { - name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificDetails", - className: "HyperVReplicaPolicyDetails", - modelProperties: { - ...PolicyProviderSpecificDetails.type.modelProperties, - recoveryPoints: { - serializedName: "recoveryPoints", - type: { - name: "Number" - } }, - applicationConsistentSnapshotFrequencyInHours: { - serializedName: "applicationConsistentSnapshotFrequencyInHours", + errors: { + serializedName: "errors", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobErrorDetails" + } + } } }, - compression: { - serializedName: "compression", + startTime: { + serializedName: "startTime", type: { - name: "String" + name: "DateTime" } }, - initialReplicationMethod: { - serializedName: "initialReplicationMethod", + endTime: { + serializedName: "endTime", type: { - name: "String" + name: "DateTime" } }, - onlineReplicationStartTime: { - serializedName: "onlineReplicationStartTime", + allowedActions: { + serializedName: "allowedActions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - offlineReplicationImportPath: { - serializedName: "offlineReplicationImportPath", + targetObjectId: { + serializedName: "targetObjectId", type: { name: "String" } }, - offlineReplicationExportPath: { - serializedName: "offlineReplicationExportPath", + targetObjectName: { + serializedName: "targetObjectName", type: { name: "String" } }, - replicationPort: { - serializedName: "replicationPort", - type: { - name: "Number" - } - }, - allowedAuthenticationType: { - serializedName: "allowedAuthenticationType", + targetInstanceType: { + serializedName: "targetInstanceType", type: { - name: "Number" + name: "String" } }, - replicaDeletionOption: { - serializedName: "replicaDeletionOption", + customDetails: { + serializedName: "customDetails", type: { - name: "String" + name: "Composite", + className: "JobDetails" } } } } }; -export const HyperVReplicaPolicyInput: msRest.CompositeMapper = { - serializedName: "HyperVReplica2012", +export const Job: msRest.CompositeMapper = { + serializedName: "Job", type: { name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificInput", - className: "HyperVReplicaPolicyInput", + className: "Job", modelProperties: { - ...PolicyProviderSpecificInput.type.modelProperties, - recoveryPoints: { - serializedName: "recoveryPoints", - type: { - name: "Number" - } - }, - applicationConsistentSnapshotFrequencyInHours: { - serializedName: "applicationConsistentSnapshotFrequencyInHours", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "JobProperties" } - }, - compression: { - serializedName: "compression", + } + } + } +}; + +export const JobEntity: msRest.CompositeMapper = { + serializedName: "JobEntity", + type: { + name: "Composite", + className: "JobEntity", + modelProperties: { + jobId: { + serializedName: "jobId", type: { name: "String" } }, - initialReplicationMethod: { - serializedName: "initialReplicationMethod", + jobFriendlyName: { + serializedName: "jobFriendlyName", type: { name: "String" } }, - onlineReplicationStartTime: { - serializedName: "onlineReplicationStartTime", + targetObjectId: { + serializedName: "targetObjectId", type: { name: "String" } }, - offlineReplicationImportPath: { - serializedName: "offlineReplicationImportPath", + targetObjectName: { + serializedName: "targetObjectName", type: { name: "String" } }, - offlineReplicationExportPath: { - serializedName: "offlineReplicationExportPath", + targetInstanceType: { + serializedName: "targetInstanceType", type: { name: "String" } }, - replicationPort: { - serializedName: "replicationPort", - type: { - name: "Number" - } - }, - allowedAuthenticationType: { - serializedName: "allowedAuthenticationType", - type: { - name: "Number" - } - }, - replicaDeletion: { - serializedName: "replicaDeletion", + jobScenarioName: { + serializedName: "jobScenarioName", type: { name: "String" } @@ -5518,141 +13690,93 @@ export const HyperVReplicaPolicyInput: msRest.CompositeMapper = { } }; -export const HyperVReplicaReplicationDetails: msRest.CompositeMapper = { - serializedName: "HyperVReplica2012", +export const JobQueryParameter: msRest.CompositeMapper = { + serializedName: "JobQueryParameter", type: { name: "Composite", - polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, - uberParent: "ReplicationProviderSpecificSettings", - className: "HyperVReplicaReplicationDetails", + className: "JobQueryParameter", modelProperties: { - ...ReplicationProviderSpecificSettings.type.modelProperties, - lastReplicatedTime: { - serializedName: "lastReplicatedTime", + startTime: { + serializedName: "startTime", type: { - name: "DateTime" + name: "String" } }, - vmNics: { - serializedName: "vmNics", + endTime: { + serializedName: "endTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VMNicDetails" - } - } + name: "String" } }, - vmId: { - serializedName: "vmId", + fabricId: { + serializedName: "fabricId", type: { name: "String" } }, - vmProtectionState: { - serializedName: "vmProtectionState", + affectedObjectTypes: { + serializedName: "affectedObjectTypes", type: { name: "String" } }, - vmProtectionStateDescription: { - serializedName: "vmProtectionStateDescription", + jobStatus: { + serializedName: "jobStatus", type: { name: "String" } }, - initialReplicationDetails: { - serializedName: "initialReplicationDetails", + jobOutputType: { + serializedName: "jobOutputType", type: { - name: "Composite", - className: "InitialReplicationDetails" + name: "String" } }, - vMDiskDetails: { - serializedName: "vMDiskDetails", + jobName: { + serializedName: "jobName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskDetails" - } - } + name: "String" + } + }, + timezoneOffset: { + serializedName: "timezoneOffset", + type: { + name: "Number" } } } } }; -export const HyperVSiteDetails: msRest.CompositeMapper = { - serializedName: "HyperVSite", - type: { - name: "Composite", - polymorphicDiscriminator: FabricSpecificDetails.type.polymorphicDiscriminator, - uberParent: "FabricSpecificDetails", - className: "HyperVSiteDetails", - modelProperties: { - ...FabricSpecificDetails.type.modelProperties - } - } -}; - -export const HyperVVirtualMachineDetails: msRest.CompositeMapper = { - serializedName: "HyperVVirtualMachine", +export const JobStatusEventDetails: msRest.CompositeMapper = { + serializedName: "JobStatus", type: { name: "Composite", - polymorphicDiscriminator: ConfigurationSettings.type.polymorphicDiscriminator, - uberParent: "ConfigurationSettings", - className: "HyperVVirtualMachineDetails", + polymorphicDiscriminator: EventSpecificDetails.type.polymorphicDiscriminator, + uberParent: "EventSpecificDetails", + className: "JobStatusEventDetails", modelProperties: { - ...ConfigurationSettings.type.modelProperties, - sourceItemId: { - serializedName: "sourceItemId", - type: { - name: "String" - } - }, - generation: { - serializedName: "generation", + ...EventSpecificDetails.type.modelProperties, + jobId: { + serializedName: "jobId", type: { name: "String" } }, - osDetails: { - serializedName: "osDetails", - type: { - name: "Composite", - className: "OSDetails" - } - }, - diskDetails: { - serializedName: "diskDetails", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskDetails" - } - } - } - }, - hasPhysicalDisk: { - serializedName: "hasPhysicalDisk", + jobFriendlyName: { + serializedName: "jobFriendlyName", type: { name: "String" } }, - hasFibreChannelAdapter: { - serializedName: "hasFibreChannelAdapter", + jobStatus: { + serializedName: "jobStatus", type: { name: "String" } }, - hasSharedVhd: { - serializedName: "hasSharedVhd", + affectedObjectType: { + serializedName: "affectedObjectType", type: { name: "String" } @@ -5661,50 +13785,81 @@ export const HyperVVirtualMachineDetails: msRest.CompositeMapper = { } }; -export const IdentityInformation: msRest.CompositeMapper = { - serializedName: "IdentityInformation", +export const LogicalNetworkProperties: msRest.CompositeMapper = { + serializedName: "LogicalNetworkProperties", type: { name: "Composite", - className: "IdentityInformation", + className: "LogicalNetworkProperties", modelProperties: { - identityProviderType: { - serializedName: "identityProviderType", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + networkVirtualizationStatus: { + serializedName: "networkVirtualizationStatus", type: { name: "String" } }, - applicationId: { - serializedName: "applicationId", + logicalNetworkUsage: { + serializedName: "logicalNetworkUsage", type: { name: "String" } }, - objectId: { - serializedName: "objectId", + logicalNetworkDefinitionsStatus: { + serializedName: "logicalNetworkDefinitionsStatus", type: { name: "String" } - }, - audience: { - serializedName: "audience", + } + } + } +}; + +export const LogicalNetwork: msRest.CompositeMapper = { + serializedName: "LogicalNetwork", + type: { + name: "Composite", + className: "LogicalNetwork", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "LogicalNetworkProperties" + } + } + } + } +}; + +export const ManualActionTaskDetails: msRest.CompositeMapper = { + serializedName: "ManualActionTaskDetails", + type: { + name: "Composite", + polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, + uberParent: "TaskTypeDetails", + className: "ManualActionTaskDetails", + modelProperties: { + ...TaskTypeDetails.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - aadAuthority: { - serializedName: "aadAuthority", + instructions: { + serializedName: "instructions", type: { name: "String" } }, - certificateThumbprint: { - serializedName: "certificateThumbprint", + observation: { + serializedName: "observation", type: { name: "String" } @@ -5713,76 +13868,46 @@ export const IdentityInformation: msRest.CompositeMapper = { } }; -export const InlineWorkflowTaskDetails: msRest.CompositeMapper = { - serializedName: "InlineWorkflowTaskDetails", - type: { - name: "Composite", - polymorphicDiscriminator: GroupTaskDetails.type.polymorphicDiscriminator, - uberParent: "GroupTaskDetails", - className: "InlineWorkflowTaskDetails", - modelProperties: { - ...GroupTaskDetails.type.modelProperties, - workflowIds: { - serializedName: "workflowIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const InMageAgentDetails: msRest.CompositeMapper = { - serializedName: "InMageAgentDetails", +export const RetentionVolume: msRest.CompositeMapper = { + serializedName: "RetentionVolume", type: { name: "Composite", - className: "InMageAgentDetails", + className: "RetentionVolume", modelProperties: { - agentVersion: { - serializedName: "agentVersion", + volumeName: { + serializedName: "volumeName", type: { name: "String" } }, - agentUpdateStatus: { - serializedName: "agentUpdateStatus", + capacityInBytes: { + serializedName: "capacityInBytes", type: { - name: "String" + name: "Number" } }, - postUpdateRebootStatus: { - serializedName: "postUpdateRebootStatus", + freeSpaceInBytes: { + serializedName: "freeSpaceInBytes", type: { - name: "String" + name: "Number" } }, - agentExpiryDate: { - serializedName: "agentExpiryDate", + thresholdPercentage: { + serializedName: "thresholdPercentage", type: { - name: "DateTime" + name: "Number" } } } } }; -export const InMageAgentVersionDetails: msRest.CompositeMapper = { - serializedName: "InMageAgentVersionDetails", +export const VersionDetails: msRest.CompositeMapper = { + serializedName: "VersionDetails", type: { name: "Composite", - className: "InMageAgentVersionDetails", + className: "VersionDetails", modelProperties: { - postUpdateRebootStatus: { - serializedName: "postUpdateRebootStatus", - type: { - name: "String" - } - }, version: { serializedName: "version", type: { @@ -5805,181 +13930,164 @@ export const InMageAgentVersionDetails: msRest.CompositeMapper = { } }; -export const InMageAzureV2ApplyRecoveryPointInput: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", +export const MasterTargetServer: msRest.CompositeMapper = { + serializedName: "MasterTargetServer", type: { name: "Composite", - polymorphicDiscriminator: ApplyRecoveryPointProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "ApplyRecoveryPointProviderSpecificInput", - className: "InMageAzureV2ApplyRecoveryPointInput", + className: "MasterTargetServer", modelProperties: { - ...ApplyRecoveryPointProviderSpecificInput.type.modelProperties, - vaultLocation: { - serializedName: "vaultLocation", + id: { + serializedName: "id", type: { name: "String" } - } - } - } -}; - -export const InMageAzureV2EnableProtectionInput: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", - type: { - name: "Composite", - polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "EnableProtectionProviderSpecificInput", - className: "InMageAzureV2EnableProtectionInput", - modelProperties: { - ...EnableProtectionProviderSpecificInput.type.modelProperties, - masterTargetId: { - serializedName: "masterTargetId", + }, + ipAddress: { + serializedName: "ipAddress", type: { name: "String" } }, - processServerId: { - serializedName: "processServerId", + name: { + serializedName: "name", type: { name: "String" } }, - storageAccountId: { - required: true, - serializedName: "storageAccountId", + osType: { + serializedName: "osType", type: { name: "String" } }, - runAsAccountId: { - serializedName: "runAsAccountId", + agentVersion: { + serializedName: "agentVersion", type: { name: "String" } }, - multiVmGroupId: { - serializedName: "multiVmGroupId", + lastHeartbeat: { + serializedName: "lastHeartbeat", type: { - name: "String" + name: "DateTime" } }, - multiVmGroupName: { - serializedName: "multiVmGroupName", + versionStatus: { + serializedName: "versionStatus", type: { name: "String" } }, - disksToInclude: { - serializedName: "disksToInclude", + retentionVolumes: { + serializedName: "retentionVolumes", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "RetentionVolume" } } } }, - targetAzureNetworkId: { - serializedName: "targetAzureNetworkId", + dataStores: { + serializedName: "dataStores", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataStore" + } + } } }, - targetAzureSubnetId: { - serializedName: "targetAzureSubnetId", + validationErrors: { + serializedName: "validationErrors", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } } }, - enableRdpOnTargetOption: { - serializedName: "enableRdpOnTargetOption", + healthErrors: { + serializedName: "healthErrors", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } } }, - targetAzureVmName: { - serializedName: "targetAzureVmName", + diskCount: { + serializedName: "diskCount", type: { - name: "String" + name: "Number" } }, - logStorageAccountId: { - serializedName: "logStorageAccountId", + osVersion: { + serializedName: "osVersion", type: { name: "String" } }, - targetAzureV1ResourceGroupId: { - serializedName: "targetAzureV1ResourceGroupId", + agentExpiryDate: { + serializedName: "agentExpiryDate", type: { - name: "String" + name: "DateTime" } }, - targetAzureV2ResourceGroupId: { - serializedName: "targetAzureV2ResourceGroupId", + marsAgentVersion: { + serializedName: "marsAgentVersion", type: { name: "String" } }, - useManagedDisks: { - serializedName: "useManagedDisks", + marsAgentExpiryDate: { + serializedName: "marsAgentExpiryDate", type: { - name: "String" + name: "DateTime" + } + }, + agentVersionDetails: { + serializedName: "agentVersionDetails", + type: { + name: "Composite", + className: "VersionDetails" + } + }, + marsAgentVersionDetails: { + serializedName: "marsAgentVersionDetails", + type: { + name: "Composite", + className: "VersionDetails" } } } } }; -export const InMageAzureV2EventDetails: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", +export const MigrateProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "MigrateProviderSpecificInput", type: { name: "Composite", - polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "EventProviderSpecificDetails", - className: "InMageAzureV2EventDetails", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "MigrateProviderSpecificInput", + className: "MigrateProviderSpecificInput", modelProperties: { - ...EventProviderSpecificDetails.type.modelProperties, - eventType: { - serializedName: "eventType", - type: { - name: "String" - } - }, - category: { - serializedName: "category", - type: { - name: "String" - } - }, - component: { - serializedName: "component", - type: { - name: "String" - } - }, - correctiveAction: { - serializedName: "correctiveAction", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "String" - } - }, - summary: { - serializedName: "summary", - type: { - name: "String" - } - }, - siteName: { - serializedName: "siteName", + instanceType: { + required: true, + serializedName: "instanceType", type: { name: "String" } @@ -5988,110 +14096,56 @@ export const InMageAzureV2EventDetails: msRest.CompositeMapper = { } }; -export const InMageAzureV2FailoverProviderInput: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", +export const MigrateInputProperties: msRest.CompositeMapper = { + serializedName: "MigrateInputProperties", type: { name: "Composite", - polymorphicDiscriminator: ProviderSpecificFailoverInput.type.polymorphicDiscriminator, - uberParent: "ProviderSpecificFailoverInput", - className: "InMageAzureV2FailoverProviderInput", + className: "MigrateInputProperties", modelProperties: { - ...ProviderSpecificFailoverInput.type.modelProperties, - vaultLocation: { - serializedName: "vaultLocation", - type: { - name: "String" - } - }, - recoveryPointId: { - serializedName: "recoveryPointId", + providerSpecificDetails: { + required: true, + serializedName: "providerSpecificDetails", type: { - name: "String" + name: "Composite", + className: "MigrateProviderSpecificInput" } } } } }; -export const InMageAzureV2PolicyDetails: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", +export const MigrateInput: msRest.CompositeMapper = { + serializedName: "MigrateInput", type: { name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificDetails", - className: "InMageAzureV2PolicyDetails", + className: "MigrateInput", modelProperties: { - ...PolicyProviderSpecificDetails.type.modelProperties, - crashConsistentFrequencyInMinutes: { - serializedName: "crashConsistentFrequencyInMinutes", - type: { - name: "Number" - } - }, - recoveryPointThresholdInMinutes: { - serializedName: "recoveryPointThresholdInMinutes", - type: { - name: "Number" - } - }, - recoveryPointHistory: { - serializedName: "recoveryPointHistory", - type: { - name: "Number" - } - }, - appConsistentFrequencyInMinutes: { - serializedName: "appConsistentFrequencyInMinutes", - type: { - name: "Number" - } - }, - multiVmSyncStatus: { - serializedName: "multiVmSyncStatus", + properties: { + required: true, + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "MigrateInputProperties" } } } } }; -export const InMageAzureV2PolicyInput: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", +export const MigrationProviderSpecificSettings: msRest.CompositeMapper = { + serializedName: "MigrationProviderSpecificSettings", type: { name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificInput", - className: "InMageAzureV2PolicyInput", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "MigrationProviderSpecificSettings", + className: "MigrationProviderSpecificSettings", modelProperties: { - ...PolicyProviderSpecificInput.type.modelProperties, - recoveryPointThresholdInMinutes: { - serializedName: "recoveryPointThresholdInMinutes", - type: { - name: "Number" - } - }, - recoveryPointHistory: { - serializedName: "recoveryPointHistory", - type: { - name: "Number" - } - }, - crashConsistentFrequencyInMinutes: { - serializedName: "crashConsistentFrequencyInMinutes", - type: { - name: "Number" - } - }, - appConsistentFrequencyInMinutes: { - serializedName: "appConsistentFrequencyInMinutes", - type: { - name: "Number" - } - }, - multiVmSyncStatus: { + instanceType: { required: true, - serializedName: "multiVmSyncStatus", + serializedName: "instanceType", type: { name: "String" } @@ -6100,803 +14154,921 @@ export const InMageAzureV2PolicyInput: msRest.CompositeMapper = { } }; -export const InMageAzureV2ProtectedDiskDetails: msRest.CompositeMapper = { - serializedName: "InMageAzureV2ProtectedDiskDetails", +export const MigrationItemProperties: msRest.CompositeMapper = { + serializedName: "MigrationItemProperties", type: { name: "Composite", - className: "InMageAzureV2ProtectedDiskDetails", + className: "MigrationItemProperties", modelProperties: { - diskId: { - serializedName: "diskId", + machineName: { + readOnly: true, + serializedName: "machineName", type: { name: "String" } }, - diskName: { - serializedName: "diskName", + policyId: { + readOnly: true, + serializedName: "policyId", type: { name: "String" } }, - protectionStage: { - serializedName: "protectionStage", + policyFriendlyName: { + readOnly: true, + serializedName: "policyFriendlyName", type: { name: "String" } }, - healthErrorCode: { - serializedName: "healthErrorCode", + migrationState: { + readOnly: true, + serializedName: "migrationState", type: { name: "String" } }, - rpoInSeconds: { - serializedName: "rpoInSeconds", + migrationStateDescription: { + readOnly: true, + serializedName: "migrationStateDescription", type: { - name: "Number" + name: "String" } }, - resyncRequired: { - serializedName: "resyncRequired", + lastTestMigrationTime: { + readOnly: true, + serializedName: "lastTestMigrationTime", type: { - name: "String" + name: "DateTime" } }, - resyncProgressPercentage: { - serializedName: "resyncProgressPercentage", + lastTestMigrationStatus: { + readOnly: true, + serializedName: "lastTestMigrationStatus", type: { - name: "Number" + name: "String" } }, - resyncDurationInSeconds: { - serializedName: "resyncDurationInSeconds", + testMigrateState: { + readOnly: true, + serializedName: "testMigrateState", type: { - name: "Number" + name: "String" } }, - diskCapacityInBytes: { - serializedName: "diskCapacityInBytes", + testMigrateStateDescription: { + readOnly: true, + serializedName: "testMigrateStateDescription", type: { - name: "Number" + name: "String" } }, - fileSystemCapacityInBytes: { - serializedName: "fileSystemCapacityInBytes", + health: { + readOnly: true, + serializedName: "health", type: { - name: "Number" + name: "String" } }, - sourceDataInMegaBytes: { - serializedName: "sourceDataInMegaBytes", + healthErrors: { + readOnly: true, + serializedName: "healthErrors", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } } }, - psDataInMegaBytes: { - serializedName: "psDataInMegaBytes", + allowedOperations: { + readOnly: true, + serializedName: "allowedOperations", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - targetDataInMegaBytes: { - serializedName: "targetDataInMegaBytes", + currentJob: { + readOnly: true, + serializedName: "currentJob", type: { - name: "Number" + name: "Composite", + className: "CurrentJobDetails" } }, - diskResized: { - serializedName: "diskResized", + eventCorrelationId: { + readOnly: true, + serializedName: "eventCorrelationId", type: { name: "String" } }, - lastRpoCalculatedTime: { - serializedName: "lastRpoCalculatedTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const InMageAzureV2RecoveryPointDetails: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", - type: { - name: "Composite", - polymorphicDiscriminator: ProviderSpecificRecoveryPointDetails.type.polymorphicDiscriminator, - uberParent: "ProviderSpecificRecoveryPointDetails", - className: "InMageAzureV2RecoveryPointDetails", - modelProperties: { - ...ProviderSpecificRecoveryPointDetails.type.modelProperties, - isMultiVmSyncPoint: { - serializedName: "isMultiVmSyncPoint", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "String" + name: "Composite", + className: "MigrationProviderSpecificSettings" } } } } }; -export const InMageAzureV2ReplicationDetails: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", +export const MigrationItem: msRest.CompositeMapper = { + serializedName: "MigrationItem", type: { name: "Composite", - polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, - uberParent: "ReplicationProviderSpecificSettings", - className: "InMageAzureV2ReplicationDetails", + className: "MigrationItem", modelProperties: { - ...ReplicationProviderSpecificSettings.type.modelProperties, - infrastructureVmId: { - serializedName: "infrastructureVmId", - type: { - name: "String" - } - }, - vCenterInfrastructureId: { - serializedName: "vCenterInfrastructureId", - type: { - name: "String" - } - }, - protectionStage: { - serializedName: "protectionStage", - type: { - name: "String" - } - }, - vmId: { - serializedName: "vmId", - type: { - name: "String" - } - }, - vmProtectionState: { - serializedName: "vmProtectionState", - type: { - name: "String" - } - }, - vmProtectionStateDescription: { - serializedName: "vmProtectionStateDescription", - type: { - name: "String" - } - }, - resyncProgressPercentage: { - serializedName: "resyncProgressPercentage", - type: { - name: "Number" - } - }, - rpoInSeconds: { - serializedName: "rpoInSeconds", - type: { - name: "Number" - } - }, - compressedDataRateInMB: { - serializedName: "compressedDataRateInMB", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "MigrationItemProperties" } - }, - uncompressedDataRateInMB: { - serializedName: "uncompressedDataRateInMB", + } + } + } +}; + +export const MigrationItemsQueryParameter: msRest.CompositeMapper = { + serializedName: "MigrationItemsQueryParameter", + type: { + name: "Composite", + className: "MigrationItemsQueryParameter", + modelProperties: { + sourceFabricName: { + serializedName: "sourceFabricName", type: { - name: "Number" + name: "String" } }, - ipAddress: { - serializedName: "ipAddress", + sourceContainerName: { + serializedName: "sourceContainerName", type: { name: "String" } }, - agentVersion: { - serializedName: "agentVersion", + instanceType: { + serializedName: "instanceType", type: { name: "String" } - }, - agentExpiryDate: { - serializedName: "agentExpiryDate", + } + } + } +}; + +export const MigrationRecoveryPointProperties: msRest.CompositeMapper = { + serializedName: "MigrationRecoveryPointProperties", + type: { + name: "Composite", + className: "MigrationRecoveryPointProperties", + modelProperties: { + recoveryPointTime: { + readOnly: true, + serializedName: "recoveryPointTime", type: { name: "DateTime" } }, - isAgentUpdateRequired: { - serializedName: "isAgentUpdateRequired", + recoveryPointType: { + readOnly: true, + serializedName: "recoveryPointType", type: { name: "String" } - }, - isRebootAfterUpdateRequired: { - serializedName: "isRebootAfterUpdateRequired", + } + } + } +}; + +export const MigrationRecoveryPoint: msRest.CompositeMapper = { + serializedName: "MigrationRecoveryPoint", + type: { + name: "Composite", + className: "MigrationRecoveryPoint", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "MigrationRecoveryPointProperties" + } + } + } + } +}; + +export const MobilityServiceUpdate: msRest.CompositeMapper = { + serializedName: "MobilityServiceUpdate", + type: { + name: "Composite", + className: "MobilityServiceUpdate", + modelProperties: { + version: { + serializedName: "version", type: { name: "String" } }, - lastHeartbeat: { - serializedName: "lastHeartbeat", + rebootStatus: { + serializedName: "rebootStatus", type: { - name: "DateTime" + name: "String" } }, - processServerId: { - serializedName: "processServerId", + osType: { + serializedName: "osType", type: { name: "String" } - }, - multiVmGroupId: { - serializedName: "multiVmGroupId", + } + } + } +}; + +export const Subnet: msRest.CompositeMapper = { + serializedName: "Subnet", + type: { + name: "Composite", + className: "Subnet", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - multiVmGroupName: { - serializedName: "multiVmGroupName", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - multiVmSyncStatus: { - serializedName: "multiVmSyncStatus", + addressList: { + serializedName: "addressList", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const NetworkProperties: msRest.CompositeMapper = { + serializedName: "NetworkProperties", + type: { + name: "Composite", + className: "NetworkProperties", + modelProperties: { + fabricType: { + serializedName: "fabricType", type: { name: "String" } }, - protectedDisks: { - serializedName: "protectedDisks", + subnets: { + serializedName: "subnets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "InMageAzureV2ProtectedDiskDetails" + className: "Subnet" } } } }, - diskResized: { - serializedName: "diskResized", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - masterTargetId: { - serializedName: "masterTargetId", + networkType: { + serializedName: "networkType", type: { name: "String" } - }, - sourceVmCpuCount: { - serializedName: "sourceVmCpuCount", + } + } + } +}; + +export const Network: msRest.CompositeMapper = { + serializedName: "Network", + type: { + name: "Composite", + className: "Network", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "NetworkProperties" + } + } + } + } +}; + +export const NetworkMappingProperties: msRest.CompositeMapper = { + serializedName: "NetworkMappingProperties", + type: { + name: "Composite", + className: "NetworkMappingProperties", + modelProperties: { + state: { + serializedName: "state", + type: { + name: "String" } }, - sourceVmRamSizeInMB: { - serializedName: "sourceVmRamSizeInMB", + primaryNetworkFriendlyName: { + serializedName: "primaryNetworkFriendlyName", type: { - name: "Number" + name: "String" } }, - osType: { - serializedName: "osType", + primaryNetworkId: { + serializedName: "primaryNetworkId", type: { name: "String" } }, - vhdName: { - serializedName: "vhdName", + primaryFabricFriendlyName: { + serializedName: "primaryFabricFriendlyName", type: { name: "String" } }, - osDiskId: { - serializedName: "osDiskId", + recoveryNetworkFriendlyName: { + serializedName: "recoveryNetworkFriendlyName", type: { name: "String" } }, - azureVMDiskDetails: { - serializedName: "azureVMDiskDetails", + recoveryNetworkId: { + serializedName: "recoveryNetworkId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureVmDiskDetails" - } - } + name: "String" } }, - recoveryAzureVMName: { - serializedName: "recoveryAzureVMName", + recoveryFabricArmId: { + serializedName: "recoveryFabricArmId", type: { name: "String" } }, - recoveryAzureVMSize: { - serializedName: "recoveryAzureVMSize", + recoveryFabricFriendlyName: { + serializedName: "recoveryFabricFriendlyName", type: { name: "String" } }, - recoveryAzureStorageAccount: { - serializedName: "recoveryAzureStorageAccount", + fabricSpecificSettings: { + serializedName: "fabricSpecificSettings", + type: { + name: "Composite", + className: "NetworkMappingFabricSpecificSettings" + } + } + } + } +}; + +export const NetworkMapping: msRest.CompositeMapper = { + serializedName: "NetworkMapping", + type: { + name: "Composite", + className: "NetworkMapping", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "NetworkMappingProperties" + } + } + } + } +}; + +export const NewProtectionProfile: msRest.CompositeMapper = { + serializedName: "New", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionProfileCustomDetails.type.polymorphicDiscriminator, + uberParent: "ProtectionProfileCustomDetails", + className: "NewProtectionProfile", + modelProperties: { + ...ProtectionProfileCustomDetails.type.modelProperties, + policyName: { + required: true, + serializedName: "policyName", type: { name: "String" } }, - recoveryAzureLogStorageAccountId: { - serializedName: "recoveryAzureLogStorageAccountId", + recoveryPointHistory: { + serializedName: "recoveryPointHistory", + type: { + name: "Number" + } + }, + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", type: { - name: "String" + name: "Number" } }, - vmNics: { - serializedName: "vmNics", + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VMNicDetails" - } - } + name: "Number" } }, - selectedRecoveryAzureNetworkId: { - serializedName: "selectedRecoveryAzureNetworkId", + multiVmSyncStatus: { + required: true, + serializedName: "multiVmSyncStatus", type: { name: "String" } - }, - selectedSourceNicId: { - serializedName: "selectedSourceNicId", + } + } + } +}; + +export const NewRecoveryVirtualNetwork: msRest.CompositeMapper = { + serializedName: "New", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryVirtualNetworkCustomDetails.type.polymorphicDiscriminator, + uberParent: "RecoveryVirtualNetworkCustomDetails", + className: "NewRecoveryVirtualNetwork", + modelProperties: { + ...RecoveryVirtualNetworkCustomDetails.type.modelProperties, + recoveryVirtualNetworkResourceGroupName: { + serializedName: "recoveryVirtualNetworkResourceGroupName", type: { name: "String" } }, - discoveryType: { - serializedName: "discoveryType", + recoveryVirtualNetworkName: { + serializedName: "recoveryVirtualNetworkName", type: { name: "String" } - }, - enableRdpOnTargetOption: { - serializedName: "enableRdpOnTargetOption", + } + } + } +}; + +export const OperationsDiscovery: msRest.CompositeMapper = { + serializedName: "OperationsDiscovery", + type: { + name: "Composite", + className: "OperationsDiscovery", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - datastores: { - serializedName: "datastores", + display: { + serializedName: "display", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "Display" } }, - targetVmId: { - serializedName: "targetVmId", + origin: { + serializedName: "origin", type: { name: "String" } }, - recoveryAzureResourceGroupId: { - serializedName: "recoveryAzureResourceGroupId", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Object" } - }, - recoveryAvailabilitySetId: { - serializedName: "recoveryAvailabilitySetId", + } + } + } +}; + +export const OSVersionWrapper: msRest.CompositeMapper = { + serializedName: "OSVersionWrapper", + type: { + name: "Composite", + className: "OSVersionWrapper", + modelProperties: { + version: { + serializedName: "version", type: { name: "String" } }, - useManagedDisks: { - serializedName: "useManagedDisks", + servicePack: { + serializedName: "servicePack", type: { name: "String" } - }, - licenseType: { - serializedName: "licenseType", + } + } + } +}; + +export const PlannedFailoverInputProperties: msRest.CompositeMapper = { + serializedName: "PlannedFailoverInputProperties", + type: { + name: "Composite", + className: "PlannedFailoverInputProperties", + modelProperties: { + failoverDirection: { + serializedName: "failoverDirection", type: { name: "String" } }, - validationErrors: { - serializedName: "validationErrors", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthError" - } - } + name: "Composite", + className: "PlannedFailoverProviderSpecificFailoverInput" } - }, - lastRpoCalculatedTime: { - serializedName: "lastRpoCalculatedTime", + } + } + } +}; + +export const PlannedFailoverInput: msRest.CompositeMapper = { + serializedName: "PlannedFailoverInput", + type: { + name: "Composite", + className: "PlannedFailoverInput", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "DateTime" + name: "Composite", + className: "PlannedFailoverInputProperties" } - }, - lastUpdateReceivedTime: { - serializedName: "lastUpdateReceivedTime", + } + } + } +}; + +export const PolicyProperties: msRest.CompositeMapper = { + serializedName: "PolicyProperties", + type: { + name: "Composite", + className: "PolicyProperties", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", type: { - name: "DateTime" + name: "String" } }, - replicaId: { - serializedName: "replicaId", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "String" + name: "Composite", + className: "PolicyProviderSpecificDetails" } - }, - osVersion: { - serializedName: "osVersion", + } + } + } +}; + +export const Policy: msRest.CompositeMapper = { + serializedName: "Policy", + type: { + name: "Composite", + className: "Policy", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "PolicyProperties" } } } } }; -export const InMageAzureV2ReprotectInput: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", +export const ProcessServer: msRest.CompositeMapper = { + serializedName: "ProcessServer", type: { name: "Composite", - polymorphicDiscriminator: ReverseReplicationProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "ReverseReplicationProviderSpecificInput", - className: "InMageAzureV2ReprotectInput", + className: "ProcessServer", modelProperties: { - ...ReverseReplicationProviderSpecificInput.type.modelProperties, - masterTargetId: { - serializedName: "masterTargetId", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - processServerId: { - serializedName: "processServerId", + id: { + serializedName: "id", type: { name: "String" } }, - storageAccountId: { - serializedName: "storageAccountId", + ipAddress: { + serializedName: "ipAddress", type: { name: "String" } }, - runAsAccountId: { - serializedName: "runAsAccountId", + osType: { + serializedName: "osType", type: { name: "String" } }, - policyId: { - serializedName: "policyId", + agentVersion: { + serializedName: "agentVersion", type: { name: "String" } }, - logStorageAccountId: { - serializedName: "logStorageAccountId", + lastHeartbeat: { + serializedName: "lastHeartbeat", + type: { + name: "DateTime" + } + }, + versionStatus: { + serializedName: "versionStatus", type: { name: "String" } }, - disksToInclude: { - serializedName: "disksToInclude", + mobilityServiceUpdates: { + serializedName: "mobilityServiceUpdates", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MobilityServiceUpdate" } } } - } - } - } -}; - -export const InMageAzureV2UpdateReplicationProtectedItemInput: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", - type: { - name: "Composite", - polymorphicDiscriminator: UpdateReplicationProtectedItemProviderInput.type.polymorphicDiscriminator, - uberParent: "UpdateReplicationProtectedItemProviderInput", - className: "InMageAzureV2UpdateReplicationProtectedItemInput", - modelProperties: { - ...UpdateReplicationProtectedItemProviderInput.type.modelProperties, - recoveryAzureV1ResourceGroupId: { - serializedName: "recoveryAzureV1ResourceGroupId", + }, + hostId: { + serializedName: "hostId", + type: { + name: "String" + } + }, + machineCount: { + serializedName: "machineCount", + type: { + name: "String" + } + }, + replicationPairCount: { + serializedName: "replicationPairCount", type: { name: "String" } }, - recoveryAzureV2ResourceGroupId: { - serializedName: "recoveryAzureV2ResourceGroupId", + systemLoad: { + serializedName: "systemLoad", type: { name: "String" } }, - useManagedDisks: { - serializedName: "useManagedDisks", + systemLoadStatus: { + serializedName: "systemLoadStatus", type: { name: "String" } - } - } - } -}; - -export const InMageBasePolicyDetails: msRest.CompositeMapper = { - serializedName: "InMageBasePolicyDetails", - type: { - name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificDetails", - className: "InMageBasePolicyDetails", - modelProperties: { - ...PolicyProviderSpecificDetails.type.modelProperties, - recoveryPointThresholdInMinutes: { - serializedName: "recoveryPointThresholdInMinutes", + }, + cpuLoad: { + serializedName: "cpuLoad", type: { - name: "Number" + name: "String" } }, - recoveryPointHistory: { - serializedName: "recoveryPointHistory", + cpuLoadStatus: { + serializedName: "cpuLoadStatus", + type: { + name: "String" + } + }, + totalMemoryInBytes: { + serializedName: "totalMemoryInBytes", type: { name: "Number" } }, - appConsistentFrequencyInMinutes: { - serializedName: "appConsistentFrequencyInMinutes", + availableMemoryInBytes: { + serializedName: "availableMemoryInBytes", type: { name: "Number" } }, - multiVmSyncStatus: { - serializedName: "multiVmSyncStatus", + memoryUsageStatus: { + serializedName: "memoryUsageStatus", type: { name: "String" } - } - } - } -}; - -export const InMageDisableProtectionProviderSpecificInput: msRest.CompositeMapper = { - serializedName: "InMage", - type: { - name: "Composite", - polymorphicDiscriminator: DisableProtectionProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "DisableProtectionProviderSpecificInput", - className: "InMageDisableProtectionProviderSpecificInput", - modelProperties: { - ...DisableProtectionProviderSpecificInput.type.modelProperties, - replicaVmDeletionStatus: { - serializedName: "replicaVmDeletionStatus", + }, + totalSpaceInBytes: { + serializedName: "totalSpaceInBytes", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const InMageDiskDetails: msRest.CompositeMapper = { - serializedName: "InMageDiskDetails", - type: { - name: "Composite", - className: "InMageDiskDetails", - modelProperties: { - diskId: { - serializedName: "diskId", + }, + availableSpaceInBytes: { + serializedName: "availableSpaceInBytes", type: { - name: "String" + name: "Number" } }, - diskName: { - serializedName: "diskName", + spaceUsageStatus: { + serializedName: "spaceUsageStatus", type: { name: "String" } }, - diskSizeInMB: { - serializedName: "diskSizeInMB", + psServiceStatus: { + serializedName: "psServiceStatus", type: { name: "String" } }, - diskType: { - serializedName: "diskType", + sslCertExpiryDate: { + serializedName: "sslCertExpiryDate", type: { - name: "String" + name: "DateTime" } }, - diskConfiguration: { - serializedName: "diskConfiguration", + sslCertExpiryRemainingDays: { + serializedName: "sslCertExpiryRemainingDays", + type: { + name: "Number" + } + }, + osVersion: { + serializedName: "osVersion", type: { name: "String" } }, - volumeList: { - serializedName: "volumeList", + healthErrors: { + serializedName: "healthErrors", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiskVolumeDetails" + className: "HealthError" } } } - } - } - } -}; - -export const InMageVolumeExclusionOptions: msRest.CompositeMapper = { - serializedName: "InMageVolumeExclusionOptions", - type: { - name: "Composite", - className: "InMageVolumeExclusionOptions", - modelProperties: { - volumeLabel: { - serializedName: "volumeLabel", + }, + agentExpiryDate: { + serializedName: "agentExpiryDate", type: { - name: "String" + name: "DateTime" } }, - onlyExcludeIfSingleVolume: { - serializedName: "onlyExcludeIfSingleVolume", + agentVersionDetails: { + serializedName: "agentVersionDetails", type: { - name: "String" + name: "Composite", + className: "VersionDetails" } - } - } - } -}; - -export const InMageDiskSignatureExclusionOptions: msRest.CompositeMapper = { - serializedName: "InMageDiskSignatureExclusionOptions", - type: { - name: "Composite", - className: "InMageDiskSignatureExclusionOptions", - modelProperties: { - diskSignature: { - serializedName: "diskSignature", + }, + health: { + readOnly: true, + serializedName: "health", type: { name: "String" } - } - } - } -}; - -export const InMageDiskExclusionInput: msRest.CompositeMapper = { - serializedName: "InMageDiskExclusionInput", - type: { - name: "Composite", - className: "InMageDiskExclusionInput", - modelProperties: { - volumeOptions: { - serializedName: "volumeOptions", + }, + psStatsRefreshTime: { + readOnly: true, + serializedName: "psStatsRefreshTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InMageVolumeExclusionOptions" - } - } + name: "DateTime" } }, - diskSignatureOptions: { - serializedName: "diskSignatureOptions", + throughputUploadPendingDataInBytes: { + readOnly: true, + serializedName: "throughputUploadPendingDataInBytes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InMageDiskSignatureExclusionOptions" - } - } + name: "Number" } - } - } - } -}; - -export const InMageEnableProtectionInput: msRest.CompositeMapper = { - serializedName: "InMage", - type: { - name: "Composite", - polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "EnableProtectionProviderSpecificInput", - className: "InMageEnableProtectionInput", - modelProperties: { - ...EnableProtectionProviderSpecificInput.type.modelProperties, - vmFriendlyName: { - serializedName: "vmFriendlyName", + }, + throughputInMBps: { + readOnly: true, + serializedName: "throughputInMBps", type: { - name: "String" + name: "Number" } }, - masterTargetId: { - required: true, - serializedName: "masterTargetId", + throughputInBytes: { + readOnly: true, + serializedName: "throughputInBytes", type: { - name: "String" + name: "Number" } }, - processServerId: { - required: true, - serializedName: "processServerId", + throughputStatus: { + readOnly: true, + serializedName: "throughputStatus", type: { name: "String" } }, - retentionDrive: { - required: true, - serializedName: "retentionDrive", + marsCommunicationStatus: { + readOnly: true, + serializedName: "marsCommunicationStatus", type: { name: "String" } }, - runAsAccountId: { - serializedName: "runAsAccountId", + marsRegistrationStatus: { + readOnly: true, + serializedName: "marsRegistrationStatus", + type: { + name: "String" + } + } + } + } +}; + +export const ProtectableItemProperties: msRest.CompositeMapper = { + serializedName: "ProtectableItemProperties", + type: { + name: "Composite", + className: "ProtectableItemProperties", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - multiVmGroupId: { - required: true, - serializedName: "multiVmGroupId", + protectionStatus: { + serializedName: "protectionStatus", type: { name: "String" } }, - multiVmGroupName: { - required: true, - serializedName: "multiVmGroupName", + replicationProtectedItemId: { + serializedName: "replicationProtectedItemId", type: { name: "String" } }, - datastoreName: { - serializedName: "datastoreName", + recoveryServicesProviderId: { + serializedName: "recoveryServicesProviderId", type: { name: "String" } }, - diskExclusionInput: { - serializedName: "diskExclusionInput", + protectionReadinessErrors: { + serializedName: "protectionReadinessErrors", type: { - name: "Composite", - className: "InMageDiskExclusionInput" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - disksToInclude: { - serializedName: "disksToInclude", + supportedReplicationProviders: { + serializedName: "supportedReplicationProviders", type: { name: "Sequence", element: { @@ -6905,103 +15077,44 @@ export const InMageEnableProtectionInput: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const InMageFailoverProviderInput: msRest.CompositeMapper = { - serializedName: "InMage", - type: { - name: "Composite", - polymorphicDiscriminator: ProviderSpecificFailoverInput.type.polymorphicDiscriminator, - uberParent: "ProviderSpecificFailoverInput", - className: "InMageFailoverProviderInput", - modelProperties: { - ...ProviderSpecificFailoverInput.type.modelProperties, - recoveryPointType: { - serializedName: "recoveryPointType", - type: { - name: "String" - } }, - recoveryPointId: { - serializedName: "recoveryPointId", + customDetails: { + serializedName: "customDetails", type: { - name: "String" + name: "Composite", + className: "ConfigurationSettings" } } } } }; -export const InMagePolicyDetails: msRest.CompositeMapper = { - serializedName: "InMage", +export const ProtectableItem: msRest.CompositeMapper = { + serializedName: "ProtectableItem", type: { name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificDetails", - className: "InMagePolicyDetails", + className: "ProtectableItem", modelProperties: { - ...PolicyProviderSpecificDetails.type.modelProperties, - recoveryPointThresholdInMinutes: { - serializedName: "recoveryPointThresholdInMinutes", - type: { - name: "Number" - } - }, - recoveryPointHistory: { - serializedName: "recoveryPointHistory", - type: { - name: "Number" - } - }, - appConsistentFrequencyInMinutes: { - serializedName: "appConsistentFrequencyInMinutes", - type: { - name: "Number" - } - }, - multiVmSyncStatus: { - serializedName: "multiVmSyncStatus", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ProtectableItemProperties" } } } } }; -export const InMagePolicyInput: msRest.CompositeMapper = { - serializedName: "InMage", +export const ProtectableItemQueryParameter: msRest.CompositeMapper = { + serializedName: "ProtectableItemQueryParameter", type: { name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificInput", - className: "InMagePolicyInput", + className: "ProtectableItemQueryParameter", modelProperties: { - ...PolicyProviderSpecificInput.type.modelProperties, - recoveryPointThresholdInMinutes: { - serializedName: "recoveryPointThresholdInMinutes", - type: { - name: "Number" - } - }, - recoveryPointHistory: { - serializedName: "recoveryPointHistory", - type: { - name: "Number" - } - }, - appConsistentFrequencyInMinutes: { - serializedName: "appConsistentFrequencyInMinutes", - type: { - name: "Number" - } - }, - multiVmSyncStatus: { - required: true, - serializedName: "multiVmSyncStatus", + state: { + serializedName: "state", type: { name: "String" } @@ -7010,392 +15123,518 @@ export const InMagePolicyInput: msRest.CompositeMapper = { } }; -export const InMageProtectedDiskDetails: msRest.CompositeMapper = { - serializedName: "InMageProtectedDiskDetails", +export const ProtectedItemsQueryParameter: msRest.CompositeMapper = { + serializedName: "ProtectedItemsQueryParameter", type: { name: "Composite", - className: "InMageProtectedDiskDetails", + className: "ProtectedItemsQueryParameter", modelProperties: { - diskId: { - serializedName: "diskId", + sourceFabricName: { + serializedName: "sourceFabricName", type: { name: "String" } }, - diskName: { - serializedName: "diskName", + recoveryPlanName: { + serializedName: "recoveryPlanName", type: { name: "String" } }, - protectionStage: { - serializedName: "protectionStage", + sourceFabricLocation: { + serializedName: "sourceFabricLocation", type: { name: "String" } }, - healthErrorCode: { - serializedName: "healthErrorCode", + fabricObjectId: { + serializedName: "fabricObjectId", type: { name: "String" } }, - rpoInSeconds: { - serializedName: "rpoInSeconds", + vCenterName: { + serializedName: "vCenterName", type: { - name: "Number" + name: "String" } }, - resyncRequired: { - serializedName: "resyncRequired", + instanceType: { + serializedName: "instanceType", type: { name: "String" } }, - resyncProgressPercentage: { - serializedName: "resyncProgressPercentage", + multiVmGroupCreateOption: { + serializedName: "multiVmGroupCreateOption", type: { - name: "Number" + name: "String" } }, - resyncDurationInSeconds: { - serializedName: "resyncDurationInSeconds", + processServerId: { + serializedName: "processServerId", type: { - name: "Number" + name: "String" } - }, - diskCapacityInBytes: { - serializedName: "diskCapacityInBytes", + } + } + } +}; + +export const ProtectionContainerFabricSpecificDetails: msRest.CompositeMapper = { + serializedName: "ProtectionContainerFabricSpecificDetails", + type: { + name: "Composite", + className: "ProtectionContainerFabricSpecificDetails", + modelProperties: { + instanceType: { + readOnly: true, + serializedName: "instanceType", type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const ProtectionContainerProperties: msRest.CompositeMapper = { + serializedName: "ProtectionContainerProperties", + type: { + name: "Composite", + className: "ProtectionContainerProperties", + modelProperties: { + fabricFriendlyName: { + serializedName: "fabricFriendlyName", + type: { + name: "String" } }, - fileSystemCapacityInBytes: { - serializedName: "fileSystemCapacityInBytes", + friendlyName: { + serializedName: "friendlyName", type: { - name: "Number" + name: "String" } }, - sourceDataInMB: { - serializedName: "sourceDataInMB", + fabricType: { + serializedName: "fabricType", type: { - name: "Number" + name: "String" } }, - psDataInMB: { - serializedName: "psDataInMB", + protectedItemCount: { + serializedName: "protectedItemCount", type: { name: "Number" } }, - targetDataInMB: { - serializedName: "targetDataInMB", + pairingStatus: { + serializedName: "pairingStatus", type: { - name: "Number" + name: "String" } }, - diskResized: { - serializedName: "diskResized", + role: { + serializedName: "role", type: { name: "String" } }, - lastRpoCalculatedTime: { - serializedName: "lastRpoCalculatedTime", + fabricSpecificDetails: { + serializedName: "fabricSpecificDetails", type: { - name: "DateTime" + name: "Composite", + className: "ProtectionContainerFabricSpecificDetails" } } } } }; -export const OSDiskDetails: msRest.CompositeMapper = { - serializedName: "OSDiskDetails", +export const ProtectionContainer: msRest.CompositeMapper = { + serializedName: "ProtectionContainer", type: { name: "Composite", - className: "OSDiskDetails", + className: "ProtectionContainer", modelProperties: { - osVhdId: { - serializedName: "osVhdId", - type: { - name: "String" - } - }, - osType: { - serializedName: "osType", - type: { - name: "String" - } - }, - vhdName: { - serializedName: "vhdName", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ProtectionContainerProperties" } } } } }; -export const InMageReplicationDetails: msRest.CompositeMapper = { - serializedName: "InMage", +export const ProtectionContainerMappingProperties: msRest.CompositeMapper = { + serializedName: "ProtectionContainerMappingProperties", type: { name: "Composite", - polymorphicDiscriminator: ReplicationProviderSpecificSettings.type.polymorphicDiscriminator, - uberParent: "ReplicationProviderSpecificSettings", - className: "InMageReplicationDetails", + className: "ProtectionContainerMappingProperties", modelProperties: { - ...ReplicationProviderSpecificSettings.type.modelProperties, - activeSiteType: { - serializedName: "activeSiteType", + targetProtectionContainerId: { + serializedName: "targetProtectionContainerId", type: { name: "String" } }, - sourceVmCpuCount: { - serializedName: "sourceVmCpuCount", + targetProtectionContainerFriendlyName: { + serializedName: "targetProtectionContainerFriendlyName", type: { - name: "Number" + name: "String" } }, - sourceVmRamSizeInMB: { - serializedName: "sourceVmRamSizeInMB", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "Number" + name: "Composite", + className: "ProtectionContainerMappingProviderSpecificDetails" } }, - osDetails: { - serializedName: "osDetails", + health: { + serializedName: "health", type: { - name: "Composite", - className: "OSDiskDetails" + name: "String" } }, - protectionStage: { - serializedName: "protectionStage", + healthErrorDetails: { + serializedName: "healthErrorDetails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } } }, - vmId: { - serializedName: "vmId", + policyId: { + serializedName: "policyId", type: { name: "String" } }, - vmProtectionState: { - serializedName: "vmProtectionState", + state: { + serializedName: "state", type: { name: "String" } }, - vmProtectionStateDescription: { - serializedName: "vmProtectionStateDescription", + sourceProtectionContainerFriendlyName: { + serializedName: "sourceProtectionContainerFriendlyName", type: { name: "String" } }, - resyncDetails: { - serializedName: "resyncDetails", + sourceFabricFriendlyName: { + serializedName: "sourceFabricFriendlyName", type: { - name: "Composite", - className: "InitialReplicationDetails" + name: "String" } }, - retentionWindowStart: { - serializedName: "retentionWindowStart", + targetFabricFriendlyName: { + serializedName: "targetFabricFriendlyName", type: { - name: "DateTime" + name: "String" } }, - retentionWindowEnd: { - serializedName: "retentionWindowEnd", + policyFriendlyName: { + serializedName: "policyFriendlyName", type: { - name: "DateTime" + name: "String" } - }, - compressedDataRateInMB: { - serializedName: "compressedDataRateInMB", + } + } + } +}; + +export const ProtectionContainerMapping: msRest.CompositeMapper = { + serializedName: "ProtectionContainerMapping", + type: { + name: "Composite", + className: "ProtectionContainerMapping", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "ProtectionContainerMappingProperties" } - }, - uncompressedDataRateInMB: { - serializedName: "uncompressedDataRateInMB", + } + } + } +}; + +export const RecoveryPlanProviderSpecificDetails: msRest.CompositeMapper = { + serializedName: "RecoveryPlanProviderSpecificDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "RecoveryPlanProviderSpecificDetails", + className: "RecoveryPlanProviderSpecificDetails", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", type: { - name: "Number" + name: "String" } - }, - rpoInSeconds: { - serializedName: "rpoInSeconds", + } + } + } +}; + +export const RecoveryPlanProperties: msRest.CompositeMapper = { + serializedName: "RecoveryPlanProperties", + type: { + name: "Composite", + className: "RecoveryPlanProperties", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", type: { - name: "Number" + name: "String" } }, - protectedDisks: { - serializedName: "protectedDisks", + primaryFabricId: { + serializedName: "primaryFabricId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InMageProtectedDiskDetails" - } - } + name: "String" } }, - ipAddress: { - serializedName: "ipAddress", + primaryFabricFriendlyName: { + serializedName: "primaryFabricFriendlyName", type: { name: "String" } }, - lastHeartbeat: { - serializedName: "lastHeartbeat", + recoveryFabricId: { + serializedName: "recoveryFabricId", type: { - name: "DateTime" + name: "String" } }, - processServerId: { - serializedName: "processServerId", + recoveryFabricFriendlyName: { + serializedName: "recoveryFabricFriendlyName", type: { name: "String" } }, - masterTargetId: { - serializedName: "masterTargetId", + failoverDeploymentModel: { + serializedName: "failoverDeploymentModel", type: { name: "String" } }, - consistencyPoints: { - serializedName: "consistencyPoints", + replicationProviders: { + serializedName: "replicationProviders", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "DateTime" + name: "String" } } } }, - diskResized: { - serializedName: "diskResized", - type: { - name: "String" - } - }, - rebootAfterUpdateStatus: { - serializedName: "rebootAfterUpdateStatus", + allowedOperations: { + serializedName: "allowedOperations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - multiVmGroupId: { - serializedName: "multiVmGroupId", + lastPlannedFailoverTime: { + serializedName: "lastPlannedFailoverTime", type: { - name: "String" + name: "DateTime" } }, - multiVmGroupName: { - serializedName: "multiVmGroupName", + lastUnplannedFailoverTime: { + serializedName: "lastUnplannedFailoverTime", type: { - name: "String" + name: "DateTime" } }, - multiVmSyncStatus: { - serializedName: "multiVmSyncStatus", + lastTestFailoverTime: { + serializedName: "lastTestFailoverTime", type: { - name: "String" + name: "DateTime" } }, - agentDetails: { - serializedName: "agentDetails", + currentScenario: { + serializedName: "currentScenario", type: { name: "Composite", - className: "InMageAgentDetails" + className: "CurrentScenarioDetails" } }, - vCenterInfrastructureId: { - serializedName: "vCenterInfrastructureId", + currentScenarioStatus: { + serializedName: "currentScenarioStatus", type: { name: "String" } }, - infrastructureVmId: { - serializedName: "infrastructureVmId", + currentScenarioStatusDescription: { + serializedName: "currentScenarioStatusDescription", type: { name: "String" } }, - vmNics: { - serializedName: "vmNics", + groups: { + serializedName: "groups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VMNicDetails" + className: "RecoveryPlanGroup" } } } }, - discoveryType: { - serializedName: "discoveryType", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPlanProviderSpecificDetails" + } + } + } + } + } + } +}; + +export const RecoveryPlan: msRest.CompositeMapper = { + serializedName: "RecoveryPlan", + type: { + name: "Composite", + className: "RecoveryPlan", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "RecoveryPlanProperties" + } + } + } + } +}; + +export const RecoveryPlanA2ADetails: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPlanProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanProviderSpecificDetails", + className: "RecoveryPlanA2ADetails", + modelProperties: { + ...RecoveryPlanProviderSpecificDetails.type.modelProperties, + primaryZone: { + serializedName: "primaryZone", type: { name: "String" } }, - azureStorageAccountId: { - serializedName: "azureStorageAccountId", + recoveryZone: { + serializedName: "recoveryZone", type: { name: "String" } - }, - datastores: { - serializedName: "datastores", + } + } + } +}; + +export const RecoveryPlanProviderSpecificFailoverInput: msRest.CompositeMapper = { + serializedName: "RecoveryPlanProviderSpecificFailoverInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "RecoveryPlanProviderSpecificFailoverInput", + className: "RecoveryPlanProviderSpecificFailoverInput", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - validationErrors: { - serializedName: "validationErrors", + } + } + } +}; + +export const RecoveryPlanA2AFailoverInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanProviderSpecificFailoverInput", + className: "RecoveryPlanA2AFailoverInput", + modelProperties: { + ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, + recoveryPointType: { + required: true, + serializedName: "recoveryPointType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthError" - } - } + name: "String" } }, - lastRpoCalculatedTime: { - serializedName: "lastRpoCalculatedTime", + cloudServiceCreationOption: { + serializedName: "cloudServiceCreationOption", type: { - name: "DateTime" + name: "String" } }, - lastUpdateReceivedTime: { - serializedName: "lastUpdateReceivedTime", + multiVmSyncPointOption: { + serializedName: "multiVmSyncPointOption", type: { - name: "DateTime" + name: "String" } - }, - replicaId: { - serializedName: "replicaId", + } + } + } +}; + +export const RecoveryPlanA2AInput: msRest.CompositeMapper = { + serializedName: "A2A", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPlanProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanProviderSpecificInput", + className: "RecoveryPlanA2AInput", + modelProperties: { + ...RecoveryPlanProviderSpecificInput.type.modelProperties, + primaryZone: { + serializedName: "primaryZone", type: { name: "String" } }, - osVersion: { - serializedName: "osVersion", + recoveryZone: { + serializedName: "recoveryZone", type: { name: "String" } @@ -7404,523 +15643,614 @@ export const InMageReplicationDetails: msRest.CompositeMapper = { } }; -export const InMageReprotectInput: msRest.CompositeMapper = { - serializedName: "InMage", +export const RecoveryPlanAutomationRunbookActionDetails: msRest.CompositeMapper = { + serializedName: "AutomationRunbookActionDetails", type: { name: "Composite", - polymorphicDiscriminator: ReverseReplicationProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "ReverseReplicationProviderSpecificInput", - className: "InMageReprotectInput", + polymorphicDiscriminator: RecoveryPlanActionDetails.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanActionDetails", + className: "RecoveryPlanAutomationRunbookActionDetails", modelProperties: { - ...ReverseReplicationProviderSpecificInput.type.modelProperties, - masterTargetId: { - required: true, - serializedName: "masterTargetId", + ...RecoveryPlanActionDetails.type.modelProperties, + runbookId: { + serializedName: "runbookId", type: { name: "String" } }, - processServerId: { - required: true, - serializedName: "processServerId", + timeout: { + serializedName: "timeout", type: { name: "String" } }, - retentionDrive: { + fabricLocation: { required: true, - serializedName: "retentionDrive", + serializedName: "fabricLocation", type: { name: "String" } - }, - runAsAccountId: { - serializedName: "runAsAccountId", + } + } + } +}; + +export const RecoveryPlanGroupTaskDetails: msRest.CompositeMapper = { + serializedName: "RecoveryPlanGroupTaskDetails", + type: { + name: "Composite", + polymorphicDiscriminator: GroupTaskDetails.type.polymorphicDiscriminator, + uberParent: "GroupTaskDetails", + className: "RecoveryPlanGroupTaskDetails", + modelProperties: { + ...GroupTaskDetails.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - datastoreName: { - serializedName: "datastoreName", + groupId: { + serializedName: "groupId", type: { name: "String" } }, - diskExclusionInput: { - serializedName: "diskExclusionInput", + rpGroupType: { + serializedName: "rpGroupType", type: { - name: "Composite", - className: "InMageDiskExclusionInput" + name: "String" } - }, - profileId: { + } + } + } +}; + +export const RecoveryPlanHyperVReplicaAzureFailbackInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzureFailback", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanProviderSpecificFailoverInput", + className: "RecoveryPlanHyperVReplicaAzureFailbackInput", + modelProperties: { + ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, + dataSyncOption: { required: true, - serializedName: "profileId", + serializedName: "dataSyncOption", type: { name: "String" } }, - disksToInclude: { - serializedName: "disksToInclude", + recoveryVmCreationOption: { + required: true, + serializedName: "recoveryVmCreationOption", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const JobProperties: msRest.CompositeMapper = { - serializedName: "JobProperties", +export const RecoveryPlanHyperVReplicaAzureFailoverInput: msRest.CompositeMapper = { + serializedName: "HyperVReplicaAzure", type: { name: "Composite", - className: "JobProperties", + polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanProviderSpecificFailoverInput", + className: "RecoveryPlanHyperVReplicaAzureFailoverInput", modelProperties: { - activityId: { - serializedName: "activityId", + ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, + primaryKekCertificatePfx: { + serializedName: "primaryKekCertificatePfx", type: { name: "String" } }, - scenarioName: { - serializedName: "scenarioName", + secondaryKekCertificatePfx: { + serializedName: "secondaryKekCertificatePfx", type: { name: "String" } }, - friendlyName: { - serializedName: "friendlyName", + recoveryPointType: { + serializedName: "recoveryPointType", type: { name: "String" } - }, - state: { - serializedName: "state", + } + } + } +}; + +export const RecoveryPlanInMageAzureV2FailoverInput: msRest.CompositeMapper = { + serializedName: "InMageAzureV2", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanProviderSpecificFailoverInput", + className: "RecoveryPlanInMageAzureV2FailoverInput", + modelProperties: { + ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, + recoveryPointType: { + required: true, + serializedName: "recoveryPointType", type: { name: "String" } }, - stateDescription: { - serializedName: "stateDescription", + useMultiVmSyncPoint: { + serializedName: "useMultiVmSyncPoint", type: { name: "String" } - }, - tasks: { - serializedName: "tasks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ASRTask" - } - } - } - }, - errors: { - serializedName: "errors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobErrorDetails" - } - } + } + } + } +}; + +export const RecoveryPlanInMageFailoverInput: msRest.CompositeMapper = { + serializedName: "InMage", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanProviderSpecificFailoverInput", + className: "RecoveryPlanInMageFailoverInput", + modelProperties: { + ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, + recoveryPointType: { + required: true, + serializedName: "recoveryPointType", + type: { + name: "String" } - }, - startTime: { - serializedName: "startTime", + } + } + } +}; + +export const RecoveryPlanInMageRcmFailbackFailoverInput: msRest.CompositeMapper = { + serializedName: "InMageRcmFailback", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanProviderSpecificFailoverInput", + className: "RecoveryPlanInMageRcmFailbackFailoverInput", + modelProperties: { + ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, + recoveryPointType: { + required: true, + serializedName: "recoveryPointType", type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "endTime", + useMultiVmSyncPoint: { + serializedName: "useMultiVmSyncPoint", type: { - name: "DateTime" + name: "String" } - }, - allowedActions: { - serializedName: "allowedActions", + } + } + } +}; + +export const RecoveryPlanInMageRcmFailoverInput: msRest.CompositeMapper = { + serializedName: "InMageRcm", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanProviderSpecificFailoverInput", + className: "RecoveryPlanInMageRcmFailoverInput", + modelProperties: { + ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, + recoveryPointType: { + required: true, + serializedName: "recoveryPointType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - targetObjectId: { - serializedName: "targetObjectId", + useMultiVmSyncPoint: { + serializedName: "useMultiVmSyncPoint", type: { name: "String" } - }, - targetObjectName: { - serializedName: "targetObjectName", + } + } + } +}; + +export const RecoveryPlanManualActionDetails: msRest.CompositeMapper = { + serializedName: "ManualActionDetails", + type: { + name: "Composite", + polymorphicDiscriminator: RecoveryPlanActionDetails.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanActionDetails", + className: "RecoveryPlanManualActionDetails", + modelProperties: { + ...RecoveryPlanActionDetails.type.modelProperties, + description: { + serializedName: "description", type: { name: "String" } - }, - targetInstanceType: { - serializedName: "targetInstanceType", + } + } + } +}; + +export const RecoveryPlanPlannedFailoverInputProperties: msRest.CompositeMapper = { + serializedName: "RecoveryPlanPlannedFailoverInputProperties", + type: { + name: "Composite", + className: "RecoveryPlanPlannedFailoverInputProperties", + modelProperties: { + failoverDirection: { + required: true, + serializedName: "failoverDirection", type: { name: "String" } }, - customDetails: { - serializedName: "customDetails", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "Composite", - className: "JobDetails" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPlanProviderSpecificFailoverInput" + } + } } } } } }; -export const Job: msRest.CompositeMapper = { - serializedName: "Job", +export const RecoveryPlanPlannedFailoverInput: msRest.CompositeMapper = { + serializedName: "RecoveryPlanPlannedFailoverInput", type: { name: "Composite", - className: "Job", + className: "RecoveryPlanPlannedFailoverInput", modelProperties: { - ...Resource.type.modelProperties, properties: { + required: true, serializedName: "properties", type: { name: "Composite", - className: "JobProperties" + className: "RecoveryPlanPlannedFailoverInputProperties" } } } } }; -export const JobQueryParameter: msRest.CompositeMapper = { - serializedName: "JobQueryParameter", +export const RecoveryPlanScriptActionDetails: msRest.CompositeMapper = { + serializedName: "ScriptActionDetails", type: { name: "Composite", - className: "JobQueryParameter", + polymorphicDiscriminator: RecoveryPlanActionDetails.type.polymorphicDiscriminator, + uberParent: "RecoveryPlanActionDetails", + className: "RecoveryPlanScriptActionDetails", modelProperties: { - startTime: { - serializedName: "startTime", + ...RecoveryPlanActionDetails.type.modelProperties, + path: { + required: true, + serializedName: "path", type: { name: "String" } }, - endTime: { - serializedName: "endTime", + timeout: { + serializedName: "timeout", type: { name: "String" } }, - fabricId: { - serializedName: "fabricId", + fabricLocation: { + required: true, + serializedName: "fabricLocation", type: { name: "String" } - }, - affectedObjectTypes: { - serializedName: "affectedObjectTypes", + } + } + } +}; + +export const RecoveryPlanShutdownGroupTaskDetails: msRest.CompositeMapper = { + serializedName: "RecoveryPlanShutdownGroupTaskDetails", + type: { + name: "Composite", + polymorphicDiscriminator: GroupTaskDetails.type.polymorphicDiscriminator, + uberParent: "GroupTaskDetails", + className: "RecoveryPlanShutdownGroupTaskDetails", + modelProperties: { + ...RecoveryPlanGroupTaskDetails.type.modelProperties + } + } +}; + +export const RecoveryPlanTestFailoverCleanupInputProperties: msRest.CompositeMapper = { + serializedName: "RecoveryPlanTestFailoverCleanupInputProperties", + type: { + name: "Composite", + className: "RecoveryPlanTestFailoverCleanupInputProperties", + modelProperties: { + comments: { + serializedName: "comments", + constraints: { + MaxLength: 1024 + }, type: { name: "String" } - }, - jobStatus: { - serializedName: "jobStatus", + } + } + } +}; + +export const RecoveryPlanTestFailoverCleanupInput: msRest.CompositeMapper = { + serializedName: "RecoveryPlanTestFailoverCleanupInput", + type: { + name: "Composite", + className: "RecoveryPlanTestFailoverCleanupInput", + modelProperties: { + properties: { + required: true, + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "RecoveryPlanTestFailoverCleanupInputProperties" } } } } }; -export const JobStatusEventDetails: msRest.CompositeMapper = { - serializedName: "JobStatus", +export const RecoveryPlanTestFailoverInputProperties: msRest.CompositeMapper = { + serializedName: "RecoveryPlanTestFailoverInputProperties", type: { name: "Composite", - polymorphicDiscriminator: EventSpecificDetails.type.polymorphicDiscriminator, - uberParent: "EventSpecificDetails", - className: "JobStatusEventDetails", + className: "RecoveryPlanTestFailoverInputProperties", modelProperties: { - ...EventSpecificDetails.type.modelProperties, - jobId: { - serializedName: "jobId", + failoverDirection: { + required: true, + serializedName: "failoverDirection", type: { name: "String" } }, - jobFriendlyName: { - serializedName: "jobFriendlyName", + networkType: { + required: true, + serializedName: "networkType", type: { name: "String" } }, - jobStatus: { - serializedName: "jobStatus", + networkId: { + serializedName: "networkId", type: { name: "String" } }, - affectedObjectType: { - serializedName: "affectedObjectType", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPlanProviderSpecificFailoverInput" + } + } } } } } }; -export const JobTaskDetails: msRest.CompositeMapper = { - serializedName: "JobTaskDetails", +export const RecoveryPlanTestFailoverInput: msRest.CompositeMapper = { + serializedName: "RecoveryPlanTestFailoverInput", type: { name: "Composite", - polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, - uberParent: "TaskTypeDetails", - className: "JobTaskDetails", + className: "RecoveryPlanTestFailoverInput", modelProperties: { - ...TaskTypeDetails.type.modelProperties, - jobTask: { - serializedName: "jobTask", + properties: { + required: true, + serializedName: "properties", type: { name: "Composite", - className: "JobEntity" + className: "RecoveryPlanTestFailoverInputProperties" } } } } }; -export const LogicalNetworkProperties: msRest.CompositeMapper = { - serializedName: "LogicalNetworkProperties", +export const RecoveryPlanUnplannedFailoverInputProperties: msRest.CompositeMapper = { + serializedName: "RecoveryPlanUnplannedFailoverInputProperties", type: { name: "Composite", - className: "LogicalNetworkProperties", + className: "RecoveryPlanUnplannedFailoverInputProperties", modelProperties: { - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - networkVirtualizationStatus: { - serializedName: "networkVirtualizationStatus", + failoverDirection: { + required: true, + serializedName: "failoverDirection", type: { name: "String" } }, - logicalNetworkUsage: { - serializedName: "logicalNetworkUsage", + sourceSiteOperations: { + required: true, + serializedName: "sourceSiteOperations", type: { name: "String" } }, - logicalNetworkDefinitionsStatus: { - serializedName: "logicalNetworkDefinitionsStatus", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPlanProviderSpecificFailoverInput" + } + } } } } } }; -export const LogicalNetwork: msRest.CompositeMapper = { - serializedName: "LogicalNetwork", +export const RecoveryPlanUnplannedFailoverInput: msRest.CompositeMapper = { + serializedName: "RecoveryPlanUnplannedFailoverInput", type: { name: "Composite", - className: "LogicalNetwork", + className: "RecoveryPlanUnplannedFailoverInput", modelProperties: { - ...Resource.type.modelProperties, properties: { + required: true, serializedName: "properties", type: { name: "Composite", - className: "LogicalNetworkProperties" + className: "RecoveryPlanUnplannedFailoverInputProperties" } } } } }; -export const ManualActionTaskDetails: msRest.CompositeMapper = { - serializedName: "ManualActionTaskDetails", +export const RecoveryPointProperties: msRest.CompositeMapper = { + serializedName: "RecoveryPointProperties", type: { name: "Composite", - polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, - uberParent: "TaskTypeDetails", - className: "ManualActionTaskDetails", + className: "RecoveryPointProperties", modelProperties: { - ...TaskTypeDetails.type.modelProperties, - name: { - serializedName: "name", + recoveryPointTime: { + serializedName: "recoveryPointTime", type: { - name: "String" + name: "DateTime" } }, - instructions: { - serializedName: "instructions", + recoveryPointType: { + serializedName: "recoveryPointType", type: { name: "String" } }, - observation: { - serializedName: "observation", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "String" + name: "Composite", + className: "ProviderSpecificRecoveryPointDetails" } } } } }; -export const RetentionVolume: msRest.CompositeMapper = { - serializedName: "RetentionVolume", +export const RecoveryPoint: msRest.CompositeMapper = { + serializedName: "RecoveryPoint", type: { name: "Composite", - className: "RetentionVolume", + className: "RecoveryPoint", modelProperties: { - volumeName: { - serializedName: "volumeName", - type: { - name: "String" - } - }, - capacityInBytes: { - serializedName: "capacityInBytes", - type: { - name: "Number" - } - }, - freeSpaceInBytes: { - serializedName: "freeSpaceInBytes", - type: { - name: "Number" - } - }, - thresholdPercentage: { - serializedName: "thresholdPercentage", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "RecoveryPointProperties" } } } } }; -export const VersionDetails: msRest.CompositeMapper = { - serializedName: "VersionDetails", +export const RecoveryServicesProviderProperties: msRest.CompositeMapper = { + serializedName: "RecoveryServicesProviderProperties", type: { name: "Composite", - className: "VersionDetails", + className: "RecoveryServicesProviderProperties", modelProperties: { - version: { - serializedName: "version", + fabricType: { + serializedName: "fabricType", type: { name: "String" } }, - expiryDate: { - serializedName: "expiryDate", - type: { - name: "DateTime" - } - }, - status: { - serializedName: "status", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } - } - } - } -}; - -export const MasterTargetServer: msRest.CompositeMapper = { - serializedName: "MasterTargetServer", - type: { - name: "Composite", - className: "MasterTargetServer", - modelProperties: { - id: { - serializedName: "id", + }, + providerVersion: { + serializedName: "providerVersion", type: { name: "String" } }, - ipAddress: { - serializedName: "ipAddress", + serverVersion: { + serializedName: "serverVersion", type: { name: "String" } }, - name: { - serializedName: "name", + providerVersionState: { + serializedName: "providerVersionState", type: { name: "String" } }, - osType: { - serializedName: "osType", + providerVersionExpiryDate: { + serializedName: "providerVersionExpiryDate", type: { - name: "String" + name: "DateTime" } }, - agentVersion: { - serializedName: "agentVersion", + fabricFriendlyName: { + serializedName: "fabricFriendlyName", type: { name: "String" } }, - lastHeartbeat: { - serializedName: "lastHeartbeat", + lastHeartBeat: { + serializedName: "lastHeartBeat", type: { name: "DateTime" } }, - versionStatus: { - serializedName: "versionStatus", + connectionStatus: { + serializedName: "connectionStatus", type: { name: "String" } }, - retentionVolumes: { - serializedName: "retentionVolumes", + protectedItemCount: { + serializedName: "protectedItemCount", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RetentionVolume" - } - } + name: "Number" } }, - dataStores: { - serializedName: "dataStores", + allowedScenarios: { + serializedName: "allowedScenarios", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DataStore" + name: "String" } } } }, - validationErrors: { - serializedName: "validationErrors", + healthErrorDetails: { + serializedName: "healthErrorDetails", type: { name: "Sequence", element: { @@ -7931,57 +16261,53 @@ export const MasterTargetServer: msRest.CompositeMapper = { } } }, - healthErrors: { - serializedName: "healthErrors", + draIdentifier: { + serializedName: "draIdentifier", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthError" - } - } + name: "String" } }, - diskCount: { - serializedName: "diskCount", + machineId: { + serializedName: "machineId", type: { - name: "Number" + name: "String" } }, - osVersion: { - serializedName: "osVersion", + machineName: { + serializedName: "machineName", type: { name: "String" } }, - agentExpiryDate: { - serializedName: "agentExpiryDate", + biosId: { + serializedName: "biosId", type: { - name: "DateTime" + name: "String" } }, - marsAgentVersion: { - serializedName: "marsAgentVersion", + authenticationIdentityDetails: { + serializedName: "authenticationIdentityDetails", type: { - name: "String" + name: "Composite", + className: "IdentityProviderDetails" } }, - marsAgentExpiryDate: { - serializedName: "marsAgentExpiryDate", + resourceAccessIdentityDetails: { + serializedName: "resourceAccessIdentityDetails", type: { - name: "DateTime" + name: "Composite", + className: "IdentityProviderDetails" } }, - agentVersionDetails: { - serializedName: "agentVersionDetails", + dataPlaneAuthenticationIdentityDetails: { + serializedName: "dataPlaneAuthenticationIdentityDetails", type: { name: "Composite", - className: "VersionDetails" + className: "IdentityProviderDetails" } }, - marsAgentVersionDetails: { - serializedName: "marsAgentVersionDetails", + providerVersionDetails: { + serializedName: "providerVersionDetails", type: { name: "Composite", className: "VersionDetails" @@ -7991,520 +16317,499 @@ export const MasterTargetServer: msRest.CompositeMapper = { } }; -export const MobilityServiceUpdate: msRest.CompositeMapper = { - serializedName: "MobilityServiceUpdate", +export const RecoveryServicesProvider: msRest.CompositeMapper = { + serializedName: "RecoveryServicesProvider", type: { name: "Composite", - className: "MobilityServiceUpdate", + className: "RecoveryServicesProvider", modelProperties: { - version: { - serializedName: "version", - type: { - name: "String" - } - }, - rebootStatus: { - serializedName: "rebootStatus", - type: { - name: "String" - } - }, - osType: { - serializedName: "osType", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "RecoveryServicesProviderProperties" } } } } }; -export const Subnet: msRest.CompositeMapper = { - serializedName: "Subnet", +export const RemoveDisksInputProperties: msRest.CompositeMapper = { + serializedName: "RemoveDisksInputProperties", type: { name: "Composite", - className: "Subnet", + className: "RemoveDisksInputProperties", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - addressList: { - serializedName: "addressList", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + providerSpecificDetails: { + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "RemoveDisksProviderSpecificInput" } } } } }; -export const NetworkProperties: msRest.CompositeMapper = { - serializedName: "NetworkProperties", +export const RemoveDisksInput: msRest.CompositeMapper = { + serializedName: "RemoveDisksInput", type: { name: "Composite", - className: "NetworkProperties", + className: "RemoveDisksInput", modelProperties: { - fabricType: { - serializedName: "fabricType", - type: { - name: "String" - } - }, - subnets: { - serializedName: "subnets", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Subnet" - } - } + name: "Composite", + className: "RemoveDisksInputProperties" } - }, - friendlyName: { - serializedName: "friendlyName", + } + } + } +}; + +export const ReplicationProviderContainerUnmappingInput: msRest.CompositeMapper = { + serializedName: "ReplicationProviderContainerUnmappingInput", + type: { + name: "Composite", + className: "ReplicationProviderContainerUnmappingInput", + modelProperties: { + instanceType: { + serializedName: "instanceType", type: { name: "String" } - }, - networkType: { - serializedName: "networkType", + } + } + } +}; + +export const RemoveProtectionContainerMappingInputProperties: msRest.CompositeMapper = { + serializedName: "RemoveProtectionContainerMappingInputProperties", + type: { + name: "Composite", + className: "RemoveProtectionContainerMappingInputProperties", + modelProperties: { + providerSpecificInput: { + serializedName: "providerSpecificInput", type: { - name: "String" + name: "Composite", + className: "ReplicationProviderContainerUnmappingInput" } } } } }; -export const Network: msRest.CompositeMapper = { - serializedName: "Network", +export const RemoveProtectionContainerMappingInput: msRest.CompositeMapper = { + serializedName: "RemoveProtectionContainerMappingInput", type: { name: "Composite", - className: "Network", + className: "RemoveProtectionContainerMappingInput", modelProperties: { - ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "NetworkProperties" + className: "RemoveProtectionContainerMappingInputProperties" } } } } }; -export const NetworkMappingProperties: msRest.CompositeMapper = { - serializedName: "NetworkMappingProperties", +export const RenewCertificateInputProperties: msRest.CompositeMapper = { + serializedName: "RenewCertificateInputProperties", type: { name: "Composite", - className: "NetworkMappingProperties", + className: "RenewCertificateInputProperties", modelProperties: { - state: { - serializedName: "state", - type: { - name: "String" - } - }, - primaryNetworkFriendlyName: { - serializedName: "primaryNetworkFriendlyName", - type: { - name: "String" - } - }, - primaryNetworkId: { - serializedName: "primaryNetworkId", - type: { - name: "String" - } - }, - primaryFabricFriendlyName: { - serializedName: "primaryFabricFriendlyName", - type: { - name: "String" - } - }, - recoveryNetworkFriendlyName: { - serializedName: "recoveryNetworkFriendlyName", - type: { - name: "String" - } - }, - recoveryNetworkId: { - serializedName: "recoveryNetworkId", - type: { - name: "String" - } - }, - recoveryFabricArmId: { - serializedName: "recoveryFabricArmId", - type: { - name: "String" - } - }, - recoveryFabricFriendlyName: { - serializedName: "recoveryFabricFriendlyName", + renewCertificateType: { + serializedName: "renewCertificateType", type: { name: "String" } - }, - fabricSpecificSettings: { - serializedName: "fabricSpecificSettings", - type: { - name: "Composite", - className: "NetworkMappingFabricSpecificSettings" - } } } } }; -export const NetworkMapping: msRest.CompositeMapper = { - serializedName: "NetworkMapping", +export const RenewCertificateInput: msRest.CompositeMapper = { + serializedName: "RenewCertificateInput", type: { name: "Composite", - className: "NetworkMapping", + className: "RenewCertificateInput", modelProperties: { - ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "NetworkMappingProperties" + className: "RenewCertificateInputProperties" } } } } }; -export const OperationsDiscovery: msRest.CompositeMapper = { - serializedName: "OperationsDiscovery", +export const ReplicationEligibilityResultsErrorInfo: msRest.CompositeMapper = { + serializedName: "ReplicationEligibilityResultsErrorInfo", type: { name: "Composite", - className: "OperationsDiscovery", + className: "ReplicationEligibilityResultsErrorInfo", modelProperties: { - name: { - serializedName: "name", + code: { + serializedName: "code", type: { name: "String" } }, - display: { - serializedName: "display", + message: { + serializedName: "message", type: { - name: "Composite", - className: "Display" + name: "String" } }, - origin: { - serializedName: "origin", + possibleCauses: { + serializedName: "possibleCauses", type: { name: "String" } }, - properties: { - serializedName: "properties", + recommendedAction: { + serializedName: "recommendedAction", type: { - name: "Object" + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" } } } } }; -export const PlannedFailoverInputProperties: msRest.CompositeMapper = { - serializedName: "PlannedFailoverInputProperties", +export const ReplicationEligibilityResultsProperties: msRest.CompositeMapper = { + serializedName: "ReplicationEligibilityResultsProperties", type: { name: "Composite", - className: "PlannedFailoverInputProperties", + className: "ReplicationEligibilityResultsProperties", modelProperties: { - failoverDirection: { - serializedName: "failoverDirection", + clientRequestId: { + readOnly: true, + serializedName: "clientRequestId", type: { name: "String" } }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + errors: { + serializedName: "errors", type: { - name: "Composite", - className: "ProviderSpecificFailoverInput" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationEligibilityResultsErrorInfo" + } + } } } } } }; -export const PlannedFailoverInput: msRest.CompositeMapper = { - serializedName: "PlannedFailoverInput", +export const ReplicationEligibilityResults: msRest.CompositeMapper = { + serializedName: "ReplicationEligibilityResults", type: { name: "Composite", - className: "PlannedFailoverInput", + className: "ReplicationEligibilityResults", modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, properties: { + readOnly: true, serializedName: "properties", type: { name: "Composite", - className: "PlannedFailoverInputProperties" + className: "ReplicationEligibilityResultsProperties" } } } } }; -export const PolicyProperties: msRest.CompositeMapper = { - serializedName: "PolicyProperties", +export const ReplicationEligibilityResultsCollection: msRest.CompositeMapper = { + serializedName: "ReplicationEligibilityResultsCollection", type: { name: "Composite", - className: "PolicyProperties", + className: "ReplicationEligibilityResultsCollection", modelProperties: { - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + value: { + serializedName: "value", type: { - name: "Composite", - className: "PolicyProviderSpecificDetails" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationEligibilityResults" + } + } } } } } }; -export const Policy: msRest.CompositeMapper = { - serializedName: "Policy", +export const ReplicationGroupDetails: msRest.CompositeMapper = { + serializedName: "ReplicationGroupDetails", type: { name: "Composite", - className: "Policy", + polymorphicDiscriminator: ConfigurationSettings.type.polymorphicDiscriminator, + uberParent: "ConfigurationSettings", + className: "ReplicationGroupDetails", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "PolicyProperties" - } - } + ...ConfigurationSettings.type.modelProperties } } }; -export const ProcessServer: msRest.CompositeMapper = { - serializedName: "ProcessServer", +export const ReplicationProtectedItemProperties: msRest.CompositeMapper = { + serializedName: "ReplicationProtectedItemProperties", type: { name: "Composite", - className: "ProcessServer", + className: "ReplicationProtectedItemProperties", modelProperties: { friendlyName: { serializedName: "friendlyName", type: { name: "String" } - }, - id: { - serializedName: "id", + }, + protectedItemType: { + serializedName: "protectedItemType", type: { name: "String" } }, - ipAddress: { - serializedName: "ipAddress", + protectableItemId: { + serializedName: "protectableItemId", type: { name: "String" } }, - osType: { - serializedName: "osType", + recoveryServicesProviderId: { + serializedName: "recoveryServicesProviderId", type: { name: "String" } }, - agentVersion: { - serializedName: "agentVersion", + primaryFabricFriendlyName: { + serializedName: "primaryFabricFriendlyName", type: { name: "String" } }, - lastHeartbeat: { - serializedName: "lastHeartbeat", + primaryFabricProvider: { + serializedName: "primaryFabricProvider", type: { - name: "DateTime" + name: "String" } }, - versionStatus: { - serializedName: "versionStatus", + recoveryFabricFriendlyName: { + serializedName: "recoveryFabricFriendlyName", type: { name: "String" } }, - mobilityServiceUpdates: { - serializedName: "mobilityServiceUpdates", + recoveryFabricId: { + serializedName: "recoveryFabricId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MobilityServiceUpdate" - } - } + name: "String" } }, - hostId: { - serializedName: "hostId", + primaryProtectionContainerFriendlyName: { + serializedName: "primaryProtectionContainerFriendlyName", type: { name: "String" } }, - machineCount: { - serializedName: "machineCount", + recoveryProtectionContainerFriendlyName: { + serializedName: "recoveryProtectionContainerFriendlyName", type: { name: "String" } }, - replicationPairCount: { - serializedName: "replicationPairCount", + protectionState: { + serializedName: "protectionState", type: { name: "String" } }, - systemLoad: { - serializedName: "systemLoad", + protectionStateDescription: { + serializedName: "protectionStateDescription", type: { name: "String" } }, - systemLoadStatus: { - serializedName: "systemLoadStatus", + activeLocation: { + serializedName: "activeLocation", type: { name: "String" } }, - cpuLoad: { - serializedName: "cpuLoad", + testFailoverState: { + serializedName: "testFailoverState", type: { name: "String" } }, - cpuLoadStatus: { - serializedName: "cpuLoadStatus", + testFailoverStateDescription: { + serializedName: "testFailoverStateDescription", type: { name: "String" } }, - totalMemoryInBytes: { - serializedName: "totalMemoryInBytes", + allowedOperations: { + serializedName: "allowedOperations", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - availableMemoryInBytes: { - serializedName: "availableMemoryInBytes", + replicationHealth: { + serializedName: "replicationHealth", type: { - name: "Number" + name: "String" } }, - memoryUsageStatus: { - serializedName: "memoryUsageStatus", + failoverHealth: { + serializedName: "failoverHealth", type: { name: "String" } }, - totalSpaceInBytes: { - serializedName: "totalSpaceInBytes", + healthErrors: { + serializedName: "healthErrors", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } } }, - availableSpaceInBytes: { - serializedName: "availableSpaceInBytes", + policyId: { + serializedName: "policyId", type: { - name: "Number" + name: "String" } }, - spaceUsageStatus: { - serializedName: "spaceUsageStatus", + policyFriendlyName: { + serializedName: "policyFriendlyName", type: { name: "String" } }, - psServiceStatus: { - serializedName: "psServiceStatus", + lastSuccessfulFailoverTime: { + serializedName: "lastSuccessfulFailoverTime", type: { - name: "String" + name: "DateTime" } }, - sslCertExpiryDate: { - serializedName: "sslCertExpiryDate", + lastSuccessfulTestFailoverTime: { + serializedName: "lastSuccessfulTestFailoverTime", type: { name: "DateTime" } }, - sslCertExpiryRemainingDays: { - serializedName: "sslCertExpiryRemainingDays", + currentScenario: { + serializedName: "currentScenario", type: { - name: "Number" + name: "Composite", + className: "CurrentScenarioDetails" } }, - osVersion: { - serializedName: "osVersion", + failoverRecoveryPointId: { + serializedName: "failoverRecoveryPointId", type: { name: "String" } }, - healthErrors: { - serializedName: "healthErrors", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthError" - } - } + name: "Composite", + className: "ReplicationProviderSpecificSettings" } }, - agentExpiryDate: { - serializedName: "agentExpiryDate", + recoveryContainerId: { + serializedName: "recoveryContainerId", type: { - name: "DateTime" + name: "String" } }, - agentVersionDetails: { - serializedName: "agentVersionDetails", + eventCorrelationId: { + serializedName: "eventCorrelationId", + type: { + name: "String" + } + } + } + } +}; + +export const ReplicationProtectedItem: msRest.CompositeMapper = { + serializedName: "ReplicationProtectedItem", + type: { + name: "Composite", + className: "ReplicationProtectedItem", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { name: "Composite", - className: "VersionDetails" + className: "ReplicationProtectedItemProperties" } } } } }; -export const ProtectableItemProperties: msRest.CompositeMapper = { - serializedName: "ProtectableItemProperties", +export const ReplicationProtectionIntentProperties: msRest.CompositeMapper = { + serializedName: "ReplicationProtectionIntentProperties", type: { name: "Composite", - className: "ProtectableItemProperties", + className: "ReplicationProtectionIntentProperties", modelProperties: { friendlyName: { serializedName: "friendlyName", @@ -8512,83 +16817,204 @@ export const ProtectableItemProperties: msRest.CompositeMapper = { name: "String" } }, - protectionStatus: { - serializedName: "protectionStatus", + jobId: { + readOnly: true, + serializedName: "jobId", type: { name: "String" } }, - replicationProtectedItemId: { - serializedName: "replicationProtectedItemId", + jobState: { + readOnly: true, + serializedName: "jobState", type: { name: "String" } }, - recoveryServicesProviderId: { - serializedName: "recoveryServicesProviderId", + isActive: { + readOnly: true, + serializedName: "isActive", + type: { + name: "Boolean" + } + }, + creationTimeUTC: { + readOnly: true, + serializedName: "creationTimeUTC", + type: { + name: "String" + } + }, + providerSpecificDetails: { + serializedName: "providerSpecificDetails", + type: { + name: "Composite", + className: "ReplicationProtectionIntentProviderSpecificSettings" + } + } + } + } +}; + +export const ReplicationProtectionIntent: msRest.CompositeMapper = { + serializedName: "ReplicationProtectionIntent", + type: { + name: "Composite", + className: "ReplicationProtectionIntent", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ReplicationProtectionIntentProperties" + } + } + } + } +}; + +export const ResolveHealthError: msRest.CompositeMapper = { + serializedName: "ResolveHealthError", + type: { + name: "Composite", + className: "ResolveHealthError", + modelProperties: { + healthErrorId: { + serializedName: "healthErrorId", + type: { + name: "String" + } + } + } + } +}; + +export const ResolveHealthInputProperties: msRest.CompositeMapper = { + serializedName: "ResolveHealthInputProperties", + type: { + name: "Composite", + className: "ResolveHealthInputProperties", + modelProperties: { + healthErrors: { + serializedName: "healthErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResolveHealthError" + } + } + } + } + } + } +}; + +export const ResolveHealthInput: msRest.CompositeMapper = { + serializedName: "ResolveHealthInput", + type: { + name: "Composite", + className: "ResolveHealthInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ResolveHealthInputProperties" + } + } + } + } +}; + +export const ResourceHealthSummary: msRest.CompositeMapper = { + serializedName: "ResourceHealthSummary", + type: { + name: "Composite", + className: "ResourceHealthSummary", + modelProperties: { + resourceCount: { + serializedName: "resourceCount", type: { - name: "String" + name: "Number" } }, - protectionReadinessErrors: { - serializedName: "protectionReadinessErrors", + issues: { + serializedName: "issues", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "HealthErrorSummary" } } } }, - supportedReplicationProviders: { - serializedName: "supportedReplicationProviders", + categorizedResourceCounts: { + serializedName: "categorizedResourceCounts", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "String" + name: "Number" } } } - }, - customDetails: { - serializedName: "customDetails", + } + } + } +}; + +export const ResumeJobParamsProperties: msRest.CompositeMapper = { + serializedName: "ResumeJobParamsProperties", + type: { + name: "Composite", + className: "ResumeJobParamsProperties", + modelProperties: { + comments: { + serializedName: "comments", type: { - name: "Composite", - className: "ConfigurationSettings" + name: "String" } } } } }; -export const ProtectableItem: msRest.CompositeMapper = { - serializedName: "ProtectableItem", +export const ResumeJobParams: msRest.CompositeMapper = { + serializedName: "ResumeJobParams", type: { name: "Composite", - className: "ProtectableItem", + className: "ResumeJobParams", modelProperties: { - ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "ProtectableItemProperties" + className: "ResumeJobParamsProperties" } } } } }; -export const ProtectableItemQueryParameter: msRest.CompositeMapper = { - serializedName: "ProtectableItemQueryParameter", +export const ResyncProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "ResyncProviderSpecificInput", type: { name: "Composite", - className: "ProtectableItemQueryParameter", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "ResyncProviderSpecificInput", + className: "ResyncProviderSpecificInput", modelProperties: { - state: { - serializedName: "state", + instanceType: { + required: true, + serializedName: "instanceType", type: { name: "String" } @@ -8597,209 +17023,114 @@ export const ProtectableItemQueryParameter: msRest.CompositeMapper = { } }; -export const ProtectedItemsQueryParameter: msRest.CompositeMapper = { - serializedName: "ProtectedItemsQueryParameter", +export const ResyncInputProperties: msRest.CompositeMapper = { + serializedName: "ResyncInputProperties", type: { name: "Composite", - className: "ProtectedItemsQueryParameter", + className: "ResyncInputProperties", modelProperties: { - sourceFabricName: { - serializedName: "sourceFabricName", - type: { - name: "String" - } - }, - recoveryPlanName: { - serializedName: "recoveryPlanName", - type: { - name: "String" - } - }, - vCenterName: { - serializedName: "vCenterName", - type: { - name: "String" - } - }, - instanceType: { - serializedName: "instanceType", - type: { - name: "String" - } - }, - multiVmGroupCreateOption: { - serializedName: "multiVmGroupCreateOption", + providerSpecificDetails: { + required: true, + serializedName: "providerSpecificDetails", type: { - name: "String" + name: "Composite", + className: "ResyncProviderSpecificInput" } } } } }; -export const ProtectionContainerFabricSpecificDetails: msRest.CompositeMapper = { - serializedName: "ProtectionContainerFabricSpecificDetails", +export const ResyncInput: msRest.CompositeMapper = { + serializedName: "ResyncInput", type: { name: "Composite", - className: "ProtectionContainerFabricSpecificDetails", + className: "ResyncInput", modelProperties: { - instanceType: { - readOnly: true, - serializedName: "instanceType", + properties: { + required: true, + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ResyncInputProperties" } } } } }; -export const ProtectionContainerProperties: msRest.CompositeMapper = { - serializedName: "ProtectionContainerProperties", +export const ReverseReplicationInputProperties: msRest.CompositeMapper = { + serializedName: "ReverseReplicationInputProperties", type: { name: "Composite", - className: "ProtectionContainerProperties", + className: "ReverseReplicationInputProperties", modelProperties: { - fabricFriendlyName: { - serializedName: "fabricFriendlyName", - type: { - name: "String" - } - }, - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - fabricType: { - serializedName: "fabricType", - type: { - name: "String" - } - }, - protectedItemCount: { - serializedName: "protectedItemCount", - type: { - name: "Number" - } - }, - pairingStatus: { - serializedName: "pairingStatus", - type: { - name: "String" - } - }, - role: { - serializedName: "role", + failoverDirection: { + serializedName: "failoverDirection", type: { name: "String" } }, - fabricSpecificDetails: { - serializedName: "fabricSpecificDetails", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { name: "Composite", - className: "ProtectionContainerFabricSpecificDetails" + className: "ReverseReplicationProviderSpecificInput" } } } } }; -export const ProtectionContainer: msRest.CompositeMapper = { - serializedName: "ProtectionContainer", +export const ReverseReplicationInput: msRest.CompositeMapper = { + serializedName: "ReverseReplicationInput", type: { name: "Composite", - className: "ProtectionContainer", + className: "ReverseReplicationInput", modelProperties: { - ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "ProtectionContainerProperties" + className: "ReverseReplicationInputProperties" } } } } }; -export const ProtectionContainerMappingProperties: msRest.CompositeMapper = { - serializedName: "ProtectionContainerMappingProperties", +export const RoleAssignment: msRest.CompositeMapper = { + serializedName: "RoleAssignment", type: { name: "Composite", - className: "ProtectionContainerMappingProperties", + className: "RoleAssignment", modelProperties: { - targetProtectionContainerId: { - serializedName: "targetProtectionContainerId", - type: { - name: "String" - } - }, - targetProtectionContainerFriendlyName: { - serializedName: "targetProtectionContainerFriendlyName", - type: { - name: "String" - } - }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", - type: { - name: "Composite", - className: "ProtectionContainerMappingProviderSpecificDetails" - } - }, - health: { - serializedName: "health", - type: { - name: "String" - } - }, - healthErrorDetails: { - serializedName: "healthErrorDetails", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthError" - } - } - } - }, - policyId: { - serializedName: "policyId", - type: { - name: "String" - } - }, - state: { - serializedName: "state", + id: { + serializedName: "id", type: { name: "String" } }, - sourceProtectionContainerFriendlyName: { - serializedName: "sourceProtectionContainerFriendlyName", + name: { + serializedName: "name", type: { name: "String" } }, - sourceFabricFriendlyName: { - serializedName: "sourceFabricFriendlyName", + scope: { + serializedName: "scope", type: { name: "String" } }, - targetFabricFriendlyName: { - serializedName: "targetFabricFriendlyName", + principalId: { + serializedName: "principalId", type: { name: "String" } }, - policyFriendlyName: { - serializedName: "policyFriendlyName", + roleDefinitionId: { + serializedName: "roleDefinitionId", type: { name: "String" } @@ -8808,122 +17139,109 @@ export const ProtectionContainerMappingProperties: msRest.CompositeMapper = { } }; -export const ProtectionContainerMapping: msRest.CompositeMapper = { - serializedName: "ProtectionContainerMapping", +export const RunAsAccount: msRest.CompositeMapper = { + serializedName: "RunAsAccount", type: { name: "Composite", - className: "ProtectionContainerMapping", + className: "RunAsAccount", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + accountId: { + serializedName: "accountId", type: { - name: "Composite", - className: "ProtectionContainerMappingProperties" + name: "String" + } + }, + accountName: { + serializedName: "accountName", + type: { + name: "String" } } } } }; -export const RcmAzureMigrationPolicyDetails: msRest.CompositeMapper = { - serializedName: "RcmAzureMigration", +export const ScriptActionTaskDetails: msRest.CompositeMapper = { + serializedName: "ScriptActionTaskDetails", type: { name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificDetails", - className: "RcmAzureMigrationPolicyDetails", + polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, + uberParent: "TaskTypeDetails", + className: "ScriptActionTaskDetails", modelProperties: { - ...PolicyProviderSpecificDetails.type.modelProperties, - recoveryPointThresholdInMinutes: { - serializedName: "recoveryPointThresholdInMinutes", - type: { - name: "Number" - } - }, - recoveryPointHistory: { - serializedName: "recoveryPointHistory", + ...TaskTypeDetails.type.modelProperties, + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - appConsistentFrequencyInMinutes: { - serializedName: "appConsistentFrequencyInMinutes", + path: { + serializedName: "path", type: { - name: "Number" + name: "String" } }, - multiVmSyncStatus: { - serializedName: "multiVmSyncStatus", + output: { + serializedName: "output", type: { name: "String" } }, - crashConsistentFrequencyInMinutes: { - serializedName: "crashConsistentFrequencyInMinutes", + isPrimarySideScript: { + serializedName: "isPrimarySideScript", type: { - name: "Number" + name: "Boolean" } } } } }; -export const RecoveryPlanProperties: msRest.CompositeMapper = { - serializedName: "RecoveryPlanProperties", +export const IPConfigInputDetails: msRest.CompositeMapper = { + serializedName: "IPConfigInputDetails", type: { name: "Composite", - className: "RecoveryPlanProperties", + className: "IPConfigInputDetails", modelProperties: { - friendlyName: { - serializedName: "friendlyName", + ipConfigName: { + serializedName: "ipConfigName", type: { name: "String" } }, - primaryFabricId: { - serializedName: "primaryFabricId", + isPrimary: { + serializedName: "isPrimary", type: { - name: "String" + name: "Boolean" } }, - primaryFabricFriendlyName: { - serializedName: "primaryFabricFriendlyName", + isSeletedForFailover: { + serializedName: "isSeletedForFailover", type: { - name: "String" + name: "Boolean" } }, - recoveryFabricId: { - serializedName: "recoveryFabricId", + recoverySubnetName: { + serializedName: "recoverySubnetName", type: { name: "String" } }, - recoveryFabricFriendlyName: { - serializedName: "recoveryFabricFriendlyName", + recoveryStaticIPAddress: { + serializedName: "recoveryStaticIPAddress", type: { name: "String" } }, - failoverDeploymentModel: { - serializedName: "failoverDeploymentModel", + recoveryPublicIPAddressId: { + serializedName: "recoveryPublicIPAddressId", type: { name: "String" } }, - replicationProviders: { - serializedName: "replicationProviders", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - allowedOperations: { - serializedName: "allowedOperations", + recoveryLBBackendAddressPoolIds: { + serializedName: "recoveryLBBackendAddressPoolIds", type: { name: "Sequence", element: { @@ -8933,51 +17251,31 @@ export const RecoveryPlanProperties: msRest.CompositeMapper = { } } }, - lastPlannedFailoverTime: { - serializedName: "lastPlannedFailoverTime", - type: { - name: "DateTime" - } - }, - lastUnplannedFailoverTime: { - serializedName: "lastUnplannedFailoverTime", - type: { - name: "DateTime" - } - }, - lastTestFailoverTime: { - serializedName: "lastTestFailoverTime", - type: { - name: "DateTime" - } - }, - currentScenario: { - serializedName: "currentScenario", + tfoSubnetName: { + serializedName: "tfoSubnetName", type: { - name: "Composite", - className: "CurrentScenarioDetails" + name: "String" } }, - currentScenarioStatus: { - serializedName: "currentScenarioStatus", + tfoStaticIPAddress: { + serializedName: "tfoStaticIPAddress", type: { name: "String" } }, - currentScenarioStatusDescription: { - serializedName: "currentScenarioStatusDescription", + tfoPublicIPAddressId: { + serializedName: "tfoPublicIPAddressId", type: { name: "String" } }, - groups: { - serializedName: "groups", + tfoLBBackendAddressPoolIds: { + serializedName: "tfoLBBackendAddressPoolIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RecoveryPlanGroup" + name: "String" } } } @@ -8986,38 +17284,48 @@ export const RecoveryPlanProperties: msRest.CompositeMapper = { } }; -export const RecoveryPlan: msRest.CompositeMapper = { - serializedName: "RecoveryPlan", +export const StorageClassificationProperties: msRest.CompositeMapper = { + serializedName: "StorageClassificationProperties", type: { name: "Composite", - className: "RecoveryPlan", + className: "StorageClassificationProperties", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + } + } + } +}; + +export const StorageClassification: msRest.CompositeMapper = { + serializedName: "StorageClassification", + type: { + name: "Composite", + className: "StorageClassification", modelProperties: { ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "RecoveryPlanProperties" + className: "StorageClassificationProperties" } } } } }; -export const RecoveryPlanProviderSpecificFailoverInput: msRest.CompositeMapper = { - serializedName: "RecoveryPlanProviderSpecificFailoverInput", +export const StorageClassificationMappingProperties: msRest.CompositeMapper = { + serializedName: "StorageClassificationMappingProperties", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "instanceType", - clientName: "instanceType" - }, - uberParent: "RecoveryPlanProviderSpecificFailoverInput", - className: "RecoveryPlanProviderSpecificFailoverInput", + className: "StorageClassificationMappingProperties", modelProperties: { - instanceType: { - required: true, - serializedName: "instanceType", + targetStorageClassificationId: { + serializedName: "targetStorageClassificationId", type: { name: "String" } @@ -9026,120 +17334,210 @@ export const RecoveryPlanProviderSpecificFailoverInput: msRest.CompositeMapper = } }; -export const RecoveryPlanA2AFailoverInput: msRest.CompositeMapper = { - serializedName: "A2A", +export const StorageClassificationMapping: msRest.CompositeMapper = { + serializedName: "StorageClassificationMapping", type: { name: "Composite", - polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, - uberParent: "RecoveryPlanProviderSpecificFailoverInput", - className: "RecoveryPlanA2AFailoverInput", + className: "StorageClassificationMapping", modelProperties: { - ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, - recoveryPointType: { - required: true, - serializedName: "recoveryPointType", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "StorageClassificationMappingProperties" + } + } + } + } +}; + +export const StorageMappingInputProperties: msRest.CompositeMapper = { + serializedName: "StorageMappingInputProperties", + type: { + name: "Composite", + className: "StorageMappingInputProperties", + modelProperties: { + targetStorageClassificationId: { + serializedName: "targetStorageClassificationId", type: { name: "String" } - }, - cloudServiceCreationOption: { - serializedName: "cloudServiceCreationOption", + } + } + } +}; + +export const StorageClassificationMappingInput: msRest.CompositeMapper = { + serializedName: "StorageClassificationMappingInput", + type: { + name: "Composite", + className: "StorageClassificationMappingInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "StorageMappingInputProperties" + } + } + } + } +}; + +export const SupportedOSDetails: msRest.CompositeMapper = { + serializedName: "SupportedOSDetails", + type: { + name: "Composite", + className: "SupportedOSDetails", + modelProperties: { + osName: { + serializedName: "osName", type: { name: "String" } }, - multiVmSyncPointOption: { - serializedName: "multiVmSyncPointOption", + osType: { + serializedName: "osType", type: { name: "String" } + }, + osVersions: { + serializedName: "osVersions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OSVersionWrapper" + } + } + } } } } }; -export const RecoveryPlanAutomationRunbookActionDetails: msRest.CompositeMapper = { - serializedName: "AutomationRunbookActionDetails", +export const SupportedOSProperty: msRest.CompositeMapper = { + serializedName: "SupportedOSProperty", type: { name: "Composite", - polymorphicDiscriminator: RecoveryPlanActionDetails.type.polymorphicDiscriminator, - uberParent: "RecoveryPlanActionDetails", - className: "RecoveryPlanAutomationRunbookActionDetails", + className: "SupportedOSProperty", modelProperties: { - ...RecoveryPlanActionDetails.type.modelProperties, - runbookId: { - serializedName: "runbookId", + instanceType: { + serializedName: "instanceType", type: { name: "String" } }, - timeout: { - serializedName: "timeout", + supportedOs: { + serializedName: "supportedOs", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SupportedOSDetails" + } + } } - }, - fabricLocation: { - required: true, - serializedName: "fabricLocation", + } + } + } +}; + +export const SupportedOSProperties: msRest.CompositeMapper = { + serializedName: "SupportedOSProperties", + type: { + name: "Composite", + className: "SupportedOSProperties", + modelProperties: { + supportedOsList: { + serializedName: "supportedOsList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SupportedOSProperty" + } + } + } + } + } + } +}; + +export const SupportedOperatingSystems: msRest.CompositeMapper = { + serializedName: "SupportedOperatingSystems", + type: { + name: "Composite", + className: "SupportedOperatingSystems", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "SupportedOSProperties" } } } } }; -export const RecoveryPlanGroupTaskDetails: msRest.CompositeMapper = { - serializedName: "RecoveryPlanGroupTaskDetails", +export const SwitchProtectionInputProperties: msRest.CompositeMapper = { + serializedName: "SwitchProtectionInputProperties", type: { name: "Composite", - polymorphicDiscriminator: GroupTaskDetails.type.polymorphicDiscriminator, - uberParent: "GroupTaskDetails", - className: "RecoveryPlanGroupTaskDetails", + className: "SwitchProtectionInputProperties", modelProperties: { - ...GroupTaskDetails.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - groupId: { - serializedName: "groupId", + replicationProtectedItemName: { + serializedName: "replicationProtectedItemName", type: { name: "String" } }, - rpGroupType: { - serializedName: "rpGroupType", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "String" + name: "Composite", + className: "SwitchProtectionProviderSpecificInput" } } } } }; -export const RecoveryPlanHyperVReplicaAzureFailbackInput: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzureFailback", +export const SwitchProtectionInput: msRest.CompositeMapper = { + serializedName: "SwitchProtectionInput", type: { name: "Composite", - polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, - uberParent: "RecoveryPlanProviderSpecificFailoverInput", - className: "RecoveryPlanHyperVReplicaAzureFailbackInput", + className: "SwitchProtectionInput", modelProperties: { - ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, - dataSyncOption: { - required: true, - serializedName: "dataSyncOption", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "SwitchProtectionInputProperties" } - }, - recoveryVmCreationOption: { - required: true, - serializedName: "recoveryVmCreationOption", + } + } + } +}; + +export const SwitchProtectionJobDetails: msRest.CompositeMapper = { + serializedName: "SwitchProtectionJobDetails", + type: { + name: "Composite", + polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, + uberParent: "JobDetails", + className: "SwitchProtectionJobDetails", + modelProperties: { + ...JobDetails.type.modelProperties, + newReplicationProtectedItemId: { + serializedName: "newReplicationProtectedItemId", type: { name: "String" } @@ -9148,89 +17546,134 @@ export const RecoveryPlanHyperVReplicaAzureFailbackInput: msRest.CompositeMapper } }; -export const RecoveryPlanHyperVReplicaAzureFailoverInput: msRest.CompositeMapper = { - serializedName: "HyperVReplicaAzure", +export const TargetComputeSizeProperties: msRest.CompositeMapper = { + serializedName: "TargetComputeSizeProperties", type: { name: "Composite", - polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, - uberParent: "RecoveryPlanProviderSpecificFailoverInput", - className: "RecoveryPlanHyperVReplicaAzureFailoverInput", + className: "TargetComputeSizeProperties", modelProperties: { - ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, - vaultLocation: { - required: true, - serializedName: "vaultLocation", + name: { + serializedName: "name", type: { name: "String" } }, - primaryKekCertificatePfx: { - serializedName: "primaryKekCertificatePfx", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - secondaryKekCertificatePfx: { - serializedName: "secondaryKekCertificatePfx", + cpuCoresCount: { + serializedName: "cpuCoresCount", type: { - name: "String" + name: "Number" } }, - recoveryPointType: { - serializedName: "recoveryPointType", + vCPUsAvailable: { + readOnly: true, + serializedName: "vCPUsAvailable", + type: { + name: "Number" + } + }, + memoryInGB: { + serializedName: "memoryInGB", + type: { + name: "Number" + } + }, + maxDataDiskCount: { + serializedName: "maxDataDiskCount", + type: { + name: "Number" + } + }, + maxNicsCount: { + serializedName: "maxNicsCount", + type: { + name: "Number" + } + }, + errors: { + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeSizeErrorDetails" + } + } + } + }, + highIopsSupported: { + serializedName: "highIopsSupported", type: { name: "String" } + }, + hyperVGenerations: { + serializedName: "hyperVGenerations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const RecoveryPlanInMageAzureV2FailoverInput: msRest.CompositeMapper = { - serializedName: "InMageAzureV2", +export const TargetComputeSize: msRest.CompositeMapper = { + serializedName: "TargetComputeSize", type: { name: "Composite", - polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, - uberParent: "RecoveryPlanProviderSpecificFailoverInput", - className: "RecoveryPlanInMageAzureV2FailoverInput", + className: "TargetComputeSize", modelProperties: { - ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, - vaultLocation: { - required: true, - serializedName: "vaultLocation", + id: { + serializedName: "id", type: { name: "String" } }, - recoveryPointType: { - required: true, - serializedName: "recoveryPointType", + name: { + serializedName: "name", type: { name: "String" } }, - useMultiVmSyncPoint: { - serializedName: "useMultiVmSyncPoint", + type: { + serializedName: "type", type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "TargetComputeSizeProperties" + } } } } }; -export const RecoveryPlanInMageFailoverInput: msRest.CompositeMapper = { - serializedName: "InMage", +export const TestFailoverCleanupInputProperties: msRest.CompositeMapper = { + serializedName: "TestFailoverCleanupInputProperties", type: { name: "Composite", - polymorphicDiscriminator: RecoveryPlanProviderSpecificFailoverInput.type.polymorphicDiscriminator, - uberParent: "RecoveryPlanProviderSpecificFailoverInput", - className: "RecoveryPlanInMageFailoverInput", + className: "TestFailoverCleanupInputProperties", modelProperties: { - ...RecoveryPlanProviderSpecificFailoverInput.type.modelProperties, - recoveryPointType: { - required: true, - serializedName: "recoveryPointType", + comments: { + serializedName: "comments", + constraints: { + MaxLength: 1024 + }, type: { name: "String" } @@ -9239,144 +17682,143 @@ export const RecoveryPlanInMageFailoverInput: msRest.CompositeMapper = { } }; -export const RecoveryPlanManualActionDetails: msRest.CompositeMapper = { - serializedName: "ManualActionDetails", +export const TestFailoverCleanupInput: msRest.CompositeMapper = { + serializedName: "TestFailoverCleanupInput", type: { name: "Composite", - polymorphicDiscriminator: RecoveryPlanActionDetails.type.polymorphicDiscriminator, - uberParent: "RecoveryPlanActionDetails", - className: "RecoveryPlanManualActionDetails", + className: "TestFailoverCleanupInput", modelProperties: { - ...RecoveryPlanActionDetails.type.modelProperties, - description: { - serializedName: "description", + properties: { + required: true, + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "TestFailoverCleanupInputProperties" } } } } }; -export const RecoveryPlanPlannedFailoverInputProperties: msRest.CompositeMapper = { - serializedName: "RecoveryPlanPlannedFailoverInputProperties", +export const TestFailoverInputProperties: msRest.CompositeMapper = { + serializedName: "TestFailoverInputProperties", type: { name: "Composite", - className: "RecoveryPlanPlannedFailoverInputProperties", + className: "TestFailoverInputProperties", modelProperties: { failoverDirection: { - required: true, serializedName: "failoverDirection", type: { name: "String" } }, + networkType: { + serializedName: "networkType", + type: { + name: "String" + } + }, + networkId: { + serializedName: "networkId", + type: { + name: "String" + } + }, providerSpecificDetails: { serializedName: "providerSpecificDetails", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecoveryPlanProviderSpecificFailoverInput" - } - } + name: "Composite", + className: "TestFailoverProviderSpecificInput" } } } } }; -export const RecoveryPlanPlannedFailoverInput: msRest.CompositeMapper = { - serializedName: "RecoveryPlanPlannedFailoverInput", +export const TestFailoverInput: msRest.CompositeMapper = { + serializedName: "TestFailoverInput", type: { name: "Composite", - className: "RecoveryPlanPlannedFailoverInput", + className: "TestFailoverInput", modelProperties: { properties: { required: true, serializedName: "properties", type: { name: "Composite", - className: "RecoveryPlanPlannedFailoverInputProperties" + className: "TestFailoverInputProperties" } } } } }; -export const RecoveryPlanScriptActionDetails: msRest.CompositeMapper = { - serializedName: "ScriptActionDetails", +export const TestFailoverJobDetails: msRest.CompositeMapper = { + serializedName: "TestFailoverJobDetails", type: { name: "Composite", - polymorphicDiscriminator: RecoveryPlanActionDetails.type.polymorphicDiscriminator, - uberParent: "RecoveryPlanActionDetails", - className: "RecoveryPlanScriptActionDetails", + polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, + uberParent: "JobDetails", + className: "TestFailoverJobDetails", modelProperties: { - ...RecoveryPlanActionDetails.type.modelProperties, - path: { - required: true, - serializedName: "path", + ...JobDetails.type.modelProperties, + testFailoverStatus: { + serializedName: "testFailoverStatus", type: { name: "String" } }, - timeout: { - serializedName: "timeout", + comments: { + serializedName: "comments", type: { name: "String" } }, - fabricLocation: { - required: true, - serializedName: "fabricLocation", + networkName: { + serializedName: "networkName", type: { name: "String" } - } - } - } -}; - -export const RecoveryPlanShutdownGroupTaskDetails: msRest.CompositeMapper = { - serializedName: "RecoveryPlanShutdownGroupTaskDetails", - type: { - name: "Composite", - polymorphicDiscriminator: GroupTaskDetails.type.polymorphicDiscriminator, - uberParent: "GroupTaskDetails", - className: "RecoveryPlanShutdownGroupTaskDetails", - modelProperties: { - ...GroupTaskDetails.type.modelProperties, - name: { - serializedName: "name", + }, + networkFriendlyName: { + serializedName: "networkFriendlyName", type: { name: "String" } }, - groupId: { - serializedName: "groupId", + networkType: { + serializedName: "networkType", type: { name: "String" } }, - rpGroupType: { - serializedName: "rpGroupType", + protectedItemDetails: { + serializedName: "protectedItemDetails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailoverReplicationProtectedItemDetails" + } + } } } } } }; -export const RecoveryPlanTestFailoverCleanupInputProperties: msRest.CompositeMapper = { - serializedName: "RecoveryPlanTestFailoverCleanupInputProperties", +export const TestMigrateCleanupInputProperties: msRest.CompositeMapper = { + serializedName: "TestMigrateCleanupInputProperties", type: { name: "Composite", - className: "RecoveryPlanTestFailoverCleanupInputProperties", + className: "TestMigrateCleanupInputProperties", modelProperties: { comments: { serializedName: "comments", + constraints: { + MaxLength: 1024 + }, type: { name: "String" } @@ -9385,105 +17827,95 @@ export const RecoveryPlanTestFailoverCleanupInputProperties: msRest.CompositeMap } }; -export const RecoveryPlanTestFailoverCleanupInput: msRest.CompositeMapper = { - serializedName: "RecoveryPlanTestFailoverCleanupInput", +export const TestMigrateCleanupInput: msRest.CompositeMapper = { + serializedName: "TestMigrateCleanupInput", type: { name: "Composite", - className: "RecoveryPlanTestFailoverCleanupInput", + className: "TestMigrateCleanupInput", modelProperties: { properties: { required: true, serializedName: "properties", type: { name: "Composite", - className: "RecoveryPlanTestFailoverCleanupInputProperties" + className: "TestMigrateCleanupInputProperties" } } } } }; -export const RecoveryPlanTestFailoverInputProperties: msRest.CompositeMapper = { - serializedName: "RecoveryPlanTestFailoverInputProperties", +export const TestMigrateProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "TestMigrateProviderSpecificInput", type: { name: "Composite", - className: "RecoveryPlanTestFailoverInputProperties", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "TestMigrateProviderSpecificInput", + className: "TestMigrateProviderSpecificInput", modelProperties: { - failoverDirection: { - required: true, - serializedName: "failoverDirection", - type: { - name: "String" - } - }, - networkType: { + instanceType: { required: true, - serializedName: "networkType", - type: { - name: "String" - } - }, - networkId: { - serializedName: "networkId", - type: { - name: "String" - } - }, - skipTestFailoverCleanup: { - serializedName: "skipTestFailoverCleanup", + serializedName: "instanceType", type: { name: "String" } - }, + } + } + } +}; + +export const TestMigrateInputProperties: msRest.CompositeMapper = { + serializedName: "TestMigrateInputProperties", + type: { + name: "Composite", + className: "TestMigrateInputProperties", + modelProperties: { providerSpecificDetails: { + required: true, serializedName: "providerSpecificDetails", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecoveryPlanProviderSpecificFailoverInput" - } - } + name: "Composite", + className: "TestMigrateProviderSpecificInput" } } } } }; -export const RecoveryPlanTestFailoverInput: msRest.CompositeMapper = { - serializedName: "RecoveryPlanTestFailoverInput", +export const TestMigrateInput: msRest.CompositeMapper = { + serializedName: "TestMigrateInput", type: { name: "Composite", - className: "RecoveryPlanTestFailoverInput", + className: "TestMigrateInput", modelProperties: { properties: { required: true, serializedName: "properties", type: { name: "Composite", - className: "RecoveryPlanTestFailoverInputProperties" + className: "TestMigrateInputProperties" } } } } }; -export const RecoveryPlanUnplannedFailoverInputProperties: msRest.CompositeMapper = { - serializedName: "RecoveryPlanUnplannedFailoverInputProperties", +export const UnplannedFailoverInputProperties: msRest.CompositeMapper = { + serializedName: "UnplannedFailoverInputProperties", type: { name: "Composite", - className: "RecoveryPlanUnplannedFailoverInputProperties", + className: "UnplannedFailoverInputProperties", modelProperties: { failoverDirection: { - required: true, serializedName: "failoverDirection", type: { name: "String" } }, sourceSiteOperations: { - required: true, serializedName: "sourceSiteOperations", type: { name: "String" @@ -9492,432 +17924,571 @@ export const RecoveryPlanUnplannedFailoverInputProperties: msRest.CompositeMappe providerSpecificDetails: { serializedName: "providerSpecificDetails", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecoveryPlanProviderSpecificFailoverInput" - } - } + name: "Composite", + className: "UnplannedFailoverProviderSpecificInput" } } } } }; -export const RecoveryPlanUnplannedFailoverInput: msRest.CompositeMapper = { - serializedName: "RecoveryPlanUnplannedFailoverInput", +export const UnplannedFailoverInput: msRest.CompositeMapper = { + serializedName: "UnplannedFailoverInput", type: { name: "Composite", - className: "RecoveryPlanUnplannedFailoverInput", + className: "UnplannedFailoverInput", modelProperties: { properties: { required: true, serializedName: "properties", type: { name: "Composite", - className: "RecoveryPlanUnplannedFailoverInputProperties" + className: "UnplannedFailoverInputProperties" } } } } }; -export const RecoveryPointProperties: msRest.CompositeMapper = { - serializedName: "RecoveryPointProperties", +export const UpdateApplianceForReplicationProtectedItemInputProperties: msRest.CompositeMapper = { + serializedName: "UpdateApplianceForReplicationProtectedItemInputProperties", type: { name: "Composite", - className: "RecoveryPointProperties", + className: "UpdateApplianceForReplicationProtectedItemInputProperties", modelProperties: { - recoveryPointTime: { - serializedName: "recoveryPointTime", - type: { - name: "DateTime" - } - }, - recoveryPointType: { - serializedName: "recoveryPointType", + targetApplianceId: { + required: true, + serializedName: "targetApplianceId", type: { name: "String" } }, providerSpecificDetails: { + required: true, serializedName: "providerSpecificDetails", type: { name: "Composite", - className: "ProviderSpecificRecoveryPointDetails" + className: "UpdateApplianceForReplicationProtectedItemProviderSpecificInput" } } } } }; -export const RecoveryPoint: msRest.CompositeMapper = { - serializedName: "RecoveryPoint", +export const UpdateApplianceForReplicationProtectedItemInput: msRest.CompositeMapper = { + serializedName: "UpdateApplianceForReplicationProtectedItemInput", type: { name: "Composite", - className: "RecoveryPoint", + className: "UpdateApplianceForReplicationProtectedItemInput", modelProperties: { - ...Resource.type.modelProperties, properties: { + required: true, serializedName: "properties", type: { name: "Composite", - className: "RecoveryPointProperties" + className: "UpdateApplianceForReplicationProtectedItemInputProperties" } } } } }; -export const RecoveryServicesProviderProperties: msRest.CompositeMapper = { - serializedName: "RecoveryServicesProviderProperties", +export const UpdateMigrationItemProviderSpecificInput: msRest.CompositeMapper = { + serializedName: "UpdateMigrationItemProviderSpecificInput", type: { name: "Composite", - className: "RecoveryServicesProviderProperties", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "UpdateMigrationItemProviderSpecificInput", + className: "UpdateMigrationItemProviderSpecificInput", modelProperties: { - fabricType: { - serializedName: "fabricType", - type: { - name: "String" - } - }, - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - providerVersion: { - serializedName: "providerVersion", - type: { - name: "String" - } - }, - serverVersion: { - serializedName: "serverVersion", - type: { - name: "String" - } - }, - providerVersionState: { - serializedName: "providerVersionState", + instanceType: { + required: true, + serializedName: "instanceType", type: { name: "String" } - }, - providerVersionExpiryDate: { - serializedName: "providerVersionExpiryDate", - type: { - name: "DateTime" - } - }, - fabricFriendlyName: { - serializedName: "fabricFriendlyName", + } + } + } +}; + +export const UpdateMigrationItemInputProperties: msRest.CompositeMapper = { + serializedName: "UpdateMigrationItemInputProperties", + type: { + name: "Composite", + className: "UpdateMigrationItemInputProperties", + modelProperties: { + providerSpecificDetails: { + required: true, + serializedName: "providerSpecificDetails", type: { - name: "String" + name: "Composite", + className: "UpdateMigrationItemProviderSpecificInput" } - }, - lastHeartBeat: { - serializedName: "lastHeartBeat", + } + } + } +}; + +export const UpdateMigrationItemInput: msRest.CompositeMapper = { + serializedName: "UpdateMigrationItemInput", + type: { + name: "Composite", + className: "UpdateMigrationItemInput", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "DateTime" + name: "Composite", + className: "UpdateMigrationItemInputProperties" } - }, - connectionStatus: { - serializedName: "connectionStatus", + } + } + } +}; + +export const UpdateMobilityServiceRequestProperties: msRest.CompositeMapper = { + serializedName: "UpdateMobilityServiceRequestProperties", + type: { + name: "Composite", + className: "UpdateMobilityServiceRequestProperties", + modelProperties: { + runAsAccountId: { + serializedName: "runAsAccountId", type: { name: "String" } - }, - protectedItemCount: { - serializedName: "protectedItemCount", - type: { - name: "Number" - } - }, - allowedScenarios: { - serializedName: "allowedScenarios", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - healthErrorDetails: { - serializedName: "healthErrorDetails", + } + } + } +}; + +export const UpdateMobilityServiceRequest: msRest.CompositeMapper = { + serializedName: "UpdateMobilityServiceRequest", + type: { + name: "Composite", + className: "UpdateMobilityServiceRequest", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthError" - } - } + name: "Composite", + className: "UpdateMobilityServiceRequestProperties" } - }, - draIdentifier: { - serializedName: "draIdentifier", + } + } + } +}; + +export const UpdateNetworkMappingInputProperties: msRest.CompositeMapper = { + serializedName: "UpdateNetworkMappingInputProperties", + type: { + name: "Composite", + className: "UpdateNetworkMappingInputProperties", + modelProperties: { + recoveryFabricName: { + serializedName: "recoveryFabricName", type: { name: "String" } }, - identityDetails: { - serializedName: "identityDetails", + recoveryNetworkId: { + serializedName: "recoveryNetworkId", type: { - name: "Composite", - className: "IdentityInformation" + name: "String" } }, - providerVersionDetails: { - serializedName: "providerVersionDetails", + fabricSpecificDetails: { + serializedName: "fabricSpecificDetails", type: { name: "Composite", - className: "VersionDetails" + className: "FabricSpecificUpdateNetworkMappingInput" } } } } }; -export const RecoveryServicesProvider: msRest.CompositeMapper = { - serializedName: "RecoveryServicesProvider", +export const UpdateNetworkMappingInput: msRest.CompositeMapper = { + serializedName: "UpdateNetworkMappingInput", type: { name: "Composite", - className: "RecoveryServicesProvider", + className: "UpdateNetworkMappingInput", modelProperties: { - ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "RecoveryServicesProviderProperties" + className: "UpdateNetworkMappingInputProperties" } } } } }; -export const ReplicationProviderContainerUnmappingInput: msRest.CompositeMapper = { - serializedName: "ReplicationProviderContainerUnmappingInput", +export const UpdatePolicyInputProperties: msRest.CompositeMapper = { + serializedName: "UpdatePolicyInputProperties", type: { name: "Composite", - className: "ReplicationProviderContainerUnmappingInput", + className: "UpdatePolicyInputProperties", modelProperties: { - instanceType: { - serializedName: "instanceType", + replicationProviderSettings: { + serializedName: "replicationProviderSettings", type: { - name: "String" + name: "Composite", + className: "PolicyProviderSpecificInput" } } } } }; -export const RemoveProtectionContainerMappingInputProperties: msRest.CompositeMapper = { - serializedName: "RemoveProtectionContainerMappingInputProperties", +export const UpdatePolicyInput: msRest.CompositeMapper = { + serializedName: "UpdatePolicyInput", type: { name: "Composite", - className: "RemoveProtectionContainerMappingInputProperties", + className: "UpdatePolicyInput", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "UpdatePolicyInputProperties" + } + } + } + } +}; + +export const UpdateProtectionContainerMappingInputProperties: msRest.CompositeMapper = { + serializedName: "UpdateProtectionContainerMappingInputProperties", + type: { + name: "Composite", + className: "UpdateProtectionContainerMappingInputProperties", modelProperties: { providerSpecificInput: { serializedName: "providerSpecificInput", type: { name: "Composite", - className: "ReplicationProviderContainerUnmappingInput" + className: "ReplicationProviderSpecificUpdateContainerMappingInput" } } } } }; -export const RemoveProtectionContainerMappingInput: msRest.CompositeMapper = { - serializedName: "RemoveProtectionContainerMappingInput", +export const UpdateProtectionContainerMappingInput: msRest.CompositeMapper = { + serializedName: "UpdateProtectionContainerMappingInput", type: { name: "Composite", - className: "RemoveProtectionContainerMappingInput", + className: "UpdateProtectionContainerMappingInput", modelProperties: { properties: { serializedName: "properties", type: { name: "Composite", - className: "RemoveProtectionContainerMappingInputProperties" + className: "UpdateProtectionContainerMappingInputProperties" } } } } }; -export const RenewCertificateInputProperties: msRest.CompositeMapper = { - serializedName: "RenewCertificateInputProperties", +export const UpdateRecoveryPlanInputProperties: msRest.CompositeMapper = { + serializedName: "UpdateRecoveryPlanInputProperties", type: { name: "Composite", - className: "RenewCertificateInputProperties", + className: "UpdateRecoveryPlanInputProperties", modelProperties: { - renewCertificateType: { - serializedName: "renewCertificateType", + groups: { + serializedName: "groups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPlanGroup" + } + } } } } } }; -export const RenewCertificateInput: msRest.CompositeMapper = { - serializedName: "RenewCertificateInput", +export const UpdateRecoveryPlanInput: msRest.CompositeMapper = { + serializedName: "UpdateRecoveryPlanInput", type: { name: "Composite", - className: "RenewCertificateInput", + className: "UpdateRecoveryPlanInput", modelProperties: { properties: { serializedName: "properties", type: { name: "Composite", - className: "RenewCertificateInputProperties" + className: "UpdateRecoveryPlanInputProperties" } } } } }; -export const ReplicationGroupDetails: msRest.CompositeMapper = { - serializedName: "ReplicationGroupDetails", +export const VMNicInputDetails: msRest.CompositeMapper = { + serializedName: "VMNicInputDetails", type: { name: "Composite", - polymorphicDiscriminator: ConfigurationSettings.type.polymorphicDiscriminator, - uberParent: "ConfigurationSettings", - className: "ReplicationGroupDetails", + className: "VMNicInputDetails", modelProperties: { - ...ConfigurationSettings.type.modelProperties + nicId: { + serializedName: "nicId", + type: { + name: "String" + } + }, + ipConfigs: { + serializedName: "ipConfigs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPConfigInputDetails" + } + } + } + }, + selectionType: { + serializedName: "selectionType", + type: { + name: "String" + } + }, + recoveryNetworkSecurityGroupId: { + serializedName: "recoveryNetworkSecurityGroupId", + type: { + name: "String" + } + }, + enableAcceleratedNetworkingOnRecovery: { + serializedName: "enableAcceleratedNetworkingOnRecovery", + type: { + name: "Boolean" + } + }, + tfoNetworkSecurityGroupId: { + serializedName: "tfoNetworkSecurityGroupId", + type: { + name: "String" + } + }, + enableAcceleratedNetworkingOnTfo: { + serializedName: "enableAcceleratedNetworkingOnTfo", + type: { + name: "Boolean" + } + }, + recoveryNicName: { + serializedName: "recoveryNicName", + type: { + name: "String" + } + }, + recoveryNicResourceGroupName: { + serializedName: "recoveryNicResourceGroupName", + type: { + name: "String" + } + }, + reuseExistingNic: { + serializedName: "reuseExistingNic", + type: { + name: "Boolean" + } + }, + tfoNicName: { + serializedName: "tfoNicName", + type: { + name: "String" + } + }, + tfoNicResourceGroupName: { + serializedName: "tfoNicResourceGroupName", + type: { + name: "String" + } + }, + tfoReuseExistingNic: { + serializedName: "tfoReuseExistingNic", + type: { + name: "Boolean" + } + } } } }; -export const ReplicationProtectedItemProperties: msRest.CompositeMapper = { - serializedName: "ReplicationProtectedItemProperties", +export const UpdateReplicationProtectedItemInputProperties: msRest.CompositeMapper = { + serializedName: "UpdateReplicationProtectedItemInputProperties", type: { name: "Composite", - className: "ReplicationProtectedItemProperties", + className: "UpdateReplicationProtectedItemInputProperties", modelProperties: { - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - protectedItemType: { - serializedName: "protectedItemType", + recoveryAzureVMName: { + serializedName: "recoveryAzureVMName", type: { name: "String" } }, - protectableItemId: { - serializedName: "protectableItemId", + recoveryAzureVMSize: { + serializedName: "recoveryAzureVMSize", type: { name: "String" } }, - recoveryServicesProviderId: { - serializedName: "recoveryServicesProviderId", + selectedRecoveryAzureNetworkId: { + serializedName: "selectedRecoveryAzureNetworkId", type: { name: "String" } }, - primaryFabricFriendlyName: { - serializedName: "primaryFabricFriendlyName", + selectedTfoAzureNetworkId: { + serializedName: "selectedTfoAzureNetworkId", type: { name: "String" } }, - primaryFabricProvider: { - serializedName: "primaryFabricProvider", + selectedSourceNicId: { + serializedName: "selectedSourceNicId", type: { name: "String" } }, - recoveryFabricFriendlyName: { - serializedName: "recoveryFabricFriendlyName", + enableRdpOnTargetOption: { + serializedName: "enableRdpOnTargetOption", type: { name: "String" } }, - recoveryFabricId: { - serializedName: "recoveryFabricId", + vmNics: { + serializedName: "vmNics", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMNicInputDetails" + } + } } }, - primaryProtectionContainerFriendlyName: { - serializedName: "primaryProtectionContainerFriendlyName", + licenseType: { + serializedName: "licenseType", type: { name: "String" } }, - recoveryProtectionContainerFriendlyName: { - serializedName: "recoveryProtectionContainerFriendlyName", + recoveryAvailabilitySetId: { + serializedName: "recoveryAvailabilitySetId", type: { name: "String" } }, - protectionState: { - serializedName: "protectionState", + providerSpecificDetails: { + serializedName: "providerSpecificDetails", type: { - name: "String" + name: "Composite", + className: "UpdateReplicationProtectedItemProviderInput" } - }, - protectionStateDescription: { - serializedName: "protectionStateDescription", + } + } + } +}; + +export const UpdateReplicationProtectedItemInput: msRest.CompositeMapper = { + serializedName: "UpdateReplicationProtectedItemInput", + type: { + name: "Composite", + className: "UpdateReplicationProtectedItemInput", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "UpdateReplicationProtectedItemInputProperties" } - }, - activeLocation: { - serializedName: "activeLocation", + } + } + } +}; + +export const UpdateVCenterRequestProperties: msRest.CompositeMapper = { + serializedName: "UpdateVCenterRequestProperties", + type: { + name: "Composite", + className: "UpdateVCenterRequestProperties", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - testFailoverState: { - serializedName: "testFailoverState", + ipAddress: { + serializedName: "ipAddress", type: { name: "String" } }, - testFailoverStateDescription: { - serializedName: "testFailoverStateDescription", + processServerId: { + serializedName: "processServerId", type: { name: "String" } }, - allowedOperations: { - serializedName: "allowedOperations", + port: { + serializedName: "port", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - replicationHealth: { - serializedName: "replicationHealth", + runAsAccountId: { + serializedName: "runAsAccountId", type: { name: "String" } - }, - failoverHealth: { - serializedName: "failoverHealth", + } + } + } +}; + +export const UpdateVCenterRequest: msRest.CompositeMapper = { + serializedName: "UpdateVCenterRequest", + type: { + name: "Composite", + className: "UpdateVCenterRequest", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "UpdateVCenterRequestProperties" } - }, - healthErrors: { - serializedName: "healthErrors", + } + } + } +}; + +export const VaultHealthProperties: msRest.CompositeMapper = { + serializedName: "VaultHealthProperties", + type: { + name: "Composite", + className: "VaultHealthProperties", + modelProperties: { + vaultErrors: { + serializedName: "vaultErrors", type: { name: "Sequence", element: { @@ -9928,52 +18499,63 @@ export const ReplicationProtectedItemProperties: msRest.CompositeMapper = { } } }, - policyId: { - serializedName: "policyId", - type: { - name: "String" - } - }, - policyFriendlyName: { - serializedName: "policyFriendlyName", + protectedItemsHealth: { + serializedName: "protectedItemsHealth", type: { - name: "String" + name: "Composite", + className: "ResourceHealthSummary" } }, - lastSuccessfulFailoverTime: { - serializedName: "lastSuccessfulFailoverTime", + fabricsHealth: { + serializedName: "fabricsHealth", type: { - name: "DateTime" + name: "Composite", + className: "ResourceHealthSummary" } }, - lastSuccessfulTestFailoverTime: { - serializedName: "lastSuccessfulTestFailoverTime", + containersHealth: { + serializedName: "containersHealth", type: { - name: "DateTime" + name: "Composite", + className: "ResourceHealthSummary" } - }, - currentScenario: { - serializedName: "currentScenario", + } + } + } +}; + +export const VaultHealthDetails: msRest.CompositeMapper = { + serializedName: "VaultHealthDetails", + type: { + name: "Composite", + className: "VaultHealthDetails", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { name: "Composite", - className: "CurrentScenarioDetails" + className: "VaultHealthProperties" } - }, - failoverRecoveryPointId: { - serializedName: "failoverRecoveryPointId", + } + } + } +}; + +export const VaultSettingProperties: msRest.CompositeMapper = { + serializedName: "VaultSettingProperties", + type: { + name: "Composite", + className: "VaultSettingProperties", + modelProperties: { + migrationSolutionId: { + serializedName: "migrationSolutionId", type: { name: "String" } }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", - type: { - name: "Composite", - className: "ReplicationProviderSpecificSettings" - } - }, - recoveryContainerId: { - serializedName: "recoveryContainerId", + vmwareToAzureProviderType: { + serializedName: "vmwareToAzureProviderType", type: { name: "String" } @@ -9982,273 +18564,316 @@ export const ReplicationProtectedItemProperties: msRest.CompositeMapper = { } }; -export const ReplicationProtectedItem: msRest.CompositeMapper = { - serializedName: "ReplicationProtectedItem", +export const VaultSetting: msRest.CompositeMapper = { + serializedName: "VaultSetting", type: { name: "Composite", - className: "ReplicationProtectedItem", + className: "VaultSetting", modelProperties: { ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "ReplicationProtectedItemProperties" + className: "VaultSettingProperties" } } } } }; -export const ResourceHealthSummary: msRest.CompositeMapper = { - serializedName: "ResourceHealthSummary", +export const VaultSettingCreationInputProperties: msRest.CompositeMapper = { + serializedName: "VaultSettingCreationInputProperties", type: { name: "Composite", - className: "ResourceHealthSummary", + className: "VaultSettingCreationInputProperties", modelProperties: { - resourceCount: { - serializedName: "resourceCount", + migrationSolutionId: { + serializedName: "migrationSolutionId", type: { - name: "Number" + name: "String" } }, - issues: { - serializedName: "issues", + vmwareToAzureProviderType: { + serializedName: "vmwareToAzureProviderType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthErrorSummary" - } - } + name: "String" } } } } }; -export const ResumeJobParamsProperties: msRest.CompositeMapper = { - serializedName: "ResumeJobParamsProperties", +export const VaultSettingCreationInput: msRest.CompositeMapper = { + serializedName: "VaultSettingCreationInput", type: { name: "Composite", - className: "ResumeJobParamsProperties", + className: "VaultSettingCreationInput", modelProperties: { - comments: { - serializedName: "comments", + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "VaultSettingCreationInputProperties" + } + } + } + } +}; + +export const VCenterProperties: msRest.CompositeMapper = { + serializedName: "VCenterProperties", + type: { + name: "Composite", + className: "VCenterProperties", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + }, + internalId: { + serializedName: "internalId", + type: { + name: "String" + } + }, + lastHeartbeat: { + serializedName: "lastHeartbeat", + type: { + name: "DateTime" + } + }, + discoveryStatus: { + serializedName: "discoveryStatus", + type: { + name: "String" + } + }, + processServerId: { + serializedName: "processServerId", + type: { + name: "String" + } + }, + ipAddress: { + serializedName: "ipAddress", + type: { + name: "String" + } + }, + infrastructureId: { + serializedName: "infrastructureId", + type: { + name: "String" + } + }, + port: { + serializedName: "port", + type: { + name: "String" + } + }, + runAsAccountId: { + serializedName: "runAsAccountId", + type: { + name: "String" + } + }, + fabricArmResourceName: { + serializedName: "fabricArmResourceName", type: { name: "String" } + }, + healthErrors: { + serializedName: "healthErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthError" + } + } + } } } } }; -export const ResumeJobParams: msRest.CompositeMapper = { - serializedName: "ResumeJobParams", +export const VCenter: msRest.CompositeMapper = { + serializedName: "VCenter", type: { name: "Composite", - className: "ResumeJobParams", + className: "VCenter", modelProperties: { + ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "ResumeJobParamsProperties" + className: "VCenterProperties" } } } } }; -export const ReverseReplicationInputProperties: msRest.CompositeMapper = { - serializedName: "ReverseReplicationInputProperties", +export const VirtualMachineTaskDetails: msRest.CompositeMapper = { + serializedName: "VirtualMachineTaskDetails", type: { name: "Composite", - className: "ReverseReplicationInputProperties", + polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, + uberParent: "TaskTypeDetails", + className: "VirtualMachineTaskDetails", modelProperties: { - failoverDirection: { - serializedName: "failoverDirection", + ...JobTaskDetails.type.modelProperties, + skippedReason: { + serializedName: "skippedReason", type: { name: "String" } }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + skippedReasonString: { + serializedName: "skippedReasonString", type: { - name: "Composite", - className: "ReverseReplicationProviderSpecificInput" + name: "String" } } } } }; -export const ReverseReplicationInput: msRest.CompositeMapper = { - serializedName: "ReverseReplicationInput", +export const VmmDetails: msRest.CompositeMapper = { + serializedName: "VMM", type: { name: "Composite", - className: "ReverseReplicationInput", + polymorphicDiscriminator: FabricSpecificDetails.type.polymorphicDiscriminator, + uberParent: "FabricSpecificDetails", + className: "VmmDetails", modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ReverseReplicationInputProperties" - } - } + ...FabricSpecificDetails.type.modelProperties } } }; -export const RunAsAccount: msRest.CompositeMapper = { - serializedName: "RunAsAccount", +export const VmmToAzureCreateNetworkMappingInput: msRest.CompositeMapper = { + serializedName: "VmmToAzure", type: { name: "Composite", - className: "RunAsAccount", + polymorphicDiscriminator: FabricSpecificCreateNetworkMappingInput.type.polymorphicDiscriminator, + uberParent: "FabricSpecificCreateNetworkMappingInput", + className: "VmmToAzureCreateNetworkMappingInput", modelProperties: { - accountId: { - serializedName: "accountId", - type: { - name: "String" - } - }, - accountName: { - serializedName: "accountName", - type: { - name: "String" - } - } + ...FabricSpecificCreateNetworkMappingInput.type.modelProperties } } }; -export const SanEnableProtectionInput: msRest.CompositeMapper = { - serializedName: "San", +export const VmmToAzureNetworkMappingSettings: msRest.CompositeMapper = { + serializedName: "VmmToAzure", type: { name: "Composite", - polymorphicDiscriminator: EnableProtectionProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "EnableProtectionProviderSpecificInput", - className: "SanEnableProtectionInput", + polymorphicDiscriminator: NetworkMappingFabricSpecificSettings.type.polymorphicDiscriminator, + uberParent: "NetworkMappingFabricSpecificSettings", + className: "VmmToAzureNetworkMappingSettings", modelProperties: { - ...EnableProtectionProviderSpecificInput.type.modelProperties + ...NetworkMappingFabricSpecificSettings.type.modelProperties } } }; -export const ScriptActionTaskDetails: msRest.CompositeMapper = { - serializedName: "ScriptActionTaskDetails", +export const VmmToAzureUpdateNetworkMappingInput: msRest.CompositeMapper = { + serializedName: "VmmToAzure", type: { name: "Composite", - polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, - uberParent: "TaskTypeDetails", - className: "ScriptActionTaskDetails", + polymorphicDiscriminator: FabricSpecificUpdateNetworkMappingInput.type.polymorphicDiscriminator, + uberParent: "FabricSpecificUpdateNetworkMappingInput", + className: "VmmToAzureUpdateNetworkMappingInput", modelProperties: { - ...TaskTypeDetails.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - path: { - serializedName: "path", - type: { - name: "String" - } - }, - output: { - serializedName: "output", - type: { - name: "String" - } - }, - isPrimarySideScript: { - serializedName: "isPrimarySideScript", - type: { - name: "Boolean" - } - } + ...FabricSpecificUpdateNetworkMappingInput.type.modelProperties } } }; -export const StorageClassificationProperties: msRest.CompositeMapper = { - serializedName: "StorageClassificationProperties", +export const VmmToVmmCreateNetworkMappingInput: msRest.CompositeMapper = { + serializedName: "VmmToVmm", type: { name: "Composite", - className: "StorageClassificationProperties", + polymorphicDiscriminator: FabricSpecificCreateNetworkMappingInput.type.polymorphicDiscriminator, + uberParent: "FabricSpecificCreateNetworkMappingInput", + className: "VmmToVmmCreateNetworkMappingInput", modelProperties: { - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - } + ...FabricSpecificCreateNetworkMappingInput.type.modelProperties } } }; -export const StorageClassification: msRest.CompositeMapper = { - serializedName: "StorageClassification", +export const VmmToVmmNetworkMappingSettings: msRest.CompositeMapper = { + serializedName: "VmmToVmm", type: { name: "Composite", - className: "StorageClassification", + polymorphicDiscriminator: NetworkMappingFabricSpecificSettings.type.polymorphicDiscriminator, + uberParent: "NetworkMappingFabricSpecificSettings", + className: "VmmToVmmNetworkMappingSettings", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "StorageClassificationProperties" - } - } + ...NetworkMappingFabricSpecificSettings.type.modelProperties } } }; -export const StorageClassificationMappingProperties: msRest.CompositeMapper = { - serializedName: "StorageClassificationMappingProperties", +export const VmmToVmmUpdateNetworkMappingInput: msRest.CompositeMapper = { + serializedName: "VmmToVmm", type: { name: "Composite", - className: "StorageClassificationMappingProperties", + polymorphicDiscriminator: FabricSpecificUpdateNetworkMappingInput.type.polymorphicDiscriminator, + uberParent: "FabricSpecificUpdateNetworkMappingInput", + className: "VmmToVmmUpdateNetworkMappingInput", modelProperties: { - targetStorageClassificationId: { - serializedName: "targetStorageClassificationId", - type: { - name: "String" - } - } + ...FabricSpecificUpdateNetworkMappingInput.type.modelProperties } } }; -export const StorageClassificationMapping: msRest.CompositeMapper = { - serializedName: "StorageClassificationMapping", +export const VmmVirtualMachineDetails: msRest.CompositeMapper = { + serializedName: "VmmVirtualMachine", type: { name: "Composite", - className: "StorageClassificationMapping", + polymorphicDiscriminator: ConfigurationSettings.type.polymorphicDiscriminator, + uberParent: "ConfigurationSettings", + className: "VmmVirtualMachineDetails", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "StorageClassificationMappingProperties" - } - } + ...HyperVVirtualMachineDetails.type.modelProperties } } }; -export const StorageMappingInputProperties: msRest.CompositeMapper = { - serializedName: "StorageMappingInputProperties", +export const VmNicUpdatesTaskDetails: msRest.CompositeMapper = { + serializedName: "VmNicUpdatesTaskDetails", type: { name: "Composite", - className: "StorageMappingInputProperties", + polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, + uberParent: "TaskTypeDetails", + className: "VmNicUpdatesTaskDetails", modelProperties: { - targetStorageClassificationId: { - serializedName: "targetStorageClassificationId", + ...TaskTypeDetails.type.modelProperties, + vmId: { + serializedName: "vmId", + type: { + name: "String" + } + }, + nicId: { + serializedName: "nicId", + type: { + name: "String" + } + }, + name: { + serializedName: "name", type: { name: "String" } @@ -10257,74 +18882,66 @@ export const StorageMappingInputProperties: msRest.CompositeMapper = { } }; -export const StorageClassificationMappingInput: msRest.CompositeMapper = { - serializedName: "StorageClassificationMappingInput", +export const VMwareCbtContainerCreationInput: msRest.CompositeMapper = { + serializedName: "VMwareCbt", type: { name: "Composite", - className: "StorageClassificationMappingInput", + polymorphicDiscriminator: ReplicationProviderSpecificContainerCreationInput.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificContainerCreationInput", + className: "VMwareCbtContainerCreationInput", modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "StorageMappingInputProperties" - } - } + ...ReplicationProviderSpecificContainerCreationInput.type.modelProperties } } }; -export const SwitchProtectionInputProperties: msRest.CompositeMapper = { - serializedName: "SwitchProtectionInputProperties", +export const VMwareCbtContainerMappingInput: msRest.CompositeMapper = { + serializedName: "VMwareCbt", type: { name: "Composite", - className: "SwitchProtectionInputProperties", + polymorphicDiscriminator: ReplicationProviderSpecificContainerMappingInput.type.polymorphicDiscriminator, + uberParent: "ReplicationProviderSpecificContainerMappingInput", + className: "VMwareCbtContainerMappingInput", modelProperties: { - replicationProtectedItemName: { - serializedName: "replicationProtectedItemName", + ...ReplicationProviderSpecificContainerMappingInput.type.modelProperties, + keyVaultId: { + required: true, + serializedName: "keyVaultId", type: { name: "String" } }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + keyVaultUri: { + required: true, + serializedName: "keyVaultUri", type: { - name: "Composite", - className: "SwitchProtectionProviderSpecificInput" + name: "String" } - } - } - } -}; - -export const SwitchProtectionInput: msRest.CompositeMapper = { - serializedName: "SwitchProtectionInput", - type: { - name: "Composite", - className: "SwitchProtectionInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + storageAccountId: { + required: true, + serializedName: "storageAccountId", type: { - name: "Composite", - className: "SwitchProtectionInputProperties" + name: "String" } - } - } - } -}; - -export const SwitchProtectionJobDetails: msRest.CompositeMapper = { - serializedName: "SwitchProtectionJobDetails", - type: { - name: "Composite", - polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, - uberParent: "JobDetails", - className: "SwitchProtectionJobDetails", - modelProperties: { - ...JobDetails.type.modelProperties, - newReplicationProtectedItemId: { - serializedName: "newReplicationProtectedItemId", + }, + storageAccountSasSecretName: { + required: true, + serializedName: "storageAccountSasSecretName", + type: { + name: "String" + } + }, + serviceBusConnectionStringSecretName: { + required: true, + serializedName: "serviceBusConnectionStringSecretName", + type: { + name: "String" + } + }, + targetLocation: { + required: true, + serializedName: "targetLocation", type: { name: "String" } @@ -10333,1108 +18950,1058 @@ export const SwitchProtectionJobDetails: msRest.CompositeMapper = { } }; -export const TargetComputeSizeProperties: msRest.CompositeMapper = { - serializedName: "TargetComputeSizeProperties", +export const VMwareCbtDiskInput: msRest.CompositeMapper = { + serializedName: "VMwareCbtDiskInput", type: { name: "Composite", - className: "TargetComputeSizeProperties", + className: "VMwareCbtDiskInput", modelProperties: { - name: { - serializedName: "name", + diskId: { + required: true, + serializedName: "diskId", type: { name: "String" } }, - friendlyName: { - serializedName: "friendlyName", + diskType: { + serializedName: "diskType", type: { name: "String" } }, - cpuCoresCount: { - serializedName: "cpuCoresCount", + isOSDisk: { + required: true, + serializedName: "isOSDisk", type: { - name: "Number" + name: "String" } }, - memoryInGB: { - serializedName: "memoryInGB", + logStorageAccountId: { + required: true, + serializedName: "logStorageAccountId", type: { - name: "Number" + name: "String" } }, - maxDataDiskCount: { - serializedName: "maxDataDiskCount", + logStorageAccountSasSecretName: { + required: true, + serializedName: "logStorageAccountSasSecretName", type: { - name: "Number" + name: "String" } }, - maxNicsCount: { - serializedName: "maxNicsCount", + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const VMwareCbtEnableMigrationInput: msRest.CompositeMapper = { + serializedName: "VMwareCbt", + type: { + name: "Composite", + polymorphicDiscriminator: EnableMigrationProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "EnableMigrationProviderSpecificInput", + className: "VMwareCbtEnableMigrationInput", + modelProperties: { + ...EnableMigrationProviderSpecificInput.type.modelProperties, + vmwareMachineId: { + required: true, + serializedName: "vmwareMachineId", + type: { + name: "String" } }, - errors: { - serializedName: "errors", + disksToInclude: { + required: true, + serializedName: "disksToInclude", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeSizeErrorDetails" + className: "VMwareCbtDiskInput" } } } }, - highIopsSupported: { - serializedName: "highIopsSupported", + licenseType: { + serializedName: "licenseType", type: { name: "String" } - } - } - } -}; - -export const TargetComputeSize: msRest.CompositeMapper = { - serializedName: "TargetComputeSize", - type: { - name: "Composite", - className: "TargetComputeSize", - modelProperties: { - id: { - serializedName: "id", + }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", type: { name: "String" } }, - name: { - serializedName: "name", + dataMoverRunAsAccountId: { + required: true, + serializedName: "dataMoverRunAsAccountId", type: { name: "String" } }, - type: { - serializedName: "type", + snapshotRunAsAccountId: { + required: true, + serializedName: "snapshotRunAsAccountId", type: { name: "String" } }, - properties: { - serializedName: "properties", + targetVmName: { + serializedName: "targetVmName", type: { - name: "Composite", - className: "TargetComputeSizeProperties" + name: "String" } - } - } - } -}; - -export const TestFailoverCleanupInputProperties: msRest.CompositeMapper = { - serializedName: "TestFailoverCleanupInputProperties", - type: { - name: "Composite", - className: "TestFailoverCleanupInputProperties", - modelProperties: { - comments: { - serializedName: "comments", + }, + targetVmSize: { + serializedName: "targetVmSize", type: { name: "String" } - } - } - } -}; - -export const TestFailoverCleanupInput: msRest.CompositeMapper = { - serializedName: "TestFailoverCleanupInput", - type: { - name: "Composite", - className: "TestFailoverCleanupInput", - modelProperties: { - properties: { + }, + targetResourceGroupId: { required: true, - serializedName: "properties", + serializedName: "targetResourceGroupId", type: { - name: "Composite", - className: "TestFailoverCleanupInputProperties" + name: "String" } - } - } - } -}; - -export const TestFailoverInputProperties: msRest.CompositeMapper = { - serializedName: "TestFailoverInputProperties", - type: { - name: "Composite", - className: "TestFailoverInputProperties", - modelProperties: { - failoverDirection: { - serializedName: "failoverDirection", + }, + targetNetworkId: { + required: true, + serializedName: "targetNetworkId", type: { name: "String" } }, - networkType: { - serializedName: "networkType", + targetSubnetName: { + serializedName: "targetSubnetName", type: { name: "String" } }, - networkId: { - serializedName: "networkId", + targetAvailabilitySetId: { + serializedName: "targetAvailabilitySetId", type: { name: "String" } }, - skipTestFailoverCleanup: { - serializedName: "skipTestFailoverCleanup", + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", type: { name: "String" } }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", type: { - name: "Composite", - className: "ProviderSpecificFailoverInput" + name: "String" + } + }, + targetBootDiagnosticsStorageAccountId: { + serializedName: "targetBootDiagnosticsStorageAccountId", + type: { + name: "String" + } + }, + performAutoResync: { + serializedName: "performAutoResync", + type: { + name: "String" + } + }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + seedDiskTags: { + serializedName: "seedDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetDiskTags: { + serializedName: "targetDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetNicTags: { + serializedName: "targetNicTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const TestFailoverInput: msRest.CompositeMapper = { - serializedName: "TestFailoverInput", +export const VMwareCbtEventDetails: msRest.CompositeMapper = { + serializedName: "VMwareCbt", type: { name: "Composite", - className: "TestFailoverInput", + polymorphicDiscriminator: EventProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "EventProviderSpecificDetails", + className: "VMwareCbtEventDetails", modelProperties: { - properties: { - serializedName: "properties", + ...EventProviderSpecificDetails.type.modelProperties, + migrationItemName: { + readOnly: true, + serializedName: "migrationItemName", type: { - name: "Composite", - className: "TestFailoverInputProperties" + name: "String" } } } } }; -export const TestFailoverJobDetails: msRest.CompositeMapper = { - serializedName: "TestFailoverJobDetails", +export const VMwareCbtMigrateInput: msRest.CompositeMapper = { + serializedName: "VMwareCbt", type: { name: "Composite", - polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator, - uberParent: "JobDetails", - className: "TestFailoverJobDetails", + polymorphicDiscriminator: MigrateProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "MigrateProviderSpecificInput", + className: "VMwareCbtMigrateInput", modelProperties: { - ...JobDetails.type.modelProperties, - testFailoverStatus: { - serializedName: "testFailoverStatus", + ...MigrateProviderSpecificInput.type.modelProperties, + performShutdown: { + required: true, + serializedName: "performShutdown", + type: { + name: "String" + } + } + } + } +}; + +export const VMwareCbtProtectedDiskDetails: msRest.CompositeMapper = { + serializedName: "VMwareCbtProtectedDiskDetails", + type: { + name: "Composite", + className: "VMwareCbtProtectedDiskDetails", + modelProperties: { + diskId: { + readOnly: true, + serializedName: "diskId", + type: { + name: "String" + } + }, + diskName: { + readOnly: true, + serializedName: "diskName", type: { name: "String" } }, - comments: { - serializedName: "comments", + diskType: { + serializedName: "diskType", type: { name: "String" } }, - networkName: { - serializedName: "networkName", + diskPath: { + readOnly: true, + serializedName: "diskPath", type: { name: "String" } }, - networkFriendlyName: { - serializedName: "networkFriendlyName", + isOSDisk: { + readOnly: true, + serializedName: "isOSDisk", type: { name: "String" } }, - networkType: { - serializedName: "networkType", + capacityInBytes: { + readOnly: true, + serializedName: "capacityInBytes", + type: { + name: "Number" + } + }, + logStorageAccountId: { + readOnly: true, + serializedName: "logStorageAccountId", type: { name: "String" } }, - protectedItemDetails: { - serializedName: "protectedItemDetails", + logStorageAccountSasSecretName: { + readOnly: true, + serializedName: "logStorageAccountSasSecretName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FailoverReplicationProtectedItemDetails" - } - } + name: "String" } - } - } - } -}; - -export const UnplannedFailoverInputProperties: msRest.CompositeMapper = { - serializedName: "UnplannedFailoverInputProperties", - type: { - name: "Composite", - className: "UnplannedFailoverInputProperties", - modelProperties: { - failoverDirection: { - serializedName: "failoverDirection", + }, + diskEncryptionSetId: { + readOnly: true, + serializedName: "diskEncryptionSetId", type: { name: "String" } }, - sourceSiteOperations: { - serializedName: "sourceSiteOperations", + seedManagedDiskId: { + readOnly: true, + serializedName: "seedManagedDiskId", type: { name: "String" } }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + targetManagedDiskId: { + readOnly: true, + serializedName: "targetManagedDiskId", type: { - name: "Composite", - className: "ProviderSpecificFailoverInput" + name: "String" } - } - } - } -}; - -export const UnplannedFailoverInput: msRest.CompositeMapper = { - serializedName: "UnplannedFailoverInput", - type: { - name: "Composite", - className: "UnplannedFailoverInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + targetDiskName: { + serializedName: "targetDiskName", type: { - name: "Composite", - className: "UnplannedFailoverInputProperties" + name: "String" } } } } }; -export const UpdateMobilityServiceRequestProperties: msRest.CompositeMapper = { - serializedName: "UpdateMobilityServiceRequestProperties", +export const VMwareCbtNicDetails: msRest.CompositeMapper = { + serializedName: "VMwareCbtNicDetails", type: { name: "Composite", - className: "UpdateMobilityServiceRequestProperties", + className: "VMwareCbtNicDetails", modelProperties: { - runAsAccountId: { - serializedName: "runAsAccountId", + nicId: { + readOnly: true, + serializedName: "nicId", type: { name: "String" } - } - } - } -}; - -export const UpdateMobilityServiceRequest: msRest.CompositeMapper = { - serializedName: "UpdateMobilityServiceRequest", - type: { - name: "Composite", - className: "UpdateMobilityServiceRequest", - modelProperties: { - properties: { - serializedName: "properties", + }, + isPrimaryNic: { + serializedName: "isPrimaryNic", type: { - name: "Composite", - className: "UpdateMobilityServiceRequestProperties" + name: "String" } - } - } - } -}; - -export const UpdateNetworkMappingInputProperties: msRest.CompositeMapper = { - serializedName: "UpdateNetworkMappingInputProperties", - type: { - name: "Composite", - className: "UpdateNetworkMappingInputProperties", - modelProperties: { - recoveryFabricName: { - serializedName: "recoveryFabricName", + }, + sourceIPAddress: { + readOnly: true, + serializedName: "sourceIPAddress", type: { name: "String" } }, - recoveryNetworkId: { - serializedName: "recoveryNetworkId", + sourceIPAddressType: { + readOnly: true, + serializedName: "sourceIPAddressType", type: { name: "String" } }, - fabricSpecificDetails: { - serializedName: "fabricSpecificDetails", + sourceNetworkId: { + readOnly: true, + serializedName: "sourceNetworkId", type: { - name: "Composite", - className: "FabricSpecificUpdateNetworkMappingInput" + name: "String" } - } - } - } -}; - -export const UpdateNetworkMappingInput: msRest.CompositeMapper = { - serializedName: "UpdateNetworkMappingInput", - type: { - name: "Composite", - className: "UpdateNetworkMappingInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + targetIPAddress: { + serializedName: "targetIPAddress", type: { - name: "Composite", - className: "UpdateNetworkMappingInputProperties" + name: "String" } - } - } - } -}; - -export const UpdatePolicyInputProperties: msRest.CompositeMapper = { - serializedName: "UpdatePolicyInputProperties", - type: { - name: "Composite", - className: "UpdatePolicyInputProperties", - modelProperties: { - replicationProviderSettings: { - serializedName: "replicationProviderSettings", + }, + targetIPAddressType: { + serializedName: "targetIPAddressType", type: { - name: "Composite", - className: "PolicyProviderSpecificInput" + name: "String" } - } - } - } -}; - -export const UpdatePolicyInput: msRest.CompositeMapper = { - serializedName: "UpdatePolicyInput", - type: { - name: "Composite", - className: "UpdatePolicyInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + targetSubnetName: { + serializedName: "targetSubnetName", type: { - name: "Composite", - className: "UpdatePolicyInputProperties" + name: "String" } - } - } - } -}; - -export const UpdateProtectionContainerMappingInputProperties: msRest.CompositeMapper = { - serializedName: "UpdateProtectionContainerMappingInputProperties", - type: { - name: "Composite", - className: "UpdateProtectionContainerMappingInputProperties", - modelProperties: { - providerSpecificInput: { - serializedName: "providerSpecificInput", + }, + targetNicName: { + serializedName: "targetNicName", type: { - name: "Composite", - className: "ReplicationProviderSpecificUpdateContainerMappingInput" + name: "String" } - } - } - } -}; - -export const UpdateProtectionContainerMappingInput: msRest.CompositeMapper = { - serializedName: "UpdateProtectionContainerMappingInput", - type: { - name: "Composite", - className: "UpdateProtectionContainerMappingInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + isSelectedForMigration: { + serializedName: "isSelectedForMigration", type: { - name: "Composite", - className: "UpdateProtectionContainerMappingInputProperties" + name: "String" } } } } }; -export const UpdateRecoveryPlanInputProperties: msRest.CompositeMapper = { - serializedName: "UpdateRecoveryPlanInputProperties", +export const VMwareCbtMigrationDetails: msRest.CompositeMapper = { + serializedName: "VMwareCbt", type: { name: "Composite", - className: "UpdateRecoveryPlanInputProperties", + polymorphicDiscriminator: MigrationProviderSpecificSettings.type.polymorphicDiscriminator, + uberParent: "MigrationProviderSpecificSettings", + className: "VMwareCbtMigrationDetails", modelProperties: { - groups: { - serializedName: "groups", + ...MigrationProviderSpecificSettings.type.modelProperties, + vmwareMachineId: { + readOnly: true, + serializedName: "vmwareMachineId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecoveryPlanGroup" - } - } + name: "String" } - } - } - } -}; - -export const UpdateRecoveryPlanInput: msRest.CompositeMapper = { - serializedName: "UpdateRecoveryPlanInput", - type: { - name: "Composite", - className: "UpdateRecoveryPlanInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + osType: { + readOnly: true, + serializedName: "osType", + type: { + name: "String" + } + }, + firmwareType: { + readOnly: true, + serializedName: "firmwareType", + type: { + name: "String" + } + }, + targetGeneration: { + readOnly: true, + serializedName: "targetGeneration", + type: { + name: "String" + } + }, + licenseType: { + serializedName: "licenseType", type: { - name: "Composite", - className: "UpdateRecoveryPlanInputProperties" + name: "String" } - } - } - } -}; - -export const VMNicInputDetails: msRest.CompositeMapper = { - serializedName: "VMNicInputDetails", - type: { - name: "Composite", - className: "VMNicInputDetails", - modelProperties: { - nicId: { - serializedName: "nicId", + }, + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", type: { name: "String" } }, - recoveryVMSubnetName: { - serializedName: "recoveryVMSubnetName", + dataMoverRunAsAccountId: { + readOnly: true, + serializedName: "dataMoverRunAsAccountId", type: { name: "String" } }, - replicaNicStaticIPAddress: { - serializedName: "replicaNicStaticIPAddress", + snapshotRunAsAccountId: { + readOnly: true, + serializedName: "snapshotRunAsAccountId", type: { name: "String" } }, - selectionType: { - serializedName: "selectionType", + targetVmName: { + serializedName: "targetVmName", type: { name: "String" } }, - enableAcceleratedNetworkingOnRecovery: { - serializedName: "enableAcceleratedNetworkingOnRecovery", + targetVmSize: { + serializedName: "targetVmSize", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const UpdateReplicationProtectedItemInputProperties: msRest.CompositeMapper = { - serializedName: "UpdateReplicationProtectedItemInputProperties", - type: { - name: "Composite", - className: "UpdateReplicationProtectedItemInputProperties", - modelProperties: { - recoveryAzureVMName: { - serializedName: "recoveryAzureVMName", + }, + targetLocation: { + readOnly: true, + serializedName: "targetLocation", type: { name: "String" } }, - recoveryAzureVMSize: { - serializedName: "recoveryAzureVMSize", + targetResourceGroupId: { + serializedName: "targetResourceGroupId", type: { name: "String" } }, - selectedRecoveryAzureNetworkId: { - serializedName: "selectedRecoveryAzureNetworkId", + targetAvailabilitySetId: { + serializedName: "targetAvailabilitySetId", type: { name: "String" } }, - selectedSourceNicId: { - serializedName: "selectedSourceNicId", + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", type: { name: "String" } }, - enableRdpOnTargetOption: { - serializedName: "enableRdpOnTargetOption", + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", type: { name: "String" } }, - vmNics: { - serializedName: "vmNics", + targetBootDiagnosticsStorageAccountId: { + serializedName: "targetBootDiagnosticsStorageAccountId", + type: { + name: "String" + } + }, + targetVmTags: { + serializedName: "targetVmTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + protectedDisks: { + serializedName: "protectedDisks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VMNicInputDetails" + className: "VMwareCbtProtectedDiskDetails" } } } }, - licenseType: { - serializedName: "licenseType", + targetNetworkId: { + serializedName: "targetNetworkId", type: { name: "String" } }, - recoveryAvailabilitySetId: { - serializedName: "recoveryAvailabilitySetId", + vmNics: { + serializedName: "vmNics", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMwareCbtNicDetails" + } + } } }, - providerSpecificDetails: { - serializedName: "providerSpecificDetails", + targetNicTags: { + serializedName: "targetNicTags", type: { - name: "Composite", - className: "UpdateReplicationProtectedItemProviderInput" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const UpdateReplicationProtectedItemInput: msRest.CompositeMapper = { - serializedName: "UpdateReplicationProtectedItemInput", - type: { - name: "Composite", - className: "UpdateReplicationProtectedItemInput", - modelProperties: { - properties: { - serializedName: "properties", + }, + migrationRecoveryPointId: { + readOnly: true, + serializedName: "migrationRecoveryPointId", type: { - name: "Composite", - className: "UpdateReplicationProtectedItemInputProperties" + name: "String" } - } - } - } -}; - -export const UpdateVCenterRequestProperties: msRest.CompositeMapper = { - serializedName: "UpdateVCenterRequestProperties", - type: { - name: "Composite", - className: "UpdateVCenterRequestProperties", - modelProperties: { - friendlyName: { - serializedName: "friendlyName", + }, + lastRecoveryPointReceived: { + readOnly: true, + serializedName: "lastRecoveryPointReceived", type: { - name: "String" + name: "DateTime" } }, - ipAddress: { - serializedName: "ipAddress", + lastRecoveryPointId: { + readOnly: true, + serializedName: "lastRecoveryPointId", type: { name: "String" } }, - processServerId: { - serializedName: "processServerId", + initialSeedingProgressPercentage: { + readOnly: true, + serializedName: "initialSeedingProgressPercentage", type: { - name: "String" + name: "Number" } }, - port: { - serializedName: "port", + migrationProgressPercentage: { + readOnly: true, + serializedName: "migrationProgressPercentage", type: { - name: "String" + name: "Number" } }, - runAsAccountId: { - serializedName: "runAsAccountId", + resyncProgressPercentage: { + readOnly: true, + serializedName: "resyncProgressPercentage", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const UpdateVCenterRequest: msRest.CompositeMapper = { - serializedName: "UpdateVCenterRequest", - type: { - name: "Composite", - className: "UpdateVCenterRequest", - modelProperties: { - properties: { - serializedName: "properties", + }, + initialSeedingRetryCount: { + readOnly: true, + serializedName: "initialSeedingRetryCount", type: { - name: "Composite", - className: "UpdateVCenterRequestProperties" + name: "Number" } - } - } - } -}; - -export const VaultHealthProperties: msRest.CompositeMapper = { - serializedName: "VaultHealthProperties", - type: { - name: "Composite", - className: "VaultHealthProperties", - modelProperties: { - vaultErrors: { - serializedName: "vaultErrors", + }, + resyncRetryCount: { + readOnly: true, + serializedName: "resyncRetryCount", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthError" - } - } + name: "Number" } }, - protectedItemsHealth: { - serializedName: "protectedItemsHealth", + resyncRequired: { + readOnly: true, + serializedName: "resyncRequired", type: { - name: "Composite", - className: "ResourceHealthSummary" + name: "String" } }, - fabricsHealth: { - serializedName: "fabricsHealth", + resyncState: { + readOnly: true, + serializedName: "resyncState", type: { - name: "Composite", - className: "ResourceHealthSummary" + name: "String" } }, - containersHealth: { - serializedName: "containersHealth", + performAutoResync: { + serializedName: "performAutoResync", type: { - name: "Composite", - className: "ResourceHealthSummary" + name: "String" } - } - } - } -}; - -export const VaultHealthDetails: msRest.CompositeMapper = { - serializedName: "VaultHealthDetails", - type: { - name: "Composite", - className: "VaultHealthDetails", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + seedDiskTags: { + serializedName: "seedDiskTags", type: { - name: "Composite", - className: "VaultHealthProperties" + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetDiskTags: { + serializedName: "targetDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const VCenterProperties: msRest.CompositeMapper = { - serializedName: "VCenterProperties", +export const VMwareCbtNicInput: msRest.CompositeMapper = { + serializedName: "VMwareCbtNicInput", type: { name: "Composite", - className: "VCenterProperties", + className: "VMwareCbtNicInput", modelProperties: { - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - internalId: { - serializedName: "internalId", - type: { - name: "String" - } - }, - lastHeartbeat: { - serializedName: "lastHeartbeat", + nicId: { + required: true, + serializedName: "nicId", type: { - name: "DateTime" + name: "String" } }, - discoveryStatus: { - serializedName: "discoveryStatus", + isPrimaryNic: { + required: true, + serializedName: "isPrimaryNic", type: { name: "String" } }, - processServerId: { - serializedName: "processServerId", + targetSubnetName: { + serializedName: "targetSubnetName", type: { name: "String" } }, - ipAddress: { - serializedName: "ipAddress", + targetStaticIPAddress: { + serializedName: "targetStaticIPAddress", type: { name: "String" } }, - infrastructureId: { - serializedName: "infrastructureId", + isSelectedForMigration: { + serializedName: "isSelectedForMigration", type: { name: "String" } }, - port: { - serializedName: "port", + targetNicName: { + serializedName: "targetNicName", type: { name: "String" } - }, - runAsAccountId: { - serializedName: "runAsAccountId", + } + } + } +}; + +export const VMwareCbtPolicyCreationInput: msRest.CompositeMapper = { + serializedName: "VMwareCbt", + type: { + name: "Composite", + polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificInput", + className: "VMwareCbtPolicyCreationInput", + modelProperties: { + ...PolicyProviderSpecificInput.type.modelProperties, + recoveryPointHistoryInMinutes: { + serializedName: "recoveryPointHistoryInMinutes", type: { - name: "String" + name: "Number" } }, - fabricArmResourceName: { - serializedName: "fabricArmResourceName", + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", type: { - name: "String" + name: "Number" } }, - healthErrors: { - serializedName: "healthErrors", + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthError" - } - } + name: "Number" } } } } }; -export const VCenter: msRest.CompositeMapper = { - serializedName: "VCenter", +export const VmwareCbtPolicyDetails: msRest.CompositeMapper = { + serializedName: "VMwareCbt", type: { name: "Composite", - className: "VCenter", + polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "PolicyProviderSpecificDetails", + className: "VmwareCbtPolicyDetails", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...PolicyProviderSpecificDetails.type.modelProperties, + recoveryPointHistoryInMinutes: { + serializedName: "recoveryPointHistoryInMinutes", type: { - name: "Composite", - className: "VCenterProperties" + name: "Number" + } + }, + appConsistentFrequencyInMinutes: { + serializedName: "appConsistentFrequencyInMinutes", + type: { + name: "Number" + } + }, + crashConsistentFrequencyInMinutes: { + serializedName: "crashConsistentFrequencyInMinutes", + type: { + name: "Number" } } } } }; -export const VirtualMachineTaskDetails: msRest.CompositeMapper = { - serializedName: "VirtualMachineTaskDetails", +export const VMwareCbtProtectionContainerMappingDetails: msRest.CompositeMapper = { + serializedName: "VMwareCbt", type: { name: "Composite", - polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, - uberParent: "TaskTypeDetails", - className: "VirtualMachineTaskDetails", + polymorphicDiscriminator: ProtectionContainerMappingProviderSpecificDetails.type.polymorphicDiscriminator, + uberParent: "ProtectionContainerMappingProviderSpecificDetails", + className: "VMwareCbtProtectionContainerMappingDetails", modelProperties: { - ...TaskTypeDetails.type.modelProperties, - skippedReason: { - serializedName: "skippedReason", + ...ProtectionContainerMappingProviderSpecificDetails.type.modelProperties, + keyVaultId: { + readOnly: true, + serializedName: "keyVaultId", type: { name: "String" } }, - skippedReasonString: { - serializedName: "skippedReasonString", + keyVaultUri: { + readOnly: true, + serializedName: "keyVaultUri", type: { name: "String" } }, - jobTask: { - serializedName: "jobTask", + storageAccountId: { + readOnly: true, + serializedName: "storageAccountId", type: { - name: "Composite", - className: "JobEntity" + name: "String" + } + }, + storageAccountSasSecretName: { + readOnly: true, + serializedName: "storageAccountSasSecretName", + type: { + name: "String" + } + }, + serviceBusConnectionStringSecretName: { + readOnly: true, + serializedName: "serviceBusConnectionStringSecretName", + type: { + name: "String" + } + }, + targetLocation: { + readOnly: true, + serializedName: "targetLocation", + type: { + name: "String" } } } } }; -export const VmmDetails: msRest.CompositeMapper = { - serializedName: "VMM", - type: { - name: "Composite", - polymorphicDiscriminator: FabricSpecificDetails.type.polymorphicDiscriminator, - uberParent: "FabricSpecificDetails", - className: "VmmDetails", - modelProperties: { - ...FabricSpecificDetails.type.modelProperties - } - } -}; - -export const VmmToAzureCreateNetworkMappingInput: msRest.CompositeMapper = { - serializedName: "VmmToAzure", - type: { - name: "Composite", - polymorphicDiscriminator: FabricSpecificCreateNetworkMappingInput.type.polymorphicDiscriminator, - uberParent: "FabricSpecificCreateNetworkMappingInput", - className: "VmmToAzureCreateNetworkMappingInput", - modelProperties: { - ...FabricSpecificCreateNetworkMappingInput.type.modelProperties - } - } -}; - -export const VmmToAzureNetworkMappingSettings: msRest.CompositeMapper = { - serializedName: "VmmToAzure", - type: { - name: "Composite", - polymorphicDiscriminator: NetworkMappingFabricSpecificSettings.type.polymorphicDiscriminator, - uberParent: "NetworkMappingFabricSpecificSettings", - className: "VmmToAzureNetworkMappingSettings", - modelProperties: { - ...NetworkMappingFabricSpecificSettings.type.modelProperties - } - } -}; - -export const VmmToAzureUpdateNetworkMappingInput: msRest.CompositeMapper = { - serializedName: "VmmToAzure", - type: { - name: "Composite", - polymorphicDiscriminator: FabricSpecificUpdateNetworkMappingInput.type.polymorphicDiscriminator, - uberParent: "FabricSpecificUpdateNetworkMappingInput", - className: "VmmToAzureUpdateNetworkMappingInput", - modelProperties: { - ...FabricSpecificUpdateNetworkMappingInput.type.modelProperties - } - } -}; - -export const VmmToVmmCreateNetworkMappingInput: msRest.CompositeMapper = { - serializedName: "VmmToVmm", +export const VMwareCbtResyncInput: msRest.CompositeMapper = { + serializedName: "VMwareCbt", type: { name: "Composite", - polymorphicDiscriminator: FabricSpecificCreateNetworkMappingInput.type.polymorphicDiscriminator, - uberParent: "FabricSpecificCreateNetworkMappingInput", - className: "VmmToVmmCreateNetworkMappingInput", + polymorphicDiscriminator: ResyncProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "ResyncProviderSpecificInput", + className: "VMwareCbtResyncInput", modelProperties: { - ...FabricSpecificCreateNetworkMappingInput.type.modelProperties + ...ResyncProviderSpecificInput.type.modelProperties, + skipCbtReset: { + required: true, + serializedName: "skipCbtReset", + type: { + name: "String" + } + } } } }; -export const VmmToVmmNetworkMappingSettings: msRest.CompositeMapper = { - serializedName: "VmmToVmm", +export const VMwareCbtTestMigrateInput: msRest.CompositeMapper = { + serializedName: "VMwareCbt", type: { name: "Composite", - polymorphicDiscriminator: NetworkMappingFabricSpecificSettings.type.polymorphicDiscriminator, - uberParent: "NetworkMappingFabricSpecificSettings", - className: "VmmToVmmNetworkMappingSettings", + polymorphicDiscriminator: TestMigrateProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "TestMigrateProviderSpecificInput", + className: "VMwareCbtTestMigrateInput", modelProperties: { - ...NetworkMappingFabricSpecificSettings.type.modelProperties + ...TestMigrateProviderSpecificInput.type.modelProperties, + recoveryPointId: { + required: true, + serializedName: "recoveryPointId", + type: { + name: "String" + } + }, + networkId: { + required: true, + serializedName: "networkId", + type: { + name: "String" + } + } } } }; -export const VmmToVmmUpdateNetworkMappingInput: msRest.CompositeMapper = { - serializedName: "VmmToVmm", +export const VMwareCbtUpdateDiskInput: msRest.CompositeMapper = { + serializedName: "VMwareCbtUpdateDiskInput", type: { name: "Composite", - polymorphicDiscriminator: FabricSpecificUpdateNetworkMappingInput.type.polymorphicDiscriminator, - uberParent: "FabricSpecificUpdateNetworkMappingInput", - className: "VmmToVmmUpdateNetworkMappingInput", + className: "VMwareCbtUpdateDiskInput", modelProperties: { - ...FabricSpecificUpdateNetworkMappingInput.type.modelProperties + diskId: { + required: true, + serializedName: "diskId", + type: { + name: "String" + } + }, + targetDiskName: { + serializedName: "targetDiskName", + type: { + name: "String" + } + } } } }; -export const VmmVirtualMachineDetails: msRest.CompositeMapper = { - serializedName: "VmmVirtualMachine", +export const VMwareCbtUpdateMigrationItemInput: msRest.CompositeMapper = { + serializedName: "VMwareCbt", type: { name: "Composite", - polymorphicDiscriminator: ConfigurationSettings.type.polymorphicDiscriminator, - uberParent: "ConfigurationSettings", - className: "VmmVirtualMachineDetails", + polymorphicDiscriminator: UpdateMigrationItemProviderSpecificInput.type.polymorphicDiscriminator, + uberParent: "UpdateMigrationItemProviderSpecificInput", + className: "VMwareCbtUpdateMigrationItemInput", modelProperties: { - ...ConfigurationSettings.type.modelProperties, - sourceItemId: { - serializedName: "sourceItemId", - type: { - name: "String" - } - }, - generation: { - serializedName: "generation", + ...UpdateMigrationItemProviderSpecificInput.type.modelProperties, + targetVmName: { + serializedName: "targetVmName", type: { name: "String" } }, - osDetails: { - serializedName: "osDetails", - type: { - name: "Composite", - className: "OSDetails" - } - }, - diskDetails: { - serializedName: "diskDetails", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskDetails" - } - } - } - }, - hasPhysicalDisk: { - serializedName: "hasPhysicalDisk", + targetVmSize: { + serializedName: "targetVmSize", type: { name: "String" } }, - hasFibreChannelAdapter: { - serializedName: "hasFibreChannelAdapter", + targetResourceGroupId: { + serializedName: "targetResourceGroupId", type: { name: "String" } }, - hasSharedVhd: { - serializedName: "hasSharedVhd", + targetAvailabilitySetId: { + serializedName: "targetAvailabilitySetId", type: { name: "String" } - } - } - } -}; - -export const VmNicUpdatesTaskDetails: msRest.CompositeMapper = { - serializedName: "VmNicUpdatesTaskDetails", - type: { - name: "Composite", - polymorphicDiscriminator: TaskTypeDetails.type.polymorphicDiscriminator, - uberParent: "TaskTypeDetails", - className: "VmNicUpdatesTaskDetails", - modelProperties: { - ...TaskTypeDetails.type.modelProperties, - vmId: { - serializedName: "vmId", + }, + targetAvailabilityZone: { + serializedName: "targetAvailabilityZone", type: { name: "String" } }, - nicId: { - serializedName: "nicId", + targetProximityPlacementGroupId: { + serializedName: "targetProximityPlacementGroupId", type: { name: "String" } }, - name: { - serializedName: "name", + targetBootDiagnosticsStorageAccountId: { + serializedName: "targetBootDiagnosticsStorageAccountId", type: { name: "String" } - } - } - } -}; - -export const VMwareCbtPolicyCreationInput: msRest.CompositeMapper = { - serializedName: "VMwareCbt", - type: { - name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificInput.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificInput", - className: "VMwareCbtPolicyCreationInput", - modelProperties: { - ...PolicyProviderSpecificInput.type.modelProperties, - recoveryPointHistory: { - serializedName: "recoveryPointHistory", + }, + targetNetworkId: { + serializedName: "targetNetworkId", type: { - name: "Number" + name: "String" } }, - crashConsistentFrequencyInMinutes: { - serializedName: "crashConsistentFrequencyInMinutes", + vmNics: { + serializedName: "vmNics", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMwareCbtNicInput" + } + } } }, - appConsistentFrequencyInMinutes: { - serializedName: "appConsistentFrequencyInMinutes", + vmDisks: { + serializedName: "vmDisks", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VMwareCbtUpdateDiskInput" + } + } } - } - } - } -}; - -export const VmwareCbtPolicyDetails: msRest.CompositeMapper = { - serializedName: "VMwareCbt", - type: { - name: "Composite", - polymorphicDiscriminator: PolicyProviderSpecificDetails.type.polymorphicDiscriminator, - uberParent: "PolicyProviderSpecificDetails", - className: "VmwareCbtPolicyDetails", - modelProperties: { - ...PolicyProviderSpecificDetails.type.modelProperties, - recoveryPointThresholdInMinutes: { - serializedName: "recoveryPointThresholdInMinutes", + }, + licenseType: { + serializedName: "licenseType", type: { - name: "Number" + name: "String" } }, - recoveryPointHistory: { - serializedName: "recoveryPointHistory", + sqlServerLicenseType: { + serializedName: "sqlServerLicenseType", type: { - name: "Number" + name: "String" } }, - appConsistentFrequencyInMinutes: { - serializedName: "appConsistentFrequencyInMinutes", + performAutoResync: { + serializedName: "performAutoResync", type: { - name: "Number" + name: "String" } }, - crashConsistentFrequencyInMinutes: { - serializedName: "crashConsistentFrequencyInMinutes", + targetVmTags: { + serializedName: "targetVmTags", type: { - name: "Number" + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetDiskTags: { + serializedName: "targetDiskTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetNicTags: { + serializedName: "targetNicTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } @@ -11674,14 +20241,21 @@ export const VMwareV2FabricCreationInput: msRest.CompositeMapper = { className: "VMwareV2FabricCreationInput", modelProperties: { ...FabricSpecificCreationInput.type.modelProperties, - keyVaultUrl: { - serializedName: "keyVaultUrl", + vmwareSiteId: { + serializedName: "vmwareSiteId", type: { name: "String" } }, - keyVaultResourceArmId: { - serializedName: "keyVaultResourceArmId", + physicalSiteId: { + serializedName: "physicalSiteId", + type: { + name: "String" + } + }, + migrationSolutionId: { + required: true, + serializedName: "migrationSolutionId", type: { name: "String" } @@ -11699,29 +20273,60 @@ export const VMwareV2FabricSpecificDetails: msRest.CompositeMapper = { className: "VMwareV2FabricSpecificDetails", modelProperties: { ...FabricSpecificDetails.type.modelProperties, - srsServiceEndpoint: { - serializedName: "srsServiceEndpoint", + vmwareSiteId: { + readOnly: true, + serializedName: "vmwareSiteId", type: { name: "String" } }, - rcmServiceEndpoint: { - serializedName: "rcmServiceEndpoint", + physicalSiteId: { + readOnly: true, + serializedName: "physicalSiteId", type: { name: "String" } }, - keyVaultUrl: { - serializedName: "keyVaultUrl", + migrationSolutionId: { + readOnly: true, + serializedName: "migrationSolutionId", type: { name: "String" } }, - keyVaultResourceArmId: { - serializedName: "keyVaultResourceArmId", + serviceEndpoint: { + readOnly: true, + serializedName: "serviceEndpoint", + type: { + name: "String" + } + }, + serviceResourceId: { + readOnly: true, + serializedName: "serviceResourceId", + type: { + name: "String" + } + }, + serviceContainerId: { + readOnly: true, + serializedName: "serviceContainerId", type: { name: "String" } + }, + processServers: { + readOnly: true, + serializedName: "processServers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProcessServerDetails" + } + } + } } } } @@ -12036,6 +20641,62 @@ export const ProtectionContainerCollection: msRest.CompositeMapper = { } }; +export const MigrationItemCollection: msRest.CompositeMapper = { + serializedName: "MigrationItemCollection", + type: { + name: "Composite", + className: "MigrationItemCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MigrationItem" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const MigrationRecoveryPointCollection: msRest.CompositeMapper = { + serializedName: "MigrationRecoveryPointCollection", + type: { + name: "Composite", + className: "MigrationRecoveryPointCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MigrationRecoveryPoint" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ProtectableItemCollection: msRest.CompositeMapper = { serializedName: "ProtectableItemCollection", type: { @@ -12344,6 +21005,34 @@ export const PolicyCollection: msRest.CompositeMapper = { } }; +export const ReplicationProtectionIntentCollection: msRest.CompositeMapper = { + serializedName: "ReplicationProtectionIntentCollection", + type: { + name: "Composite", + className: "ReplicationProtectionIntentCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationProtectionIntent" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const RecoveryPlanCollection: msRest.CompositeMapper = { serializedName: "RecoveryPlanCollection", type: { @@ -12372,22 +21061,67 @@ export const RecoveryPlanCollection: msRest.CompositeMapper = { } }; +export const VaultSettingCollection: msRest.CompositeMapper = { + serializedName: "VaultSettingCollection", + type: { + name: "Composite", + className: "VaultSettingCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultSetting" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const discriminators = { + 'AddDisksProviderSpecificInput.A2A' : A2AAddDisksInput, 'ApplyRecoveryPointProviderSpecificInput.A2A' : A2AApplyRecoveryPointInput, 'ReplicationProviderSpecificContainerCreationInput.A2A' : A2AContainerCreationInput, 'ReplicationProviderSpecificContainerMappingInput.A2A' : A2AContainerMappingInput, + 'ProtectionProfileCustomDetails' : ProtectionProfileCustomDetails, + 'StorageAccountCustomDetails' : StorageAccountCustomDetails, + 'RecoveryAvailabilitySetCustomDetails' : RecoveryAvailabilitySetCustomDetails, + 'RecoveryVirtualNetworkCustomDetails' : RecoveryVirtualNetworkCustomDetails, + 'RecoveryProximityPlacementGroupCustomDetails' : RecoveryProximityPlacementGroupCustomDetails, + 'RecoveryResourceGroupCustomDetails' : RecoveryResourceGroupCustomDetails, + 'CreateProtectionIntentProviderSpecificDetails.A2A' : A2ACreateProtectionIntentInput, + 'ApplyRecoveryPointProviderSpecificInput.A2ACrossClusterMigration' : A2ACrossClusterMigrationApplyRecoveryPointInput, + 'ReplicationProviderSpecificContainerCreationInput.A2ACrossClusterMigration' : A2ACrossClusterMigrationContainerCreationInput, + 'EnableProtectionProviderSpecificInput.A2ACrossClusterMigration' : A2ACrossClusterMigrationEnableProtectionInput, + 'PolicyProviderSpecificInput.A2ACrossClusterMigration' : A2ACrossClusterMigrationPolicyCreationInput, + 'ReplicationProviderSpecificSettings.A2ACrossClusterMigration' : A2ACrossClusterMigrationReplicationDetails, 'EnableProtectionProviderSpecificInput.A2A' : A2AEnableProtectionInput, 'EventProviderSpecificDetails.A2A' : A2AEventDetails, - 'ProviderSpecificFailoverInput.A2A' : A2AFailoverProviderInput, 'PolicyProviderSpecificInput.A2A' : A2APolicyCreationInput, 'PolicyProviderSpecificDetails.A2A' : A2APolicyDetails, 'ProtectionContainerMappingProviderSpecificDetails.A2A' : A2AProtectionContainerMappingDetails, 'ProviderSpecificRecoveryPointDetails.A2A' : A2ARecoveryPointDetails, + 'RemoveDisksProviderSpecificInput.A2A' : A2ARemoveDisksInput, 'ReplicationProviderSpecificSettings.A2A' : A2AReplicationDetails, + 'ReplicationProtectionIntentProviderSpecificSettings.A2A' : A2AReplicationIntentDetails, 'ReverseReplicationProviderSpecificInput.A2A' : A2AReprotectInput, 'SwitchProtectionProviderSpecificInput.A2A' : A2ASwitchProtectionInput, + 'TestFailoverProviderSpecificInput.A2A' : A2ATestFailoverInput, + 'UnplannedFailoverProviderSpecificInput.A2A' : A2AUnplannedFailoverInput, 'ReplicationProviderSpecificUpdateContainerMappingInput.A2A' : A2AUpdateContainerMappingInput, 'UpdateReplicationProtectedItemProviderInput.A2A' : A2AUpdateReplicationProtectedItemInput, + 'AddDisksProviderSpecificInput' : AddDisksProviderSpecificInput, 'ApplyRecoveryPointProviderSpecificInput' : ApplyRecoveryPointProviderSpecificInput, 'JobDetails.AsrJobDetails' : AsrJobDetails, 'TaskTypeDetails' : TaskTypeDetails, @@ -12404,11 +21138,20 @@ export const discriminators = { 'PolicyProviderSpecificInput' : PolicyProviderSpecificInput, 'ReplicationProviderSpecificContainerCreationInput' : ReplicationProviderSpecificContainerCreationInput, 'ReplicationProviderSpecificContainerMappingInput' : ReplicationProviderSpecificContainerMappingInput, + 'CreateProtectionIntentProviderSpecificDetails' : CreateProtectionIntentProviderSpecificDetails, 'RecoveryPlanActionDetails' : RecoveryPlanActionDetails, + 'RecoveryPlanProviderSpecificInput' : RecoveryPlanProviderSpecificInput, 'DisableProtectionProviderSpecificInput' : DisableProtectionProviderSpecificInput, + 'EnableMigrationProviderSpecificInput' : EnableMigrationProviderSpecificInput, 'EnableProtectionProviderSpecificInput' : EnableProtectionProviderSpecificInput, 'EventProviderSpecificDetails' : EventProviderSpecificDetails, 'EventSpecificDetails' : EventSpecificDetails, + 'ProtectionProfileCustomDetails.Existing' : ExistingProtectionProfile, + 'RecoveryAvailabilitySetCustomDetails.Existing' : ExistingRecoveryAvailabilitySet, + 'RecoveryProximityPlacementGroupCustomDetails.Existing' : ExistingRecoveryProximityPlacementGroup, + 'RecoveryResourceGroupCustomDetails.Existing' : ExistingRecoveryRecoveryResourceGroup, + 'RecoveryVirtualNetworkCustomDetails.Existing' : ExistingRecoveryVirtualNetwork, + 'StorageAccountCustomDetails.Existing' : ExistingStorageAccount, 'JobDetails.ExportJobDetails' : ExportJobDetails, 'FabricSpecificDetails' : FabricSpecificDetails, 'FabricSpecificCreationInput' : FabricSpecificCreationInput, @@ -12420,12 +21163,14 @@ export const discriminators = { 'ApplyRecoveryPointProviderSpecificInput.HyperVReplicaAzure' : HyperVReplicaAzureApplyRecoveryPointInput, 'EnableProtectionProviderSpecificInput.HyperVReplicaAzure' : HyperVReplicaAzureEnableProtectionInput, 'EventProviderSpecificDetails.HyperVReplicaAzure' : HyperVReplicaAzureEventDetails, - 'ProviderSpecificFailoverInput.HyperVReplicaAzureFailback' : HyperVReplicaAzureFailbackProviderInput, - 'ProviderSpecificFailoverInput.HyperVReplicaAzure' : HyperVReplicaAzureFailoverProviderInput, + 'PlannedFailoverProviderSpecificFailoverInput.HyperVReplicaAzureFailback' : HyperVReplicaAzureFailbackProviderInput, + 'PlannedFailoverProviderSpecificFailoverInput.HyperVReplicaAzure' : HyperVReplicaAzurePlannedFailoverProviderInput, 'PolicyProviderSpecificDetails.HyperVReplicaAzure' : HyperVReplicaAzurePolicyDetails, 'PolicyProviderSpecificInput.HyperVReplicaAzure' : HyperVReplicaAzurePolicyInput, 'ReplicationProviderSpecificSettings.HyperVReplicaAzure' : HyperVReplicaAzureReplicationDetails, 'ReverseReplicationProviderSpecificInput.HyperVReplicaAzure' : HyperVReplicaAzureReprotectInput, + 'TestFailoverProviderSpecificInput.HyperVReplicaAzure' : HyperVReplicaAzureTestFailoverInput, + 'UnplannedFailoverProviderSpecificInput.HyperVReplicaAzure' : HyperVReplicaAzureUnplannedFailoverInput, 'UpdateReplicationProtectedItemProviderInput.HyperVReplicaAzure' : HyperVReplicaAzureUpdateReplicationProtectedItemInput, 'EventProviderSpecificDetails.HyperVReplicaBaseEventDetails' : HyperVReplicaBaseEventDetails, 'PolicyProviderSpecificDetails.HyperVReplicaBasePolicyDetails' : HyperVReplicaBasePolicyDetails, @@ -12442,51 +21187,90 @@ export const discriminators = { 'ApplyRecoveryPointProviderSpecificInput.InMageAzureV2' : InMageAzureV2ApplyRecoveryPointInput, 'EnableProtectionProviderSpecificInput.InMageAzureV2' : InMageAzureV2EnableProtectionInput, 'EventProviderSpecificDetails.InMageAzureV2' : InMageAzureV2EventDetails, - 'ProviderSpecificFailoverInput.InMageAzureV2' : InMageAzureV2FailoverProviderInput, 'PolicyProviderSpecificDetails.InMageAzureV2' : InMageAzureV2PolicyDetails, 'PolicyProviderSpecificInput.InMageAzureV2' : InMageAzureV2PolicyInput, 'ProviderSpecificRecoveryPointDetails.InMageAzureV2' : InMageAzureV2RecoveryPointDetails, 'ReplicationProviderSpecificSettings.InMageAzureV2' : InMageAzureV2ReplicationDetails, 'ReverseReplicationProviderSpecificInput.InMageAzureV2' : InMageAzureV2ReprotectInput, + 'TestFailoverProviderSpecificInput.InMageAzureV2' : InMageAzureV2TestFailoverInput, + 'UnplannedFailoverProviderSpecificInput.InMageAzureV2' : InMageAzureV2UnplannedFailoverInput, 'UpdateReplicationProtectedItemProviderInput.InMageAzureV2' : InMageAzureV2UpdateReplicationProtectedItemInput, 'PolicyProviderSpecificDetails.InMageBasePolicyDetails' : InMageBasePolicyDetails, 'DisableProtectionProviderSpecificInput.InMage' : InMageDisableProtectionProviderSpecificInput, 'EnableProtectionProviderSpecificInput.InMage' : InMageEnableProtectionInput, - 'ProviderSpecificFailoverInput.InMage' : InMageFailoverProviderInput, 'PolicyProviderSpecificDetails.InMage' : InMagePolicyDetails, 'PolicyProviderSpecificInput.InMage' : InMagePolicyInput, + 'ApplyRecoveryPointProviderSpecificInput.InMageRcm' : InMageRcmApplyRecoveryPointInput, + 'EnableProtectionProviderSpecificInput.InMageRcm' : InMageRcmEnableProtectionInput, + 'EventProviderSpecificDetails.InMageRcm' : InMageRcmEventDetails, + 'FabricSpecificCreationInput.InMageRcm' : InMageRcmFabricCreationInput, + 'FabricSpecificDetails.InMageRcm' : InMageRcmFabricSpecificDetails, + 'EventProviderSpecificDetails.InMageRcmFailback' : InMageRcmFailbackEventDetails, + 'PlannedFailoverProviderSpecificFailoverInput.InMageRcmFailback' : InMageRcmFailbackPlannedFailoverProviderInput, + 'PolicyProviderSpecificInput.InMageRcmFailback' : InMageRcmFailbackPolicyCreationInput, + 'PolicyProviderSpecificDetails.InMageRcmFailback' : InMageRcmFailbackPolicyDetails, + 'ReplicationProviderSpecificSettings.InMageRcmFailback' : InMageRcmFailbackReplicationDetails, + 'ReverseReplicationProviderSpecificInput.InMageRcmFailback' : InMageRcmFailbackReprotectInput, + 'PolicyProviderSpecificInput.InMageRcm' : InMageRcmPolicyCreationInput, + 'PolicyProviderSpecificDetails.InMageRcm' : InMageRcmPolicyDetails, + 'ProtectionContainerMappingProviderSpecificDetails.InMageRcm' : InMageRcmProtectionContainerMappingDetails, + 'ProviderSpecificRecoveryPointDetails.InMageRcm' : InMageRcmRecoveryPointDetails, + 'ReplicationProviderSpecificSettings.InMageRcm' : InMageRcmReplicationDetails, + 'ReverseReplicationProviderSpecificInput.InMageRcm' : InMageRcmReprotectInput, + 'TestFailoverProviderSpecificInput.InMageRcm' : InMageRcmTestFailoverInput, + 'UnplannedFailoverProviderSpecificInput.InMageRcm' : InMageRcmUnplannedFailoverInput, + 'UpdateApplianceForReplicationProtectedItemProviderSpecificInput.InMageRcm' : InMageRcmUpdateApplianceForReplicationProtectedItemInput, + 'ReplicationProviderSpecificUpdateContainerMappingInput.InMageRcm' : InMageRcmUpdateContainerMappingInput, + 'UpdateReplicationProtectedItemProviderInput.InMageRcm' : InMageRcmUpdateReplicationProtectedItemInput, 'ReplicationProviderSpecificSettings.InMage' : InMageReplicationDetails, 'ReverseReplicationProviderSpecificInput.InMage' : InMageReprotectInput, + 'TestFailoverProviderSpecificInput.InMage' : InMageTestFailoverInput, + 'UnplannedFailoverProviderSpecificInput.InMage' : InMageUnplannedFailoverInput, 'JobDetails' : JobDetails, 'EventSpecificDetails.JobStatus' : JobStatusEventDetails, 'TaskTypeDetails.JobTaskDetails' : JobTaskDetails, 'TaskTypeDetails.ManualActionTaskDetails' : ManualActionTaskDetails, + 'MigrateProviderSpecificInput' : MigrateProviderSpecificInput, + 'MigrationProviderSpecificSettings' : MigrationProviderSpecificSettings, 'NetworkMappingFabricSpecificSettings' : NetworkMappingFabricSpecificSettings, - 'ProviderSpecificFailoverInput' : ProviderSpecificFailoverInput, + 'ProtectionProfileCustomDetails.New' : NewProtectionProfile, + 'RecoveryVirtualNetworkCustomDetails.New' : NewRecoveryVirtualNetwork, + 'PlannedFailoverProviderSpecificFailoverInput' : PlannedFailoverProviderSpecificFailoverInput, 'PolicyProviderSpecificDetails' : PolicyProviderSpecificDetails, 'ProtectionContainerMappingProviderSpecificDetails' : ProtectionContainerMappingProviderSpecificDetails, 'ProviderSpecificRecoveryPointDetails' : ProviderSpecificRecoveryPointDetails, - 'PolicyProviderSpecificDetails.RcmAzureMigration' : RcmAzureMigrationPolicyDetails, + 'RecoveryPlanProviderSpecificDetails' : RecoveryPlanProviderSpecificDetails, + 'RecoveryPlanProviderSpecificDetails.A2A' : RecoveryPlanA2ADetails, 'RecoveryPlanProviderSpecificFailoverInput.A2A' : RecoveryPlanA2AFailoverInput, + 'RecoveryPlanProviderSpecificInput.A2A' : RecoveryPlanA2AInput, 'RecoveryPlanActionDetails.AutomationRunbookActionDetails' : RecoveryPlanAutomationRunbookActionDetails, 'GroupTaskDetails.RecoveryPlanGroupTaskDetails' : RecoveryPlanGroupTaskDetails, 'RecoveryPlanProviderSpecificFailoverInput.HyperVReplicaAzureFailback' : RecoveryPlanHyperVReplicaAzureFailbackInput, 'RecoveryPlanProviderSpecificFailoverInput.HyperVReplicaAzure' : RecoveryPlanHyperVReplicaAzureFailoverInput, 'RecoveryPlanProviderSpecificFailoverInput.InMageAzureV2' : RecoveryPlanInMageAzureV2FailoverInput, 'RecoveryPlanProviderSpecificFailoverInput.InMage' : RecoveryPlanInMageFailoverInput, + 'RecoveryPlanProviderSpecificFailoverInput.InMageRcmFailback' : RecoveryPlanInMageRcmFailbackFailoverInput, + 'RecoveryPlanProviderSpecificFailoverInput.InMageRcm' : RecoveryPlanInMageRcmFailoverInput, 'RecoveryPlanActionDetails.ManualActionDetails' : RecoveryPlanManualActionDetails, 'RecoveryPlanProviderSpecificFailoverInput' : RecoveryPlanProviderSpecificFailoverInput, 'RecoveryPlanActionDetails.ScriptActionDetails' : RecoveryPlanScriptActionDetails, 'GroupTaskDetails.RecoveryPlanShutdownGroupTaskDetails' : RecoveryPlanShutdownGroupTaskDetails, + 'RemoveDisksProviderSpecificInput' : RemoveDisksProviderSpecificInput, 'ConfigurationSettings.ReplicationGroupDetails' : ReplicationGroupDetails, 'ReplicationProviderSpecificSettings' : ReplicationProviderSpecificSettings, + 'ReplicationProtectionIntentProviderSpecificSettings' : ReplicationProtectionIntentProviderSpecificSettings, 'ReplicationProviderSpecificUpdateContainerMappingInput' : ReplicationProviderSpecificUpdateContainerMappingInput, + 'ResyncProviderSpecificInput' : ResyncProviderSpecificInput, 'ReverseReplicationProviderSpecificInput' : ReverseReplicationProviderSpecificInput, - 'EnableProtectionProviderSpecificInput.San' : SanEnableProtectionInput, 'TaskTypeDetails.ScriptActionTaskDetails' : ScriptActionTaskDetails, 'SwitchProtectionProviderSpecificInput' : SwitchProtectionProviderSpecificInput, 'JobDetails.SwitchProtectionJobDetails' : SwitchProtectionJobDetails, + 'TestFailoverProviderSpecificInput' : TestFailoverProviderSpecificInput, 'JobDetails.TestFailoverJobDetails' : TestFailoverJobDetails, + 'TestMigrateProviderSpecificInput' : TestMigrateProviderSpecificInput, + 'UnplannedFailoverProviderSpecificInput' : UnplannedFailoverProviderSpecificInput, + 'UpdateApplianceForReplicationProtectedItemProviderSpecificInput' : UpdateApplianceForReplicationProtectedItemProviderSpecificInput, + 'UpdateMigrationItemProviderSpecificInput' : UpdateMigrationItemProviderSpecificInput, 'UpdateReplicationProtectedItemProviderInput' : UpdateReplicationProtectedItemProviderInput, 'TaskTypeDetails.VirtualMachineTaskDetails' : VirtualMachineTaskDetails, 'FabricSpecificDetails.VMM' : VmmDetails, @@ -12498,10 +21282,21 @@ export const discriminators = { 'FabricSpecificUpdateNetworkMappingInput.VmmToVmm' : VmmToVmmUpdateNetworkMappingInput, 'ConfigurationSettings.VmmVirtualMachine' : VmmVirtualMachineDetails, 'TaskTypeDetails.VmNicUpdatesTaskDetails' : VmNicUpdatesTaskDetails, + 'ReplicationProviderSpecificContainerCreationInput.VMwareCbt' : VMwareCbtContainerCreationInput, + 'ReplicationProviderSpecificContainerMappingInput.VMwareCbt' : VMwareCbtContainerMappingInput, + 'EnableMigrationProviderSpecificInput.VMwareCbt' : VMwareCbtEnableMigrationInput, + 'EventProviderSpecificDetails.VMwareCbt' : VMwareCbtEventDetails, + 'MigrateProviderSpecificInput.VMwareCbt' : VMwareCbtMigrateInput, + 'MigrationProviderSpecificSettings.VMwareCbt' : VMwareCbtMigrationDetails, 'PolicyProviderSpecificInput.VMwareCbt' : VMwareCbtPolicyCreationInput, 'PolicyProviderSpecificDetails.VMwareCbt' : VmwareCbtPolicyDetails, + 'ProtectionContainerMappingProviderSpecificDetails.VMwareCbt' : VMwareCbtProtectionContainerMappingDetails, + 'ResyncProviderSpecificInput.VMwareCbt' : VMwareCbtResyncInput, + 'TestMigrateProviderSpecificInput.VMwareCbt' : VMwareCbtTestMigrateInput, + 'UpdateMigrationItemProviderSpecificInput.VMwareCbt' : VMwareCbtUpdateMigrationItemInput, 'FabricSpecificDetails.VMware' : VMwareDetails, 'FabricSpecificCreationInput.VMwareV2' : VMwareV2FabricCreationInput, 'FabricSpecificDetails.VMwareV2' : VMwareV2FabricSpecificDetails, 'ConfigurationSettings.VMwareVirtualMachine' : VMwareVirtualMachineDetails + }; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/migrationRecoveryPointsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/migrationRecoveryPointsMappers.ts new file mode 100644 index 000000000000..d0a57c5c32c9 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/migrationRecoveryPointsMappers.ts @@ -0,0 +1,244 @@ +/* + * 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 { + discriminators, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, + Alert, + AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, + Event, + EventProperties, + EventProviderSpecificDetails, + EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, + Fabric, + FabricProperties, + FabricReplicationGroupTaskDetails, + FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, + HyperVReplica2012EventDetails, + HyperVReplica2012R2EventDetails, + HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, + HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, + HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, + InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, + Job, + JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, + JobStatusEventDetails, + JobTaskDetails, + KeyEncryptionKeyInfo, + LogicalNetwork, + LogicalNetworkProperties, + ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointCollection, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, + Network, + NetworkMapping, + NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, + Policy, + PolicyProperties, + PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, + ProtectableItem, + ProtectableItemProperties, + ProtectionContainer, + ProtectionContainerFabricSpecificDetails, + ProtectionContainerMapping, + ProtectionContainerMappingProperties, + ProtectionContainerMappingProviderSpecificDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, + RecoveryPlan, + RecoveryPlanA2ADetails, + RecoveryPlanAction, + RecoveryPlanActionDetails, + RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, + RecoveryPlanGroupTaskDetails, + RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, + RecoveryPlanScriptActionDetails, + RecoveryPlanShutdownGroupTaskDetails, + RecoveryPoint, + RecoveryPointProperties, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, + RecoveryServicesProvider, + RecoveryServicesProviderProperties, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, + ReplicationGroupDetails, + ReplicationProtectedItem, + ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, + ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, + ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, + StorageClassification, + StorageClassificationMapping, + StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, + SwitchProtectionJobDetails, + TaskTypeDetails, + TestFailoverJobDetails, + VaultHealthDetails, + VaultHealthProperties, + VaultSetting, + VaultSettingProperties, + VCenter, + VCenterProperties, + VersionDetails, + VirtualMachineTaskDetails, + VmmDetails, + VmmToAzureNetworkMappingSettings, + VmmToVmmNetworkMappingSettings, + VmmVirtualMachineDetails, + VMNicDetails, + VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, + VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, + VMwareDetails, + VMwareV2FabricSpecificDetails, + VMwareVirtualMachineDetails +} from "../models/mappers"; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/operationsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/operationsMappers.ts index c542566c0253..c87b0d47feba 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/operationsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/operationsMappers.ts @@ -1,18 +1,15 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - OperationsDiscoveryCollection, - OperationsDiscovery, + CloudError, Display, - CloudError + OperationsDiscovery, + OperationsDiscoveryCollection } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts index a7bf383ee3f7..cebe3e60d64a 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/parameters.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/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 @@ -40,6 +39,18 @@ export const apiVersion: msRest.OperationQueryParameter = { } } }; +export const deleteOption: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deleteOption" + ], + mapper: { + serializedName: "deleteOption", + type: { + name: "String" + } + } +}; export const eventName: msRest.OperationURLParameter = { parameterPath: "eventName", mapper: { @@ -72,6 +83,28 @@ export const filter: msRest.OperationQueryParameter = { } } }; +export const instanceType: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "instanceType" + ], + mapper: { + serializedName: "instanceType", + type: { + name: "String" + } + } +}; +export const intentObjectName: msRest.OperationURLParameter = { + parameterPath: "intentObjectName", + mapper: { + required: true, + serializedName: "intentObjectName", + type: { + name: "String" + } + } +}; export const jobName: msRest.OperationURLParameter = { parameterPath: "jobName", mapper: { @@ -102,6 +135,26 @@ export const mappingName: msRest.OperationURLParameter = { } } }; +export const migrationItemName: msRest.OperationURLParameter = { + parameterPath: "migrationItemName", + mapper: { + required: true, + serializedName: "migrationItemName", + type: { + name: "String" + } + } +}; +export const migrationRecoveryPointName: msRest.OperationURLParameter = { + parameterPath: "migrationRecoveryPointName", + mapper: { + required: true, + serializedName: "migrationRecoveryPointName", + type: { + name: "String" + } + } +}; export const networkMappingName: msRest.OperationURLParameter = { parameterPath: "networkMappingName", mapper: { @@ -233,7 +286,7 @@ export const resourceName: msRest.OperationURLParameter = { } } }; -export const skipToken: msRest.OperationQueryParameter = { +export const skipToken0: msRest.OperationQueryParameter = { parameterPath: [ "options", "skipToken" @@ -245,6 +298,18 @@ export const skipToken: msRest.OperationQueryParameter = { } } }; +export const skipToken1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skipToken" + ], + mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; export const storageClassificationMappingName: msRest.OperationURLParameter = { parameterPath: "storageClassificationMappingName", mapper: { @@ -275,11 +340,55 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; -export const vCenterName: msRest.OperationURLParameter = { - parameterPath: "vCenterName", +export const take: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "take" + ], + mapper: { + serializedName: "$take", + type: { + name: "String" + } + } +}; +export const takeToken: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "takeToken" + ], + mapper: { + serializedName: "takeToken", + type: { + name: "String" + } + } +}; +export const vaultSettingName: msRest.OperationURLParameter = { + parameterPath: "vaultSettingName", + mapper: { + required: true, + serializedName: "vaultSettingName", + type: { + name: "String" + } + } +}; +export const vcenterName: msRest.OperationURLParameter = { + parameterPath: "vcenterName", + mapper: { + required: true, + serializedName: "vcenterName", + type: { + name: "String" + } + } +}; +export const virtualMachineName: msRest.OperationURLParameter = { + parameterPath: "virtualMachineName", mapper: { required: true, - serializedName: "vCenterName", + serializedName: "virtualMachineName", type: { name: "String" } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/recoveryPointsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/recoveryPointsMappers.ts index e30a369bf270..786e990e93d2 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/recoveryPointsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/recoveryPointsMappers.ts @@ -1,169 +1,244 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - RecoveryPointCollection, - RecoveryPoint, - Resource, - BaseResource, - RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, - CloudError, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, + RecoveryPoint, + RecoveryPointCollection, + RecoveryPointProperties, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationAlertSettingsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationAlertSettingsMappers.ts index 9dce3b118fae..77195ed629a0 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationAlertSettingsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationAlertSettingsMappers.ts @@ -1,171 +1,246 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - AlertCollection, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, - Resource, - BaseResource, + AlertCollection, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, CloudError, + ConfigurationSettings, ConfigureAlertRequest, ConfigureAlertRequestProperties, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationEligibilityResultsOperationsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationEligibilityResultsOperationsMappers.ts new file mode 100644 index 000000000000..e6509e1371ed --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationEligibilityResultsOperationsMappers.ts @@ -0,0 +1,16 @@ +/* + * 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 { + discriminators, + CloudError, + ReplicationEligibilityResults, + ReplicationEligibilityResultsCollection, + ReplicationEligibilityResultsErrorInfo, + ReplicationEligibilityResultsProperties +} from "../models/mappers"; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationEventsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationEventsMappers.ts index 968fb31ae230..1404a59bdbea 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationEventsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationEventsMappers.ts @@ -1,169 +1,244 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - EventCollection, - Event, - Resource, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, + Alert, + AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, + Event, + EventCollection, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, - CloudError, - A2AEventDetails, - Alert, - AlertProperties, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationFabricsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationFabricsMappers.ts index eda4dd1cd69e..a50817c3a2ec 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationFabricsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationFabricsMappers.ts @@ -1,178 +1,255 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - FabricCollection, - Fabric, - Resource, - BaseResource, - FabricProperties, - EncryptionDetails, - FabricSpecificDetails, - HealthError, - InnerHealthError, - CloudError, - FabricCreationInput, - FabricCreationInputProperties, - FabricSpecificCreationInput, - FailoverProcessServerRequest, - FailoverProcessServerRequestProperties, - RenewCertificateInput, - RenewCertificateInputProperties, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, AzureFabricCreationInput, AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, + Fabric, + FabricCollection, + FabricCreationInput, + FabricCreationInputProperties, + FabricProperties, + FabricReplicationGroupTaskDetails, + FabricSpecificCreationInput, + FabricSpecificDetails, + FailoverJobDetails, + FailoverProcessServerRequest, + FailoverProcessServerRequestProperties, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + IdentityProviderInput, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricCreationInput, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + RenewCertificateInput, + RenewCertificateInputProperties, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricCreationInput, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationJobsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationJobsMappers.ts index 4c9ce01a06ba..20e3147fecc7 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationJobsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationJobsMappers.ts @@ -1,172 +1,247 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - JobCollection, - Job, - Resource, - BaseResource, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, - JobDetails, - CloudError, - ResumeJobParams, - ResumeJobParamsProperties, - JobQueryParameter, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, AsrJobDetails, + ASRTask, AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, ConsistencyCheckTaskDetails, - InconsistentVmDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, - FabricSpecificDetails, FabricReplicationGroupTaskDetails, - JobEntity, + FabricSpecificDetails, FailoverJobDetails, FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, + Job, + JobCollection, + JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, + JobQueryParameter, JobStatusEventDetails, JobTaskDetails, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + ResumeJobParams, + ResumeJobParamsProperties, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationLogicalNetworksMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationLogicalNetworksMappers.ts index 6a85fc7ad5b1..0c110ed584d1 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationLogicalNetworksMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationLogicalNetworksMappers.ts @@ -1,169 +1,244 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - LogicalNetworkCollection, - LogicalNetwork, - Resource, - BaseResource, - LogicalNetworkProperties, - CloudError, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, + LogicalNetwork, + LogicalNetworkCollection, + LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationMigrationItemsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationMigrationItemsMappers.ts new file mode 100644 index 000000000000..eabf2fe48daa --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationMigrationItemsMappers.ts @@ -0,0 +1,269 @@ +/* + * 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 { + discriminators, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, + Alert, + AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EnableMigrationInput, + EnableMigrationInputProperties, + EnableMigrationProviderSpecificInput, + EncryptionDetails, + Event, + EventProperties, + EventProviderSpecificDetails, + EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, + Fabric, + FabricProperties, + FabricReplicationGroupTaskDetails, + FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, + HyperVReplica2012EventDetails, + HyperVReplica2012R2EventDetails, + HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, + HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, + HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, + InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, + Job, + JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, + JobStatusEventDetails, + JobTaskDetails, + KeyEncryptionKeyInfo, + LogicalNetwork, + LogicalNetworkProperties, + ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrateInput, + MigrateInputProperties, + MigrateProviderSpecificInput, + MigrationItem, + MigrationItemCollection, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, + Network, + NetworkMapping, + NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, + Policy, + PolicyProperties, + PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, + ProtectableItem, + ProtectableItemProperties, + ProtectionContainer, + ProtectionContainerFabricSpecificDetails, + ProtectionContainerMapping, + ProtectionContainerMappingProperties, + ProtectionContainerMappingProviderSpecificDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, + RecoveryPlan, + RecoveryPlanA2ADetails, + RecoveryPlanAction, + RecoveryPlanActionDetails, + RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, + RecoveryPlanGroupTaskDetails, + RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, + RecoveryPlanScriptActionDetails, + RecoveryPlanShutdownGroupTaskDetails, + RecoveryPoint, + RecoveryPointProperties, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, + RecoveryServicesProvider, + RecoveryServicesProviderProperties, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, + ReplicationGroupDetails, + ReplicationProtectedItem, + ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, + ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + ResyncInput, + ResyncInputProperties, + ResyncProviderSpecificInput, + RetentionVolume, + RunAsAccount, + ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, + StorageClassification, + StorageClassificationMapping, + StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, + SwitchProtectionJobDetails, + TaskTypeDetails, + TestFailoverJobDetails, + TestMigrateCleanupInput, + TestMigrateCleanupInputProperties, + TestMigrateInput, + TestMigrateInputProperties, + TestMigrateProviderSpecificInput, + UpdateMigrationItemInput, + UpdateMigrationItemInputProperties, + UpdateMigrationItemProviderSpecificInput, + VaultHealthDetails, + VaultHealthProperties, + VaultSetting, + VaultSettingProperties, + VCenter, + VCenterProperties, + VersionDetails, + VirtualMachineTaskDetails, + VmmDetails, + VmmToAzureNetworkMappingSettings, + VmmToVmmNetworkMappingSettings, + VmmVirtualMachineDetails, + VMNicDetails, + VmNicUpdatesTaskDetails, + VMwareCbtDiskInput, + VMwareCbtEnableMigrationInput, + VMwareCbtEventDetails, + VMwareCbtMigrateInput, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, + VMwareCbtNicInput, + VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, + VMwareCbtResyncInput, + VMwareCbtTestMigrateInput, + VMwareCbtUpdateDiskInput, + VMwareCbtUpdateMigrationItemInput, + VMwareDetails, + VMwareV2FabricSpecificDetails, + VMwareVirtualMachineDetails +} from "../models/mappers"; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationNetworkMappingsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationNetworkMappingsMappers.ts index 11655d1ad2bc..1ce5278989ee 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationNetworkMappingsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationNetworkMappingsMappers.ts @@ -1,117 +1,238 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - NetworkMappingCollection, - NetworkMapping, - Resource, - BaseResource, - NetworkMappingProperties, - NetworkMappingFabricSpecificSettings, - CloudError, - CreateNetworkMappingInput, - CreateNetworkMappingInputProperties, - FabricSpecificCreateNetworkMappingInput, - UpdateNetworkMappingInput, - UpdateNetworkMappingInputProperties, - FabricSpecificUpdateNetworkMappingInput, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, AzureToAzureCreateNetworkMappingInput, AzureToAzureNetworkMappingSettings, AzureToAzureUpdateNetworkMappingInput, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CreateNetworkMappingInput, + CreateNetworkMappingInputProperties, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, + FabricSpecificCreateNetworkMappingInput, FabricSpecificDetails, + FabricSpecificUpdateNetworkMappingInput, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, + NetworkMapping, + NetworkMappingCollection, + NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, NetworkProperties, - Subnet, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, + UpdateNetworkMappingInput, + UpdateNetworkMappingInputProperties, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureCreateNetworkMappingInput, @@ -121,61 +242,15 @@ export { VmmToVmmNetworkMappingSettings, VmmToVmmUpdateNetworkMappingInput, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationNetworksMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationNetworksMappers.ts index 07da42c72cfb..2622d651f1cb 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationNetworksMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationNetworksMappers.ts @@ -1,169 +1,244 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - NetworkCollection, - Network, - Resource, - BaseResource, - NetworkProperties, - Subnet, - CloudError, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, + Network, + NetworkCollection, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationPoliciesMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationPoliciesMappers.ts index a524c39491c2..2ad7a31f80c9 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationPoliciesMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationPoliciesMappers.ts @@ -1,181 +1,259 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - PolicyCollection, - Policy, - Resource, - BaseResource, - PolicyProperties, - PolicyProviderSpecificDetails, - CloudError, - CreatePolicyInput, - CreatePolicyInputProperties, - PolicyProviderSpecificInput, - UpdatePolicyInput, - UpdatePolicyInputProperties, + A2ACrossClusterMigrationPolicyCreationInput, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, A2APolicyCreationInput, A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CreatePolicyInput, + CreatePolicyInputProperties, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, HyperVReplicaAzurePolicyDetails, HyperVReplicaAzurePolicyInput, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, HyperVReplicaBluePolicyDetails, HyperVReplicaBluePolicyInput, + HyperVReplicaBlueReplicationDetails, HyperVReplicaPolicyDetails, HyperVReplicaPolicyInput, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, InMageAzureV2PolicyDetails, InMageAzureV2PolicyInput, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, InMageBasePolicyDetails, + InMageDiskDetails, InMagePolicyDetails, InMagePolicyInput, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyCreationInput, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyCreationInput, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, + Policy, + PolicyCollection, + PolicyProperties, + PolicyProviderSpecificDetails, + PolicyProviderSpecificInput, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, + UpdatePolicyInput, + UpdatePolicyInputProperties, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VMwareCbtPolicyCreationInput, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectableItemsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectableItemsMappers.ts index b12ec224ec54..dd4766c7a030 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectableItemsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectableItemsMappers.ts @@ -1,169 +1,244 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - ProtectableItemCollection, - ProtectableItem, - Resource, - BaseResource, - ProtectableItemProperties, - ConfigurationSettings, - CloudError, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, HyperVVirtualMachineDetails, - OSDetails, - DiskDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, + ProtectableItem, + ProtectableItemCollection, + ProtectableItemProperties, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectedItemsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectedItemsMappers.ts index 9fb7bd5bfa83..bb1648f21372 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectedItemsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectedItemsMappers.ts @@ -1,226 +1,335 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - ReplicationProtectedItemCollection, - ReplicationProtectedItem, - Resource, - BaseResource, - ReplicationProtectedItemProperties, - HealthError, - InnerHealthError, - CurrentScenarioDetails, - ReplicationProviderSpecificSettings, - CloudError, - EnableProtectionInput, - EnableProtectionInputProperties, - EnableProtectionProviderSpecificInput, - UpdateReplicationProtectedItemInput, - UpdateReplicationProtectedItemInputProperties, - VMNicInputDetails, - UpdateReplicationProtectedItemProviderInput, - ApplyRecoveryPointInput, - ApplyRecoveryPointInputProperties, - ApplyRecoveryPointProviderSpecificInput, - PlannedFailoverInput, - PlannedFailoverInputProperties, - ProviderSpecificFailoverInput, - DisableProtectionInput, - DisableProtectionInputProperties, - DisableProtectionProviderSpecificInput, - ReverseReplicationInput, - ReverseReplicationInputProperties, - ReverseReplicationProviderSpecificInput, - TestFailoverInput, - TestFailoverInputProperties, - TestFailoverCleanupInput, - TestFailoverCleanupInputProperties, - UnplannedFailoverInput, - UnplannedFailoverInputProperties, - UpdateMobilityServiceRequest, - UpdateMobilityServiceRequestProperties, + A2AAddDisksInput, A2AApplyRecoveryPointInput, + A2ACrossClusterMigrationApplyRecoveryPointInput, + A2ACrossClusterMigrationEnableProtectionInput, + A2ACrossClusterMigrationReplicationDetails, A2AEnableProtectionInput, - A2AVmDiskInputDetails, - A2AVmManagedDiskInputDetails, - DiskEncryptionInfo, - DiskEncryptionKeyInfo, - KeyEncryptionKeyInfo, - A2AFailoverProviderInput, - A2AReplicationDetails, + A2AEventDetails, + A2APolicyDetails, A2AProtectedDiskDetails, A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2ARemoveDisksInput, + A2AReplicationDetails, + A2AReplicationIntentDetails, A2AReprotectInput, + A2ATestFailoverInput, + A2AUnplannedFailoverInput, + A2AUnprotectedDiskDetails, A2AUpdateReplicationProtectedItemInput, + A2AVmDiskInputDetails, + A2AVmManagedDiskInputDetails, A2AVmManagedDiskUpdateDetails, + A2AZoneDetails, + AddDisksInput, + AddDisksInputProperties, + AddDisksProviderSpecificInput, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + ApplyRecoveryPointInput, + ApplyRecoveryPointInputProperties, + ApplyRecoveryPointProviderSpecificInput, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DisableProtectionInput, + DisableProtectionInputProperties, + DisableProtectionProviderSpecificInput, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EnableProtectionInput, + EnableProtectionInputProperties, + EnableProtectionProviderSpecificInput, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureApplyRecoveryPointInput, + HyperVReplicaAzureDiskInputDetails, HyperVReplicaAzureEnableProtectionInput, HyperVReplicaAzureEventDetails, HyperVReplicaAzureFailbackProviderInput, - HyperVReplicaAzureFailoverProviderInput, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePlannedFailoverProviderInput, + HyperVReplicaAzurePolicyDetails, HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - OSDetails, HyperVReplicaAzureReprotectInput, + HyperVReplicaAzureTestFailoverInput, + HyperVReplicaAzureUnplannedFailoverInput, HyperVReplicaAzureUpdateReplicationProtectedItemInput, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, HyperVReplicaBaseReplicationDetails, - DiskDetails, + HyperVReplicaBluePolicyDetails, HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2ApplyRecoveryPointInput, + InMageAzureV2DiskInputDetails, InMageAzureV2EnableProtectionInput, InMageAzureV2EventDetails, - InMageAzureV2FailoverProviderInput, - InMageAzureV2ReplicationDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, InMageAzureV2ReprotectInput, + InMageAzureV2TestFailoverInput, + InMageAzureV2UnplannedFailoverInput, InMageAzureV2UpdateReplicationProtectedItemInput, + InMageBasePolicyDetails, InMageDisableProtectionProviderSpecificInput, - InMageEnableProtectionInput, + InMageDiskDetails, InMageDiskExclusionInput, - InMageVolumeExclusionOptions, InMageDiskSignatureExclusionOptions, - InMageFailoverProviderInput, - InMageReplicationDetails, - OSDiskDetails, + InMageEnableProtectionInput, + InMagePolicyDetails, InMageProtectedDiskDetails, - InMageAgentDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmApplyRecoveryPointInput, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmDiskInput, + InMageRcmDisksDefaultInput, + InMageRcmEnableProtectionInput, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPlannedFailoverProviderInput, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackReprotectInput, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmNicInput, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmReprotectInput, + InMageRcmSyncDetails, + InMageRcmTestFailoverInput, + InMageRcmUnplannedFailoverInput, + InMageRcmUpdateApplianceForReplicationProtectedItemInput, + InMageRcmUpdateReplicationProtectedItemInput, + InMageReplicationDetails, InMageReprotectInput, + InMageTestFailoverInput, + InMageUnplannedFailoverInput, + InMageVolumeExclusionOptions, + InnerHealthError, + InputEndpoint, + IPConfigDetails, + IPConfigInputDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, + PlannedFailoverInput, + PlannedFailoverInputProperties, + PlannedFailoverProviderSpecificFailoverInput, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + RemoveDisksInput, + RemoveDisksInputProperties, + RemoveDisksProviderSpecificInput, + ReplicationAgentDetails, ReplicationGroupDetails, - SanEnableProtectionInput, + ReplicationProtectedItem, + ReplicationProtectedItemCollection, + ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, + ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + ResolveHealthError, + ResolveHealthInput, + ResolveHealthInputProperties, + Resource, + ResourceHealthSummary, + RetentionVolume, + ReverseReplicationInput, + ReverseReplicationInputProperties, + ReverseReplicationProviderSpecificInput, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, + TestFailoverCleanupInput, + TestFailoverCleanupInputProperties, + TestFailoverInput, + TestFailoverInputProperties, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, + TestFailoverProviderSpecificInput, + UnplannedFailoverInput, + UnplannedFailoverInputProperties, + UnplannedFailoverProviderSpecificInput, + UpdateApplianceForReplicationProtectedItemInput, + UpdateApplianceForReplicationProtectedItemInputProperties, + UpdateApplianceForReplicationProtectedItemProviderSpecificInput, + UpdateMobilityServiceRequest, + UpdateMobilityServiceRequestProperties, + UpdateReplicationProtectedItemInput, + UpdateReplicationProtectedItemInputProperties, + UpdateReplicationProtectedItemProviderInput, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, + VMNicDetails, + VMNicInputDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaPolicyDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageBasePolicyDetails, - InMagePolicyDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionContainerMappingsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionContainerMappingsMappers.ts index 0d6ad5eff961..18f6fcd7d5ec 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionContainerMappingsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionContainerMappingsMappers.ts @@ -1,180 +1,257 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - ProtectionContainerMappingCollection, - ProtectionContainerMapping, - Resource, - BaseResource, - ProtectionContainerMappingProperties, - ProtectionContainerMappingProviderSpecificDetails, - HealthError, - InnerHealthError, - CloudError, - CreateProtectionContainerMappingInput, - CreateProtectionContainerMappingInputProperties, - ReplicationProviderSpecificContainerMappingInput, - UpdateProtectionContainerMappingInput, - UpdateProtectionContainerMappingInputProperties, - ReplicationProviderSpecificUpdateContainerMappingInput, - RemoveProtectionContainerMappingInput, - RemoveProtectionContainerMappingInputProperties, - ReplicationProviderContainerUnmappingInput, A2AContainerMappingInput, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, A2AUpdateContainerMappingInput, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CreateProtectionContainerMappingInput, + CreateProtectionContainerMappingInputProperties, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageRcmUpdateContainerMappingInput, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerMapping, + ProtectionContainerMappingCollection, + ProtectionContainerMappingProperties, + ProtectionContainerMappingProviderSpecificDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + RemoveProtectionContainerMappingInput, + RemoveProtectionContainerMappingInputProperties, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, + ReplicationProviderContainerUnmappingInput, + ReplicationProviderSpecificContainerMappingInput, ReplicationProviderSpecificSettings, + ReplicationProviderSpecificUpdateContainerMappingInput, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, + UpdateProtectionContainerMappingInput, + UpdateProtectionContainerMappingInputProperties, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtContainerMappingInput, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionContainersMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionContainersMappers.ts index dd8441a0c5f2..b396f592d537 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionContainersMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionContainersMappers.ts @@ -1,184 +1,258 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - ProtectionContainerCollection, - ProtectionContainer, - Resource, + A2AContainerCreationInput, + A2ACrossClusterMigrationContainerCreationInput, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2ASwitchProtectionInput, + A2AUnprotectedDiskDetails, + A2AVmDiskInputDetails, + A2AVmManagedDiskInputDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, + Alert, + AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, BaseResource, - ProtectionContainerProperties, - ProtectionContainerFabricSpecificDetails, CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, CreateProtectionContainerInput, CreateProtectionContainerInputProperties, - ReplicationProviderSpecificContainerCreationInput, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, DiscoverProtectableItemRequest, DiscoverProtectableItemRequestProperties, - SwitchProtectionInput, - SwitchProtectionInputProperties, - SwitchProtectionProviderSpecificInput, - A2AContainerCreationInput, - A2ASwitchProtectionInput, - A2AVmDiskInputDetails, - A2AVmManagedDiskInputDetails, + DiskDetails, DiskEncryptionInfo, DiskEncryptionKeyInfo, - KeyEncryptionKeyInfo, - Alert, - AlertProperties, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, + ProtectionContainer, + ProtectionContainerCollection, + ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, + ReplicationProviderSpecificContainerCreationInput, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, + SwitchProtectionInput, + SwitchProtectionInputProperties, SwitchProtectionJobDetails, + SwitchProtectionProviderSpecificInput, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtContainerCreationInput, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionIntentsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionIntentsMappers.ts new file mode 100644 index 000000000000..6259766e07bf --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationProtectionIntentsMappers.ts @@ -0,0 +1,248 @@ +/* + * 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 { + discriminators, + A2ACreateProtectionIntentInput, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, + Alert, + AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CreateProtectionIntentInput, + CreateProtectionIntentProperties, + CreateProtectionIntentProviderSpecificDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, + Event, + EventProperties, + EventProviderSpecificDetails, + EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, + Fabric, + FabricProperties, + FabricReplicationGroupTaskDetails, + FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, + HyperVReplica2012EventDetails, + HyperVReplica2012R2EventDetails, + HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, + HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, + HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, + InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, + Job, + JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, + JobStatusEventDetails, + JobTaskDetails, + KeyEncryptionKeyInfo, + LogicalNetwork, + LogicalNetworkProperties, + ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, + Network, + NetworkMapping, + NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, + Policy, + PolicyProperties, + PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, + ProtectableItem, + ProtectableItemProperties, + ProtectionContainer, + ProtectionContainerFabricSpecificDetails, + ProtectionContainerMapping, + ProtectionContainerMappingProperties, + ProtectionContainerMappingProviderSpecificDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, + RecoveryPlan, + RecoveryPlanA2ADetails, + RecoveryPlanAction, + RecoveryPlanActionDetails, + RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, + RecoveryPlanGroupTaskDetails, + RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, + RecoveryPlanScriptActionDetails, + RecoveryPlanShutdownGroupTaskDetails, + RecoveryPoint, + RecoveryPointProperties, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, + RecoveryServicesProvider, + RecoveryServicesProviderProperties, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, + ReplicationGroupDetails, + ReplicationProtectedItem, + ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentCollection, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, + ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, + ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, + StorageClassification, + StorageClassificationMapping, + StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, + SwitchProtectionJobDetails, + TaskTypeDetails, + TestFailoverJobDetails, + VaultHealthDetails, + VaultHealthProperties, + VaultSetting, + VaultSettingProperties, + VCenter, + VCenterProperties, + VersionDetails, + VirtualMachineTaskDetails, + VmmDetails, + VmmToAzureNetworkMappingSettings, + VmmToVmmNetworkMappingSettings, + VmmVirtualMachineDetails, + VMNicDetails, + VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, + VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, + VMwareDetails, + VMwareV2FabricSpecificDetails, + VMwareVirtualMachineDetails +} from "../models/mappers"; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationRecoveryPlansMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationRecoveryPlansMappers.ts index 083318f00636..50a0fc7e90ba 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationRecoveryPlansMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationRecoveryPlansMappers.ts @@ -1,187 +1,266 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - RecoveryPlanCollection, - RecoveryPlan, - Resource, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, + Alert, + AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, BaseResource, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, - RecoveryPlanAction, - RecoveryPlanActionDetails, CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, CreateRecoveryPlanInput, CreateRecoveryPlanInputProperties, - UpdateRecoveryPlanInput, - UpdateRecoveryPlanInputProperties, - RecoveryPlanPlannedFailoverInput, - RecoveryPlanPlannedFailoverInputProperties, - RecoveryPlanProviderSpecificFailoverInput, - RecoveryPlanTestFailoverInput, - RecoveryPlanTestFailoverInputProperties, - RecoveryPlanTestFailoverCleanupInput, - RecoveryPlanTestFailoverCleanupInputProperties, - RecoveryPlanUnplannedFailoverInput, - RecoveryPlanUnplannedFailoverInputProperties, - Alert, - AlertProperties, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, + RecoveryPlan, + RecoveryPlanA2ADetails, RecoveryPlanA2AFailoverInput, + RecoveryPlanA2AInput, + RecoveryPlanAction, + RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanCollection, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanHyperVReplicaAzureFailbackInput, RecoveryPlanHyperVReplicaAzureFailoverInput, RecoveryPlanInMageAzureV2FailoverInput, RecoveryPlanInMageFailoverInput, + RecoveryPlanInMageRcmFailbackFailoverInput, + RecoveryPlanInMageRcmFailoverInput, RecoveryPlanManualActionDetails, + RecoveryPlanPlannedFailoverInput, + RecoveryPlanPlannedFailoverInputProperties, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, + RecoveryPlanProviderSpecificFailoverInput, + RecoveryPlanProviderSpecificInput, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, + RecoveryPlanTestFailoverCleanupInput, + RecoveryPlanTestFailoverCleanupInputProperties, + RecoveryPlanTestFailoverInput, + RecoveryPlanTestFailoverInputProperties, + RecoveryPlanUnplannedFailoverInput, + RecoveryPlanUnplannedFailoverInputProperties, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, + UpdateRecoveryPlanInput, + UpdateRecoveryPlanInputProperties, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationRecoveryServicesProvidersMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationRecoveryServicesProvidersMappers.ts index 261676593e7f..5169701dd00f 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationRecoveryServicesProvidersMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationRecoveryServicesProvidersMappers.ts @@ -1,169 +1,247 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - RecoveryServicesProviderCollection, - RecoveryServicesProvider, - Resource, - BaseResource, - RecoveryServicesProviderProperties, - HealthError, - InnerHealthError, - IdentityInformation, - VersionDetails, - CloudError, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AddRecoveryServicesProviderInput, + AddRecoveryServicesProviderInputProperties, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + IdentityProviderInput, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, + RecoveryServicesProvider, + RecoveryServicesProviderCollection, + RecoveryServicesProviderProperties, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationStorageClassificationMappingsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationStorageClassificationMappingsMappers.ts index d5b74ec1fea5..125645c99d74 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationStorageClassificationMappingsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationStorageClassificationMappingsMappers.ts @@ -1,171 +1,246 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - StorageClassificationMappingCollection, - StorageClassificationMapping, - Resource, - BaseResource, - StorageClassificationMappingProperties, - CloudError, - StorageClassificationMappingInput, - StorageMappingInputProperties, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, + StorageClassificationMapping, + StorageClassificationMappingCollection, + StorageClassificationMappingInput, + StorageClassificationMappingProperties, StorageClassificationProperties, + StorageMappingInputProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationStorageClassificationsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationStorageClassificationsMappers.ts index a9cacac31c2f..02494e5eb1ba 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationStorageClassificationsMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationStorageClassificationsMappers.ts @@ -1,169 +1,244 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - StorageClassificationCollection, - StorageClassification, - Resource, - BaseResource, - StorageClassificationProperties, - CloudError, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, - HealthError, - InnerHealthError, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, + StorageClassification, + StorageClassificationCollection, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationVaultHealthMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationVaultHealthMappers.ts index 7885552c73a6..e56470059d50 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationVaultHealthMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationVaultHealthMappers.ts @@ -1,168 +1,243 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - VaultHealthDetails, - Resource, - BaseResource, - VaultHealthProperties, - HealthError, - InnerHealthError, - ResourceHealthSummary, - HealthErrorSummary, - CloudError, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, + VaultHealthDetails, + VaultHealthProperties, + VaultSetting, + VaultSettingProperties, VCenter, VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationVaultSettingMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationVaultSettingMappers.ts new file mode 100644 index 000000000000..966efcc96d4f --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationVaultSettingMappers.ts @@ -0,0 +1,246 @@ +/* + * 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 { + discriminators, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, + Alert, + AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, + Event, + EventProperties, + EventProviderSpecificDetails, + EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, + Fabric, + FabricProperties, + FabricReplicationGroupTaskDetails, + FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, + HyperVReplica2012EventDetails, + HyperVReplica2012R2EventDetails, + HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, + HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, + HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, + InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, + Job, + JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, + JobStatusEventDetails, + JobTaskDetails, + KeyEncryptionKeyInfo, + LogicalNetwork, + LogicalNetworkProperties, + ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, + Network, + NetworkMapping, + NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, + Policy, + PolicyProperties, + PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, + ProtectableItem, + ProtectableItemProperties, + ProtectionContainer, + ProtectionContainerFabricSpecificDetails, + ProtectionContainerMapping, + ProtectionContainerMappingProperties, + ProtectionContainerMappingProviderSpecificDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, + RecoveryPlan, + RecoveryPlanA2ADetails, + RecoveryPlanAction, + RecoveryPlanActionDetails, + RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, + RecoveryPlanGroupTaskDetails, + RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, + RecoveryPlanScriptActionDetails, + RecoveryPlanShutdownGroupTaskDetails, + RecoveryPoint, + RecoveryPointProperties, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, + RecoveryServicesProvider, + RecoveryServicesProviderProperties, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, + ReplicationGroupDetails, + ReplicationProtectedItem, + ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, + ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, + ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, + StorageClassification, + StorageClassificationMapping, + StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, + SwitchProtectionJobDetails, + TaskTypeDetails, + TestFailoverJobDetails, + VaultHealthDetails, + VaultHealthProperties, + VaultSetting, + VaultSettingCollection, + VaultSettingCreationInput, + VaultSettingCreationInputProperties, + VaultSettingProperties, + VCenter, + VCenterProperties, + VersionDetails, + VirtualMachineTaskDetails, + VmmDetails, + VmmToAzureNetworkMappingSettings, + VmmToVmmNetworkMappingSettings, + VmmVirtualMachineDetails, + VMNicDetails, + VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, + VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, + VMwareDetails, + VMwareV2FabricSpecificDetails, + VMwareVirtualMachineDetails +} from "../models/mappers"; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationvCentersMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationvCentersMappers.ts index c3861efe7369..16dd6509b83b 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationvCentersMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/replicationvCentersMappers.ts @@ -1,173 +1,248 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - VCenterCollection, - VCenter, - Resource, - BaseResource, - VCenterProperties, - HealthError, - InnerHealthError, - CloudError, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, AddVCenterRequest, AddVCenterRequestProperties, - UpdateVCenterRequest, - UpdateVCenterRequestProperties, + AgentDetails, + AgentDiskDetails, Alert, AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, Event, EventProperties, EventProviderSpecificDetails, EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, Fabric, FabricProperties, - EncryptionDetails, + FabricReplicationGroupTaskDetails, FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, HyperVReplica2012EventDetails, HyperVReplica2012R2EventDetails, HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, Job, - JobProperties, - ASRTask, - TaskTypeDetails, - GroupTaskDetails, - JobErrorDetails, - ServiceError, - ProviderError, JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, JobStatusEventDetails, JobTaskDetails, - JobEntity, + KeyEncryptionKeyInfo, LogicalNetwork, LogicalNetworkProperties, ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, Network, - NetworkProperties, - Subnet, NetworkMapping, - NetworkMappingProperties, NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, Policy, PolicyProperties, PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, ProtectableItem, ProtectableItemProperties, - ConfigurationSettings, ProtectionContainer, - ProtectionContainerProperties, ProtectionContainerFabricSpecificDetails, ProtectionContainerMapping, ProtectionContainerMappingProperties, ProtectionContainerMappingProviderSpecificDetails, - RcmAzureMigrationPolicyDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, RecoveryPlan, - RecoveryPlanProperties, - CurrentScenarioDetails, - RecoveryPlanGroup, - RecoveryPlanProtectedItem, + RecoveryPlanA2ADetails, RecoveryPlanAction, RecoveryPlanActionDetails, RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, RecoveryPlanGroupTaskDetails, RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, RecoveryPlanScriptActionDetails, RecoveryPlanShutdownGroupTaskDetails, RecoveryPoint, RecoveryPointProperties, - ProviderSpecificRecoveryPointDetails, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, RecoveryServicesProvider, RecoveryServicesProviderProperties, - IdentityInformation, - VersionDetails, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, ReplicationGroupDetails, ReplicationProtectedItem, ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, StorageClassification, - StorageClassificationProperties, StorageClassificationMapping, StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, SwitchProtectionJobDetails, + TaskTypeDetails, TestFailoverJobDetails, - FailoverReplicationProtectedItemDetails, + UpdateVCenterRequest, + UpdateVCenterRequestProperties, VaultHealthDetails, VaultHealthProperties, - ResourceHealthSummary, - HealthErrorSummary, + VaultSetting, + VaultSettingProperties, + VCenter, + VCenterCollection, + VCenterProperties, + VersionDetails, VirtualMachineTaskDetails, VmmDetails, VmmToAzureNetworkMappingSettings, VmmToVmmNetworkMappingSettings, VmmVirtualMachineDetails, - OSDetails, - DiskDetails, + VMNicDetails, VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, VMwareDetails, - ProcessServer, - MobilityServiceUpdate, - MasterTargetServer, - RetentionVolume, - DataStore, - RunAsAccount, VMwareV2FabricSpecificDetails, - VMwareVirtualMachineDetails, - InMageDiskDetails, - DiskVolumeDetails, - A2AEventDetails, - A2APolicyDetails, - A2AProtectionContainerMappingDetails, - A2ARecoveryPointDetails, - A2AReplicationDetails, - A2AProtectedDiskDetails, - A2AProtectedManagedDiskDetails, - VMNicDetails, - AzureToAzureVmSyncedConfigDetails, - RoleAssignment, - InputEndpoint, - AsrJobDetails, - AutomationRunbookTaskDetails, - AzureFabricSpecificDetails, - AzureToAzureNetworkMappingSettings, - ConsistencyCheckTaskDetails, - InconsistentVmDetails, - ExportJobDetails, - FabricReplicationGroupTaskDetails, - FailoverJobDetails, - HyperVReplicaAzurePolicyDetails, - HyperVReplicaAzureReplicationDetails, - AzureVmDiskDetails, - InitialReplicationDetails, - HyperVReplicaBasePolicyDetails, - HyperVReplicaBaseReplicationDetails, - HyperVReplicaBluePolicyDetails, - HyperVReplicaBlueReplicationDetails, - HyperVReplicaPolicyDetails, - HyperVReplicaReplicationDetails, - HyperVVirtualMachineDetails, - InlineWorkflowTaskDetails, - InMageAzureV2PolicyDetails, - InMageAzureV2RecoveryPointDetails, - InMageAzureV2ReplicationDetails, - InMageAzureV2ProtectedDiskDetails, - InMageBasePolicyDetails, - InMagePolicyDetails, - InMageReplicationDetails, - OSDiskDetails, - InMageProtectedDiskDetails, - InMageAgentDetails + VMwareVirtualMachineDetails } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/supportedOperatingSystemsOperationsMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/supportedOperatingSystemsOperationsMappers.ts new file mode 100644 index 000000000000..e56470059d50 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/supportedOperatingSystemsOperationsMappers.ts @@ -0,0 +1,243 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + A2ACrossClusterMigrationReplicationDetails, + A2AEventDetails, + A2APolicyDetails, + A2AProtectedDiskDetails, + A2AProtectedManagedDiskDetails, + A2AProtectionContainerMappingDetails, + A2AProtectionIntentDiskInputDetails, + A2AProtectionIntentManagedDiskInputDetails, + A2ARecoveryPointDetails, + A2AReplicationDetails, + A2AReplicationIntentDetails, + A2AUnprotectedDiskDetails, + A2AZoneDetails, + AgentDetails, + AgentDiskDetails, + Alert, + AlertProperties, + AsrJobDetails, + ASRTask, + AutomationRunbookTaskDetails, + AzureFabricSpecificDetails, + AzureToAzureNetworkMappingSettings, + AzureToAzureVmSyncedConfigDetails, + AzureVmDiskDetails, + BaseResource, + CloudError, + ConfigurationSettings, + ConsistencyCheckTaskDetails, + CurrentJobDetails, + CurrentScenarioDetails, + DataStore, + DiskDetails, + DiskEncryptionInfo, + DiskEncryptionKeyInfo, + DiskVolumeDetails, + DraDetails, + EncryptionDetails, + Event, + EventProperties, + EventProviderSpecificDetails, + EventSpecificDetails, + ExistingProtectionProfile, + ExistingRecoveryAvailabilitySet, + ExistingRecoveryProximityPlacementGroup, + ExistingRecoveryRecoveryResourceGroup, + ExistingRecoveryVirtualNetwork, + ExistingStorageAccount, + ExportJobDetails, + Fabric, + FabricProperties, + FabricReplicationGroupTaskDetails, + FabricSpecificDetails, + FailoverJobDetails, + FailoverReplicationProtectedItemDetails, + GroupTaskDetails, + HealthError, + HealthErrorSummary, + HyperVHostDetails, + HyperVReplica2012EventDetails, + HyperVReplica2012R2EventDetails, + HyperVReplicaAzureEventDetails, + HyperVReplicaAzureManagedDiskDetails, + HyperVReplicaAzurePolicyDetails, + HyperVReplicaAzureReplicationDetails, + HyperVReplicaBaseEventDetails, + HyperVReplicaBasePolicyDetails, + HyperVReplicaBaseReplicationDetails, + HyperVReplicaBluePolicyDetails, + HyperVReplicaBlueReplicationDetails, + HyperVReplicaPolicyDetails, + HyperVReplicaReplicationDetails, + HyperVSiteDetails, + HyperVVirtualMachineDetails, + IdentityProviderDetails, + InconsistentVmDetails, + InitialReplicationDetails, + InlineWorkflowTaskDetails, + InMageAgentDetails, + InMageAzureV2EventDetails, + InMageAzureV2ManagedDiskDetails, + InMageAzureV2PolicyDetails, + InMageAzureV2ProtectedDiskDetails, + InMageAzureV2RecoveryPointDetails, + InMageAzureV2ReplicationDetails, + InMageBasePolicyDetails, + InMageDiskDetails, + InMagePolicyDetails, + InMageProtectedDiskDetails, + InMageRcmAgentUpgradeBlockingErrorDetails, + InMageRcmDiscoveredProtectedVmDetails, + InMageRcmEventDetails, + InMageRcmFabricSpecificDetails, + InMageRcmFailbackDiscoveredProtectedVmDetails, + InMageRcmFailbackEventDetails, + InMageRcmFailbackMobilityAgentDetails, + InMageRcmFailbackNicDetails, + InMageRcmFailbackPolicyDetails, + InMageRcmFailbackProtectedDiskDetails, + InMageRcmFailbackReplicationDetails, + InMageRcmFailbackSyncDetails, + InMageRcmLastAgentUpgradeErrorDetails, + InMageRcmMobilityAgentDetails, + InMageRcmNicDetails, + InMageRcmPolicyDetails, + InMageRcmProtectedDiskDetails, + InMageRcmProtectionContainerMappingDetails, + InMageRcmRecoveryPointDetails, + InMageRcmReplicationDetails, + InMageRcmSyncDetails, + InMageReplicationDetails, + InnerHealthError, + InputEndpoint, + IPConfigDetails, + Job, + JobDetails, + JobEntity, + JobErrorDetails, + JobProperties, + JobStatusEventDetails, + JobTaskDetails, + KeyEncryptionKeyInfo, + LogicalNetwork, + LogicalNetworkProperties, + ManualActionTaskDetails, + MarsAgentDetails, + MasterTargetServer, + MigrationItem, + MigrationItemProperties, + MigrationProviderSpecificSettings, + MigrationRecoveryPoint, + MigrationRecoveryPointProperties, + MobilityServiceUpdate, + Network, + NetworkMapping, + NetworkMappingFabricSpecificSettings, + NetworkMappingProperties, + NetworkProperties, + NewProtectionProfile, + NewRecoveryVirtualNetwork, + OSDetails, + OSDiskDetails, + OSVersionWrapper, + Policy, + PolicyProperties, + PolicyProviderSpecificDetails, + ProcessServer, + ProcessServerDetails, + ProtectableItem, + ProtectableItemProperties, + ProtectionContainer, + ProtectionContainerFabricSpecificDetails, + ProtectionContainerMapping, + ProtectionContainerMappingProperties, + ProtectionContainerMappingProviderSpecificDetails, + ProtectionContainerProperties, + ProtectionProfileCustomDetails, + ProviderError, + ProviderSpecificRecoveryPointDetails, + PushInstallerDetails, + RcmProxyDetails, + RecoveryAvailabilitySetCustomDetails, + RecoveryPlan, + RecoveryPlanA2ADetails, + RecoveryPlanAction, + RecoveryPlanActionDetails, + RecoveryPlanAutomationRunbookActionDetails, + RecoveryPlanGroup, + RecoveryPlanGroupTaskDetails, + RecoveryPlanManualActionDetails, + RecoveryPlanProperties, + RecoveryPlanProtectedItem, + RecoveryPlanProviderSpecificDetails, + RecoveryPlanScriptActionDetails, + RecoveryPlanShutdownGroupTaskDetails, + RecoveryPoint, + RecoveryPointProperties, + RecoveryProximityPlacementGroupCustomDetails, + RecoveryResourceGroupCustomDetails, + RecoveryServicesProvider, + RecoveryServicesProviderProperties, + RecoveryVirtualNetworkCustomDetails, + ReplicationAgentDetails, + ReplicationGroupDetails, + ReplicationProtectedItem, + ReplicationProtectedItemProperties, + ReplicationProtectionIntent, + ReplicationProtectionIntentProperties, + ReplicationProtectionIntentProviderSpecificSettings, + ReplicationProviderSpecificSettings, + ReprotectAgentDetails, + Resource, + ResourceHealthSummary, + RetentionVolume, + RunAsAccount, + ScriptActionTaskDetails, + ServiceError, + StorageAccountCustomDetails, + StorageClassification, + StorageClassificationMapping, + StorageClassificationMappingProperties, + StorageClassificationProperties, + Subnet, + SupportedOperatingSystems, + SupportedOSDetails, + SupportedOSProperties, + SupportedOSProperty, + SwitchProtectionJobDetails, + TaskTypeDetails, + TestFailoverJobDetails, + VaultHealthDetails, + VaultHealthProperties, + VaultSetting, + VaultSettingProperties, + VCenter, + VCenterProperties, + VersionDetails, + VirtualMachineTaskDetails, + VmmDetails, + VmmToAzureNetworkMappingSettings, + VmmToVmmNetworkMappingSettings, + VmmVirtualMachineDetails, + VMNicDetails, + VmNicUpdatesTaskDetails, + VMwareCbtEventDetails, + VMwareCbtMigrationDetails, + VMwareCbtNicDetails, + VmwareCbtPolicyDetails, + VMwareCbtProtectedDiskDetails, + VMwareCbtProtectionContainerMappingDetails, + VMwareDetails, + VMwareV2FabricSpecificDetails, + VMwareVirtualMachineDetails +} from "../models/mappers"; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/targetComputeSizesMappers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/targetComputeSizesMappers.ts index 0b4374cffa7b..dd938b4a92ab 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/targetComputeSizesMappers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/models/targetComputeSizesMappers.ts @@ -1,19 +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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - TargetComputeSizeCollection, - TargetComputeSize, - TargetComputeSizeProperties, + CloudError, ComputeSizeErrorDetails, - CloudError + TargetComputeSize, + TargetComputeSizeCollection, + TargetComputeSizeProperties } from "../models/mappers"; - diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/index.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/index.ts index 15dfbb40976d..3e1958a968a1 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/index.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/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,12 +9,15 @@ export * from "./operations"; export * from "./replicationAlertSettings"; +export * from "./replicationEligibilityResultsOperations"; export * from "./replicationEvents"; export * from "./replicationFabrics"; export * from "./replicationLogicalNetworks"; export * from "./replicationNetworks"; export * from "./replicationNetworkMappings"; export * from "./replicationProtectionContainers"; +export * from "./replicationMigrationItems"; +export * from "./migrationRecoveryPoints"; export * from "./replicationProtectableItems"; export * from "./replicationProtectedItems"; export * from "./recoveryPoints"; @@ -27,5 +29,8 @@ export * from "./replicationStorageClassificationMappings"; export * from "./replicationvCenters"; export * from "./replicationJobs"; export * from "./replicationPolicies"; +export * from "./replicationProtectionIntents"; export * from "./replicationRecoveryPlans"; +export * from "./supportedOperatingSystemsOperations"; export * from "./replicationVaultHealth"; +export * from "./replicationVaultSetting"; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/migrationRecoveryPoints.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/migrationRecoveryPoints.ts new file mode 100644 index 000000000000..9efd4a36b2eb --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/migrationRecoveryPoints.ts @@ -0,0 +1,214 @@ +/* + * 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/migrationRecoveryPointsMappers"; +import * as Parameters from "../models/parameters"; +import { SiteRecoveryManagementClientContext } from "../siteRecoveryManagementClientContext"; + +/** Class representing a MigrationRecoveryPoints. */ +export class MigrationRecoveryPoints { + private readonly client: SiteRecoveryManagementClientContext; + + /** + * Create a MigrationRecoveryPoints. + * @param {SiteRecoveryManagementClientContext} client Reference to the service client. + */ + constructor(client: SiteRecoveryManagementClientContext) { + this.client = client; + } + + /** + * @summary Gets the recovery points for a migration item. + * @param fabricName Fabric unique name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param [options] The optional parameters + * @returns Promise + */ + listByReplicationMigrationItems(fabricName: string, protectionContainerName: string, migrationItemName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param fabricName Fabric unique name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param callback The callback + */ + listByReplicationMigrationItems(fabricName: string, protectionContainerName: string, migrationItemName: string, callback: msRest.ServiceCallback): void; + /** + * @param fabricName Fabric unique name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param options The optional parameters + * @param callback The callback + */ + listByReplicationMigrationItems(fabricName: string, protectionContainerName: string, migrationItemName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByReplicationMigrationItems(fabricName: string, protectionContainerName: string, migrationItemName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + fabricName, + protectionContainerName, + migrationItemName, + options + }, + listByReplicationMigrationItemsOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets a recovery point for a migration item. + * @param fabricName Fabric unique name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param migrationRecoveryPointName The migration recovery point name. + * @param [options] The optional parameters + * @returns Promise + */ + get(fabricName: string, protectionContainerName: string, migrationItemName: string, migrationRecoveryPointName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param fabricName Fabric unique name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param migrationRecoveryPointName The migration recovery point name. + * @param callback The callback + */ + get(fabricName: string, protectionContainerName: string, migrationItemName: string, migrationRecoveryPointName: string, callback: msRest.ServiceCallback): void; + /** + * @param fabricName Fabric unique name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param migrationRecoveryPointName The migration recovery point name. + * @param options The optional parameters + * @param callback The callback + */ + get(fabricName: string, protectionContainerName: string, migrationItemName: string, migrationRecoveryPointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(fabricName: string, protectionContainerName: string, migrationItemName: string, migrationRecoveryPointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + fabricName, + protectionContainerName, + migrationItemName, + migrationRecoveryPointName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets the recovery points for a migration item. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByReplicationMigrationItemsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByReplicationMigrationItemsNext(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 + */ + listByReplicationMigrationItemsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByReplicationMigrationItemsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByReplicationMigrationItemsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByReplicationMigrationItemsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/migrationRecoveryPoints", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.migrationItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MigrationRecoveryPointCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/migrationRecoveryPoints/{migrationRecoveryPointName}", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.migrationItemName, + Parameters.migrationRecoveryPointName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MigrationRecoveryPoint + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByReplicationMigrationItemsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MigrationRecoveryPointCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/operations.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/operations.ts index 93e4f8979113..640e2ab96fdb 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/operations.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/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 @@ -85,7 +84,7 @@ export class Operations { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/operations", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/operations", urlParameters: [ Parameters.resourceGroupName, Parameters.subscriptionId @@ -114,6 +113,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/recoveryPoints.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/recoveryPoints.ts index eebe79ec88d8..6731cf285d32 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/recoveryPoints.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/recoveryPoints.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,10 +27,10 @@ export class RecoveryPoints { /** * Lists the available recovery points for a replication protected item. - * @summary Get recovery points for a replication protected item. + * @summary Gets the list of recovery points for a replication protected item. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. - * @param replicatedProtectedItemName The replication protected item's name. + * @param replicatedProtectedItemName The replication protected item name. * @param [options] The optional parameters * @returns Promise */ @@ -39,14 +38,14 @@ export class RecoveryPoints { /** * @param fabricName The fabric name. * @param protectionContainerName The protection container name. - * @param replicatedProtectedItemName The replication protected item's name. + * @param replicatedProtectedItemName The replication protected item name. * @param callback The callback */ listByReplicationProtectedItems(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, callback: msRest.ServiceCallback): void; /** * @param fabricName The fabric name. * @param protectionContainerName The protection container name. - * @param replicatedProtectedItemName The replication protected item's name. + * @param replicatedProtectedItemName The replication protected item name. * @param options The optional parameters * @param callback The callback */ @@ -65,10 +64,10 @@ export class RecoveryPoints { /** * Get the details of specified recovery point. - * @summary Get a recovery point. + * @summary Gets a recovery point. * @param fabricName The fabric name. * @param protectionContainerName The protection container name. - * @param replicatedProtectedItemName The replication protected item's name. + * @param replicatedProtectedItemName The replication protected item name. * @param recoveryPointName The recovery point name. * @param [options] The optional parameters * @returns Promise @@ -77,7 +76,7 @@ export class RecoveryPoints { /** * @param fabricName The fabric name. * @param protectionContainerName The protection container name. - * @param replicatedProtectedItemName The replication protected item's name. + * @param replicatedProtectedItemName The replication protected item name. * @param recoveryPointName The recovery point name. * @param callback The callback */ @@ -85,7 +84,7 @@ export class RecoveryPoints { /** * @param fabricName The fabric name. * @param protectionContainerName The protection container name. - * @param replicatedProtectedItemName The replication protected item's name. + * @param replicatedProtectedItemName The replication protected item name. * @param recoveryPointName The recovery point name. * @param options The optional parameters * @param callback The callback @@ -106,7 +105,7 @@ export class RecoveryPoints { /** * Lists the available recovery points for a replication protected item. - * @summary Get recovery points for a replication protected item. + * @summary Gets the list of recovery points for a replication protected item. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -138,7 +137,7 @@ export class RecoveryPoints { const serializer = new msRest.Serializer(Mappers); const listByReplicationProtectedItemsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -166,7 +165,7 @@ const listByReplicationProtectedItemsOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints/{recoveryPointName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints/{recoveryPointName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -200,6 +199,9 @@ const listByReplicationProtectedItemsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAlertSettings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAlertSettings.ts index 695b196b8e90..aa37cfa2f9e6 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAlertSettings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationAlertSettings.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 @@ -147,7 +146,7 @@ export class ReplicationAlertSettings { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -172,7 +171,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -198,7 +197,7 @@ const getOperationSpec: msRest.OperationSpec = { const createOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -236,6 +235,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEligibilityResultsOperations.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEligibilityResultsOperations.ts new file mode 100644 index 000000000000..ed68ce5480e1 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEligibilityResultsOperations.ts @@ -0,0 +1,137 @@ +/* + * 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/replicationEligibilityResultsOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SiteRecoveryManagementClientContext } from "../siteRecoveryManagementClientContext"; + +/** Class representing a ReplicationEligibilityResultsOperations. */ +export class ReplicationEligibilityResultsOperations { + private readonly client: SiteRecoveryManagementClientContext; + + /** + * Create a ReplicationEligibilityResultsOperations. + * @param {SiteRecoveryManagementClientContext} client Reference to the service client. + */ + constructor(client: SiteRecoveryManagementClientContext) { + this.client = client; + } + + /** + * Validates whether a given VM can be protected or not in which case returns list of errors. + * @summary Gets the validation errors in case the VM is unsuitable for protection. + * @param virtualMachineName Virtual Machine name. + * @param [options] The optional parameters + * @returns Promise + */ + list(virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param virtualMachineName Virtual Machine name. + * @param callback The callback + */ + list(virtualMachineName: string, callback: msRest.ServiceCallback): void; + /** + * @param virtualMachineName Virtual Machine name. + * @param options The optional parameters + * @param callback The callback + */ + list(virtualMachineName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(virtualMachineName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + virtualMachineName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Validates whether a given VM can be protected or not in which case returns list of errors. + * @summary Gets the validation errors in case the VM is unsuitable for protection. + * @param virtualMachineName Virtual Machine name. + * @param [options] The optional parameters + * @returns Promise + */ + get(virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param virtualMachineName Virtual Machine name. + * @param callback The callback + */ + get(virtualMachineName: string, callback: msRest.ServiceCallback): void; + /** + * @param virtualMachineName Virtual Machine name. + * @param options The optional parameters + * @param callback The callback + */ + get(virtualMachineName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(virtualMachineName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + virtualMachineName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualMachineName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReplicationEligibilityResultsCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualMachineName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReplicationEligibilityResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEvents.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEvents.ts index 6cfc2a14ded8..9f07f42e279e 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEvents.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationEvents.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 @@ -87,7 +86,7 @@ export class ReplicationEvents { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ReplicationEventsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -98,8 +97,8 @@ export class ReplicationEvents { * @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.ReplicationEventsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ReplicationEventsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -114,7 +113,7 @@ export class ReplicationEvents { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -140,7 +139,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents/{eventName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationEvents/{eventName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -171,6 +170,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationFabrics.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationFabrics.ts index 63c772b877e9..f6dd4ca8c73e 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationFabrics.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationFabrics.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 ReplicationFabrics { /** * Gets a list of the Azure Site Recovery fabrics in the vault. - * @summary Gets the list of ASR fabrics + * @summary Gets the list of ASR fabrics. * @param [options] The optional parameters * @returns Promise */ @@ -59,7 +58,7 @@ export class ReplicationFabrics { * @param [options] The optional parameters * @returns Promise */ - get(fabricName: string, options?: msRest.RequestOptionsBase): Promise; + get(fabricName: string, options?: Models.ReplicationFabricsGetOptionalParams): Promise; /** * @param fabricName Fabric name. * @param callback The callback @@ -70,8 +69,8 @@ export class ReplicationFabrics { * @param options The optional parameters * @param callback The callback */ - get(fabricName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(fabricName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(fabricName: string, options: Models.ReplicationFabricsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(fabricName: string, options?: Models.ReplicationFabricsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { fabricName, @@ -82,7 +81,7 @@ export class ReplicationFabrics { } /** - * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site) + * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * @summary Creates an Azure Site Recovery fabric. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. @@ -146,7 +145,7 @@ export class ReplicationFabrics { /** * The operation to delete or remove an Azure Site Recovery fabric. * @summary Deletes the site. - * @param fabricName ASR fabric to delete + * @param fabricName ASR fabric to delete. * @param [options] The optional parameters * @returns Promise */ @@ -169,7 +168,7 @@ export class ReplicationFabrics { } /** - * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site) + * The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). * @summary Creates an Azure Site Recovery fabric. * @param fabricName Name of the ASR fabric. * @param input Fabric creation input. @@ -260,7 +259,7 @@ export class ReplicationFabrics { /** * The operation to delete or remove an Azure Site Recovery fabric. * @summary Deletes the site. - * @param fabricName ASR fabric to delete + * @param fabricName ASR fabric to delete. * @param [options] The optional parameters * @returns Promise */ @@ -295,7 +294,7 @@ export class ReplicationFabrics { /** * Gets a list of the Azure Site Recovery fabrics in the vault. - * @summary Gets the list of ASR fabrics + * @summary Gets the list of ASR fabrics. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -327,7 +326,7 @@ export class ReplicationFabrics { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -352,7 +351,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -360,7 +359,8 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.fabricName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion, + Parameters.filter ], headerParameters: [ Parameters.acceptLanguage @@ -378,7 +378,7 @@ const getOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -412,7 +412,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginPurgeOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -437,7 +437,7 @@ const beginPurgeOperationSpec: msRest.OperationSpec = { const beginCheckConsistencyOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/checkConsistency", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/checkConsistency", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -464,7 +464,7 @@ const beginCheckConsistencyOperationSpec: msRest.OperationSpec = { const beginMigrateToAadOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/migratetoaad", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/migratetoaad", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -489,7 +489,7 @@ const beginMigrateToAadOperationSpec: msRest.OperationSpec = { const beginReassociateGatewayOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/reassociateGateway", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/reassociateGateway", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -523,7 +523,7 @@ const beginReassociateGatewayOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/remove", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/remove", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -548,7 +548,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginRenewCertificateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/renewCertificate", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/renewCertificate", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -587,6 +587,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationJobs.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationJobs.ts index fb2ac84965b2..979f9c0cc1cd 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationJobs.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationJobs.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 @@ -55,18 +54,18 @@ export class ReplicationJobs { /** * Get the details of an Azure Site Recovery job. * @summary Gets the job details. - * @param jobName Job identifier + * @param jobName Job identifier. * @param [options] The optional parameters * @returns Promise */ get(jobName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param jobName Job identifier + * @param jobName Job identifier. * @param callback The callback */ get(jobName: string, callback: msRest.ServiceCallback): void; /** - * @param jobName Job identifier + * @param jobName Job identifier. * @param options The optional parameters * @param callback The callback */ @@ -84,7 +83,7 @@ export class ReplicationJobs { /** * The operation to cancel an Azure Site Recovery job. * @summary Cancels the specified job. - * @param jobName Job indentifier. + * @param jobName Job identifier. * @param [options] The optional parameters * @returns Promise */ @@ -106,7 +105,7 @@ export class ReplicationJobs { } /** - * The operation to resume an Azure Site Recovery job + * The operation to resume an Azure Site Recovery job. * @summary Resumes the specified job. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. @@ -133,7 +132,7 @@ export class ReplicationJobs { /** * The operation to cancel an Azure Site Recovery job. * @summary Cancels the specified job. - * @param jobName Job indentifier. + * @param jobName Job identifier. * @param [options] The optional parameters * @returns Promise */ @@ -165,7 +164,7 @@ export class ReplicationJobs { } /** - * The operation to resume an Azure Site Recovery job + * The operation to resume an Azure Site Recovery job. * @summary Resumes the specified job. * @param jobName Job identifier. * @param resumeJobParams Resume rob comments. @@ -207,7 +206,7 @@ export class ReplicationJobs { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ReplicationJobsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -218,8 +217,8 @@ export class ReplicationJobs { * @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.ReplicationJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ReplicationJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -234,7 +233,7 @@ export class ReplicationJobs { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -260,7 +259,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -286,7 +285,7 @@ const getOperationSpec: msRest.OperationSpec = { const beginCancelOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/cancel", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/cancel", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -313,7 +312,7 @@ const beginCancelOperationSpec: msRest.OperationSpec = { const beginRestartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/restart", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/restart", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -340,7 +339,7 @@ const beginRestartOperationSpec: msRest.OperationSpec = { const beginResumeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/resume", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}/resume", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -374,7 +373,7 @@ const beginResumeOperationSpec: msRest.OperationSpec = { const beginExportMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/export", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/export", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -412,6 +411,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationLogicalNetworks.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationLogicalNetworks.ts index fa371cb47086..5513242c266f 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationLogicalNetworks.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationLogicalNetworks.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 @@ -27,7 +26,7 @@ export class ReplicationLogicalNetworks { } /** - * Lists all the logical networks of the Azure Site Recovery fabric + * Lists all the logical networks of the Azure Site Recovery fabric. * @summary Gets the list of logical networks under a fabric. * @param fabricName Server Id. * @param [options] The optional parameters @@ -89,7 +88,7 @@ export class ReplicationLogicalNetworks { } /** - * Lists all the logical networks of the Azure Site Recovery fabric + * Lists all the logical networks of the Azure Site Recovery fabric. * @summary Gets the list of logical networks under a fabric. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters @@ -122,7 +121,7 @@ export class ReplicationLogicalNetworks { const serializer = new msRest.Serializer(Mappers); const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationLogicalNetworks", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationLogicalNetworks", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -148,7 +147,7 @@ const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationLogicalNetworks/{logicalNetworkName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationLogicalNetworks/{logicalNetworkName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -180,6 +179,9 @@ const listByReplicationFabricsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationMigrationItems.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationMigrationItems.ts new file mode 100644 index 000000000000..db7e1604f499 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationMigrationItems.ts @@ -0,0 +1,828 @@ +/* + * 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/replicationMigrationItemsMappers"; +import * as Parameters from "../models/parameters"; +import { SiteRecoveryManagementClientContext } from "../siteRecoveryManagementClientContext"; + +/** Class representing a ReplicationMigrationItems. */ +export class ReplicationMigrationItems { + private readonly client: SiteRecoveryManagementClientContext; + + /** + * Create a ReplicationMigrationItems. + * @param {SiteRecoveryManagementClientContext} client Reference to the service client. + */ + constructor(client: SiteRecoveryManagementClientContext) { + this.client = client; + } + + /** + * Gets the list of ASR migration items in the protection container. + * @summary Gets the list of migration items in the protection container. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param [options] The optional parameters + * @returns Promise + */ + listByReplicationProtectionContainers(fabricName: string, protectionContainerName: string, options?: Models.ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams): Promise; + /** + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param callback The callback + */ + listByReplicationProtectionContainers(fabricName: string, protectionContainerName: string, callback: msRest.ServiceCallback): void; + /** + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param options The optional parameters + * @param callback The callback + */ + listByReplicationProtectionContainers(fabricName: string, protectionContainerName: string, options: Models.ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams, callback: msRest.ServiceCallback): void; + listByReplicationProtectionContainers(fabricName: string, protectionContainerName: string, options?: Models.ReplicationMigrationItemsListByReplicationProtectionContainersOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + fabricName, + protectionContainerName, + options + }, + listByReplicationProtectionContainersOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets the details of a migration item. + * @param fabricName Fabric unique name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param [options] The optional parameters + * @returns Promise + */ + get(fabricName: string, protectionContainerName: string, migrationItemName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param fabricName Fabric unique name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param callback The callback + */ + get(fabricName: string, protectionContainerName: string, migrationItemName: string, callback: msRest.ServiceCallback): void; + /** + * @param fabricName Fabric unique name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param options The optional parameters + * @param callback The callback + */ + get(fabricName: string, protectionContainerName: string, migrationItemName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(fabricName: string, protectionContainerName: string, migrationItemName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + fabricName, + protectionContainerName, + migrationItemName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * The operation to create an ASR migration item (enable migration). + * @summary Enables migration. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param input Enable migration input. + * @param [options] The optional parameters + * @returns Promise + */ + create(fabricName: string, protectionContainerName: string, migrationItemName: string, input: Models.EnableMigrationInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(fabricName,protectionContainerName,migrationItemName,input,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to delete an ASR migration item. + * @summary Delete the migration item. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(fabricName: string, protectionContainerName: string, migrationItemName: string, options?: Models.ReplicationMigrationItemsDeleteMethodOptionalParams): Promise { + return this.beginDeleteMethod(fabricName,protectionContainerName,migrationItemName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The operation to update the recovery settings of an ASR migration item. + * @summary Updates migration item. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param input Update migration item input. + * @param [options] The optional parameters + * @returns Promise + */ + update(fabricName: string, protectionContainerName: string, migrationItemName: string, input: Models.UpdateMigrationItemInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(fabricName,protectionContainerName,migrationItemName,input,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to initiate migration of the item. + * @summary Migrate item. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param migrateInput Migrate input. + * @param [options] The optional parameters + * @returns Promise + */ + migrate(fabricName: string, protectionContainerName: string, migrationItemName: string, migrateInput: Models.MigrateInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrate(fabricName,protectionContainerName,migrationItemName,migrateInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to resynchronize replication of an ASR migration item. + * @summary Resynchronizes replication. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param input Resync input. + * @param [options] The optional parameters + * @returns Promise + */ + resync(fabricName: string, protectionContainerName: string, migrationItemName: string, input: Models.ResyncInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginResync(fabricName,protectionContainerName,migrationItemName,input,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to initiate test migration of the item. + * @summary Test migrate item. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param testMigrateInput Test migrate input. + * @param [options] The optional parameters + * @returns Promise + */ + testMigrate(fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateInput: Models.TestMigrateInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginTestMigrate(fabricName,protectionContainerName,migrationItemName,testMigrateInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to initiate test migrate cleanup. + * @summary Test migrate cleanup. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param testMigrateCleanupInput Test migrate cleanup input. + * @param [options] The optional parameters + * @returns Promise + */ + testMigrateCleanup(fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateCleanupInput: Models.TestMigrateCleanupInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginTestMigrateCleanup(fabricName,protectionContainerName,migrationItemName,testMigrateCleanupInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Gets the list of migration items in the vault. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: Models.ReplicationMigrationItemsListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: Models.ReplicationMigrationItemsListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.ReplicationMigrationItemsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * The operation to create an ASR migration item (enable migration). + * @summary Enables migration. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param input Enable migration input. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(fabricName: string, protectionContainerName: string, migrationItemName: string, input: Models.EnableMigrationInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + migrationItemName, + input, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * The operation to delete an ASR migration item. + * @summary Delete the migration item. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(fabricName: string, protectionContainerName: string, migrationItemName: string, options?: Models.ReplicationMigrationItemsBeginDeleteMethodOptionalParams): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + migrationItemName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * The operation to update the recovery settings of an ASR migration item. + * @summary Updates migration item. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param input Update migration item input. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(fabricName: string, protectionContainerName: string, migrationItemName: string, input: Models.UpdateMigrationItemInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + migrationItemName, + input, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * The operation to initiate migration of the item. + * @summary Migrate item. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param migrateInput Migrate input. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrate(fabricName: string, protectionContainerName: string, migrationItemName: string, migrateInput: Models.MigrateInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + migrationItemName, + migrateInput, + options + }, + beginMigrateOperationSpec, + options); + } + + /** + * The operation to resynchronize replication of an ASR migration item. + * @summary Resynchronizes replication. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param input Resync input. + * @param [options] The optional parameters + * @returns Promise + */ + beginResync(fabricName: string, protectionContainerName: string, migrationItemName: string, input: Models.ResyncInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + migrationItemName, + input, + options + }, + beginResyncOperationSpec, + options); + } + + /** + * The operation to initiate test migration of the item. + * @summary Test migrate item. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param testMigrateInput Test migrate input. + * @param [options] The optional parameters + * @returns Promise + */ + beginTestMigrate(fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateInput: Models.TestMigrateInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + migrationItemName, + testMigrateInput, + options + }, + beginTestMigrateOperationSpec, + options); + } + + /** + * The operation to initiate test migrate cleanup. + * @summary Test migrate cleanup. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param migrationItemName Migration item name. + * @param testMigrateCleanupInput Test migrate cleanup input. + * @param [options] The optional parameters + * @returns Promise + */ + beginTestMigrateCleanup(fabricName: string, protectionContainerName: string, migrationItemName: string, testMigrateCleanupInput: Models.TestMigrateCleanupInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + migrationItemName, + testMigrateCleanupInput, + options + }, + beginTestMigrateCleanupOperationSpec, + options); + } + + /** + * Gets the list of ASR migration items in the protection container. + * @summary Gets the list of migration items in the protection container. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByReplicationProtectionContainersNext(nextPageLink: string, options?: Models.ReplicationMigrationItemsListByReplicationProtectionContainersNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByReplicationProtectionContainersNext(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 + */ + listByReplicationProtectionContainersNext(nextPageLink: string, options: Models.ReplicationMigrationItemsListByReplicationProtectionContainersNextOptionalParams, callback: msRest.ServiceCallback): void; + listByReplicationProtectionContainersNext(nextPageLink: string, options?: Models.ReplicationMigrationItemsListByReplicationProtectionContainersNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByReplicationProtectionContainersNextOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets the list of migration items in the vault. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.ReplicationMigrationItemsListNextOptionalParams): 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.ReplicationMigrationItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ReplicationMigrationItemsListNextOptionalParams | 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 listByReplicationProtectionContainersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken0, + Parameters.takeToken, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MigrationItemCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.migrationItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MigrationItem + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationMigrationItems", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken0, + Parameters.takeToken, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MigrationItemCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.migrationItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "input", + mapper: { + ...Mappers.EnableMigrationInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.MigrationItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.migrationItemName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.deleteOption + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.migrationItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "input", + mapper: { + ...Mappers.UpdateMigrationItemInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.MigrationItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/migrate", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.migrationItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "migrateInput", + mapper: { + ...Mappers.MigrateInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.MigrationItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginResyncOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/resync", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.migrationItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "input", + mapper: { + ...Mappers.ResyncInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.MigrationItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginTestMigrateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/testMigrate", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.migrationItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "testMigrateInput", + mapper: { + ...Mappers.TestMigrateInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.MigrationItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginTestMigrateCleanupOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}/testMigrateCleanup", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.migrationItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "testMigrateCleanupInput", + mapper: { + ...Mappers.TestMigrateCleanupInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.MigrationItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByReplicationProtectionContainersNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken0, + Parameters.takeToken, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MigrationItemCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken0, + Parameters.takeToken, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MigrationItemCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworkMappings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworkMappings.ts index 68456734a9af..84b5425591f9 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworkMappings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworkMappings.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 @@ -61,7 +60,7 @@ export class ReplicationNetworkMappings { } /** - * Gets the details of an ASR network mapping + * Gets the details of an ASR network mapping. * @summary Gets network mapping by name. * @param fabricName Primary fabric name. * @param networkName Primary network name. @@ -296,7 +295,7 @@ export class ReplicationNetworkMappings { const serializer = new msRest.Serializer(Mappers); const listByReplicationNetworksOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -323,7 +322,7 @@ const listByReplicationNetworksOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -351,7 +350,7 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworkMappings", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworkMappings", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -376,7 +375,7 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -412,7 +411,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -439,7 +438,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -480,6 +479,9 @@ const listByReplicationNetworksNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -501,6 +503,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworks.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworks.ts index fd550486e5f3..e2ca3e1bc706 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworks.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationNetworks.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,18 +28,18 @@ export class ReplicationNetworks { /** * Lists the networks available for a fabric. * @summary Gets the list of networks under a fabric. - * @param fabricName Fabric name + * @param fabricName Fabric name. * @param [options] The optional parameters * @returns Promise */ listByReplicationFabrics(fabricName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param fabricName Fabric name + * @param fabricName Fabric name. * @param callback The callback */ listByReplicationFabrics(fabricName: string, callback: msRest.ServiceCallback): void; /** - * @param fabricName Fabric name + * @param fabricName Fabric name. * @param options The optional parameters * @param callback The callback */ @@ -89,7 +88,7 @@ export class ReplicationNetworks { } /** - * Lists the networks available in a vault + * Lists the networks available in a vault. * @summary Gets the list of networks. View-only API. * @param [options] The optional parameters * @returns Promise @@ -143,7 +142,7 @@ export class ReplicationNetworks { } /** - * Lists the networks available in a vault + * Lists the networks available in a vault. * @summary Gets the list of networks. View-only API. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters @@ -176,7 +175,7 @@ export class ReplicationNetworks { const serializer = new msRest.Serializer(Mappers); const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -202,7 +201,7 @@ const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -229,7 +228,7 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworks", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworks", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -259,6 +258,9 @@ const listByReplicationFabricsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -280,6 +282,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationPolicies.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationPolicies.ts index ad5a7e8193bf..c25bf629663f 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationPolicies.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationPolicies.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 ReplicationPolicies { /** * Lists the replication policies for a vault. - * @summary Gets the list of replication policies + * @summary Gets the list of replication policies. * @param [options] The optional parameters * @returns Promise */ @@ -82,10 +81,10 @@ export class ReplicationPolicies { } /** - * The operation to create a replication policy + * The operation to create a replication policy. * @summary Creates the policy. - * @param policyName Replication policy name - * @param input Create policy input + * @param policyName Replication policy name. + * @param input Create policy input. * @param [options] The optional parameters * @returns Promise */ @@ -110,7 +109,7 @@ export class ReplicationPolicies { * The operation to update a replication policy. * @summary Updates the policy. * @param policyName Policy Id. - * @param input Update Policy Input + * @param input Update Policy Input. * @param [options] The optional parameters * @returns Promise */ @@ -120,10 +119,10 @@ export class ReplicationPolicies { } /** - * The operation to create a replication policy + * The operation to create a replication policy. * @summary Creates the policy. - * @param policyName Replication policy name - * @param input Create policy input + * @param policyName Replication policy name. + * @param input Create policy input. * @param [options] The optional parameters * @returns Promise */ @@ -159,7 +158,7 @@ export class ReplicationPolicies { * The operation to update a replication policy. * @summary Updates the policy. * @param policyName Policy Id. - * @param input Update Policy Input + * @param input Update Policy Input. * @param [options] The optional parameters * @returns Promise */ @@ -176,7 +175,7 @@ export class ReplicationPolicies { /** * Lists the replication policies for a vault. - * @summary Gets the list of replication policies + * @summary Gets the list of replication policies. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -208,7 +207,7 @@ export class ReplicationPolicies { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -233,7 +232,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -259,7 +258,7 @@ const getOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -293,7 +292,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -318,7 +317,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -357,6 +356,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectableItems.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectableItems.ts index 4c2d2bc2768c..1f6a1ded0be8 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectableItems.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectableItems.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 @@ -105,7 +104,7 @@ export class ReplicationProtectableItems { * @returns * Promise */ - listByReplicationProtectionContainersNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByReplicationProtectionContainersNext(nextPageLink: string, options?: Models.ReplicationProtectableItemsListByReplicationProtectionContainersNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -116,8 +115,8 @@ export class ReplicationProtectableItems { * @param options The optional parameters * @param callback The callback */ - listByReplicationProtectionContainersNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByReplicationProtectionContainersNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByReplicationProtectionContainersNext(nextPageLink: string, options: Models.ReplicationProtectableItemsListByReplicationProtectionContainersNextOptionalParams, callback: msRest.ServiceCallback): void; + listByReplicationProtectionContainersNext(nextPageLink: string, options?: Models.ReplicationProtectableItemsListByReplicationProtectionContainersNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -132,7 +131,7 @@ export class ReplicationProtectableItems { const serializer = new msRest.Serializer(Mappers); const listByReplicationProtectionContainersOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -142,7 +141,9 @@ const listByReplicationProtectionContainersOperationSpec: msRest.OperationSpec = ], queryParameters: [ Parameters.apiVersion, - Parameters.filter + Parameters.filter, + Parameters.take, + Parameters.skipToken1 ], headerParameters: [ Parameters.acceptLanguage @@ -160,7 +161,7 @@ const listByReplicationProtectionContainersOperationSpec: msRest.OperationSpec = const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems/{protectableItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems/{protectableItemName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -193,6 +194,12 @@ const listByReplicationProtectionContainersNextOperationSpec: msRest.OperationSp urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.take, + Parameters.skipToken1 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectedItems.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectedItems.ts index 8d142df82139..7eaadc96dd93 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectedItems.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectedItems.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 @@ -130,7 +129,7 @@ export class ReplicationProtectedItems { /** * The operation to update the recovery settings of an ASR replication protected item. - * @summary Updates protection. + * @summary Updates the replication protected item settings. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -143,12 +142,27 @@ export class ReplicationProtectedItems { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Operation to add disks(s) to the replication protected item. + * @summary Add disk(s) for protection. + * @param fabricName Unique fabric name. + * @param protectionContainerName Protection container name. + * @param replicatedProtectedItemName Replication protected item name. + * @param addDisksInput Add disks input. + * @param [options] The optional parameters + * @returns Promise + */ + addDisks(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, addDisksInput: Models.AddDisksInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginAddDisks(fabricName,protectionContainerName,replicatedProtectedItemName,addDisksInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * The operation to change the recovery point of a failed over replication protected item. * @summary Change or apply recovery point. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. - * @param replicatedProtectedItemName The replicated protected item's name. + * @param replicatedProtectedItemName The replicated protected item name. * @param applyRecoveryPointInput The ApplyRecoveryPointInput. * @param [options] The optional parameters * @returns Promise @@ -158,9 +172,23 @@ export class ReplicationProtectedItems { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Operation to cancel the failover of the replication protected item. + * @summary Execute cancel failover. + * @param fabricName Unique fabric name. + * @param protectionContainerName Protection container name. + * @param replicatedProtectedItemName Replication protected item name. + * @param [options] The optional parameters + * @returns Promise + */ + failoverCancel(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginFailoverCancel(fabricName,protectionContainerName,replicatedProtectedItemName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Operation to commit the failover of the replication protected item. - * @summary Execute commit failover + * @summary Execute commit failover. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -174,11 +202,11 @@ export class ReplicationProtectedItems { /** * Operation to initiate a planned failover of the replication protected item. - * @summary Execute planned failover + * @summary Execute planned failover. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. - * @param failoverInput Disable protection input. + * @param failoverInput Planned failover input. * @param [options] The optional parameters * @returns Promise */ @@ -203,6 +231,21 @@ export class ReplicationProtectedItems { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Operation to remove disk(s) from the replication protected item. + * @summary Removes disk(s). + * @param fabricName Unique fabric name. + * @param protectionContainerName Protection container name. + * @param replicatedProtectedItemName Replication protected item name. + * @param removeDisksInput Remove disks input. + * @param [options] The optional parameters + * @returns Promise + */ + removeDisks(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, removeDisksInput: Models.RemoveDisksInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginRemoveDisks(fabricName,protectionContainerName,replicatedProtectedItemName,removeDisksInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * The operation to start resynchronize/repair replication for a replication protected item * requiring resynchronization. @@ -220,31 +263,46 @@ export class ReplicationProtectedItems { /** * Operation to reprotect or reverse replicate a failed over replication protected item. - * @summary Execute Reverse Replication\Reprotect + * @summary Execute Reverse Replication\Reprotect. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. - * @param rrInput Disable protection input. + * @param reprotectInput Reverse replication input. * @param [options] The optional parameters * @returns Promise */ - reprotect(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, rrInput: Models.ReverseReplicationInput, options?: msRest.RequestOptionsBase): Promise { - return this.beginReprotect(fabricName,protectionContainerName,replicatedProtectedItemName,rrInput,options) + reprotect(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, reprotectInput: Models.ReverseReplicationInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginReprotect(fabricName,protectionContainerName,replicatedProtectedItemName,reprotectInput,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Operation to resolve health issues of the replication protected item. + * @summary Resolve health errors. + * @param fabricName Unique fabric name. + * @param protectionContainerName Protection container name. + * @param replicatedProtectedItemName Replication protected item name. + * @param resolveHealthInput Health issue input object. + * @param [options] The optional parameters + * @returns Promise + */ + resolveHealthErrors(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, resolveHealthInput: Models.ResolveHealthInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginResolveHealthErrors(fabricName,protectionContainerName,replicatedProtectedItemName,resolveHealthInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Operation to perform a test failover of the replication protected item. - * @summary Execute test failover + * @summary Execute test failover. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. - * @param failoverInput Test failover input. + * @param testfailoverInput Test failover input. * @param [options] The optional parameters * @returns Promise */ - testFailover(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, failoverInput: Models.TestFailoverInput, options?: msRest.RequestOptionsBase): Promise { - return this.beginTestFailover(fabricName,protectionContainerName,replicatedProtectedItemName,failoverInput,options) + testFailover(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, testfailoverInput: Models.TestFailoverInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginTestFailover(fabricName,protectionContainerName,replicatedProtectedItemName,testfailoverInput,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -265,11 +323,11 @@ export class ReplicationProtectedItems { /** * Operation to initiate a failover of the replication protected item. - * @summary Execute unplanned failover + * @summary Execute unplanned failover. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. - * @param failoverInput Disable protection input. + * @param failoverInput Failover input. * @param [options] The optional parameters * @returns Promise */ @@ -278,6 +336,21 @@ export class ReplicationProtectedItems { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * The operation to update appliance of an ASR replication protected item. + * @summary Updates appliance for replication protected Item. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicatedProtectedItemName Replication protected item name. + * @param applianceUpdateInput Appliance update protection input. + * @param [options] The optional parameters + * @returns Promise + */ + updateAppliance(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, applianceUpdateInput: Models.UpdateApplianceForReplicationProtectedItemInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateAppliance(fabricName,protectionContainerName,replicatedProtectedItemName,applianceUpdateInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * The operation to update(push update) the installed mobility service software on a replication * protected item to the latest available version. @@ -369,7 +442,7 @@ export class ReplicationProtectedItems { /** * The operation to update the recovery settings of an ASR replication protected item. - * @summary Updates protection. + * @summary Updates the replication protected item settings. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -390,12 +463,35 @@ export class ReplicationProtectedItems { options); } + /** + * Operation to add disks(s) to the replication protected item. + * @summary Add disk(s) for protection. + * @param fabricName Unique fabric name. + * @param protectionContainerName Protection container name. + * @param replicatedProtectedItemName Replication protected item name. + * @param addDisksInput Add disks input. + * @param [options] The optional parameters + * @returns Promise + */ + beginAddDisks(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, addDisksInput: Models.AddDisksInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + replicatedProtectedItemName, + addDisksInput, + options + }, + beginAddDisksOperationSpec, + options); + } + /** * The operation to change the recovery point of a failed over replication protected item. * @summary Change or apply recovery point. * @param fabricName The ARM fabric name. * @param protectionContainerName The protection container name. - * @param replicatedProtectedItemName The replicated protected item's name. + * @param replicatedProtectedItemName The replicated protected item name. * @param applyRecoveryPointInput The ApplyRecoveryPointInput. * @param [options] The optional parameters * @returns Promise @@ -413,9 +509,30 @@ export class ReplicationProtectedItems { options); } + /** + * Operation to cancel the failover of the replication protected item. + * @summary Execute cancel failover. + * @param fabricName Unique fabric name. + * @param protectionContainerName Protection container name. + * @param replicatedProtectedItemName Replication protected item name. + * @param [options] The optional parameters + * @returns Promise + */ + beginFailoverCancel(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + replicatedProtectedItemName, + options + }, + beginFailoverCancelOperationSpec, + options); + } + /** * Operation to commit the failover of the replication protected item. - * @summary Execute commit failover + * @summary Execute commit failover. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. @@ -436,11 +553,11 @@ export class ReplicationProtectedItems { /** * Operation to initiate a planned failover of the replication protected item. - * @summary Execute planned failover + * @summary Execute planned failover. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. - * @param failoverInput Disable protection input. + * @param failoverInput Planned failover input. * @param [options] The optional parameters * @returns Promise */ @@ -481,6 +598,29 @@ export class ReplicationProtectedItems { options); } + /** + * Operation to remove disk(s) from the replication protected item. + * @summary Removes disk(s). + * @param fabricName Unique fabric name. + * @param protectionContainerName Protection container name. + * @param replicatedProtectedItemName Replication protected item name. + * @param removeDisksInput Remove disks input. + * @param [options] The optional parameters + * @returns Promise + */ + beginRemoveDisks(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, removeDisksInput: Models.RemoveDisksInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + replicatedProtectedItemName, + removeDisksInput, + options + }, + beginRemoveDisksOperationSpec, + options); + } + /** * The operation to start resynchronize/repair replication for a replication protected item * requiring resynchronization. @@ -505,44 +645,67 @@ export class ReplicationProtectedItems { /** * Operation to reprotect or reverse replicate a failed over replication protected item. - * @summary Execute Reverse Replication\Reprotect + * @summary Execute Reverse Replication\Reprotect. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. - * @param rrInput Disable protection input. + * @param reprotectInput Reverse replication input. * @param [options] The optional parameters * @returns Promise */ - beginReprotect(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, rrInput: Models.ReverseReplicationInput, options?: msRest.RequestOptionsBase): Promise { + beginReprotect(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, reprotectInput: Models.ReverseReplicationInput, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { fabricName, protectionContainerName, replicatedProtectedItemName, - rrInput, + reprotectInput, options }, beginReprotectOperationSpec, options); } + /** + * Operation to resolve health issues of the replication protected item. + * @summary Resolve health errors. + * @param fabricName Unique fabric name. + * @param protectionContainerName Protection container name. + * @param replicatedProtectedItemName Replication protected item name. + * @param resolveHealthInput Health issue input object. + * @param [options] The optional parameters + * @returns Promise + */ + beginResolveHealthErrors(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, resolveHealthInput: Models.ResolveHealthInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + replicatedProtectedItemName, + resolveHealthInput, + options + }, + beginResolveHealthErrorsOperationSpec, + options); + } + /** * Operation to perform a test failover of the replication protected item. - * @summary Execute test failover + * @summary Execute test failover. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. - * @param failoverInput Test failover input. + * @param testfailoverInput Test failover input. * @param [options] The optional parameters * @returns Promise */ - beginTestFailover(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, failoverInput: Models.TestFailoverInput, options?: msRest.RequestOptionsBase): Promise { + beginTestFailover(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, testfailoverInput: Models.TestFailoverInput, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { fabricName, protectionContainerName, replicatedProtectedItemName, - failoverInput, + testfailoverInput, options }, beginTestFailoverOperationSpec, @@ -574,11 +737,11 @@ export class ReplicationProtectedItems { /** * Operation to initiate a failover of the replication protected item. - * @summary Execute unplanned failover + * @summary Execute unplanned failover. * @param fabricName Unique fabric name. * @param protectionContainerName Protection container name. * @param replicatedProtectedItemName Replication protected item name. - * @param failoverInput Disable protection input. + * @param failoverInput Failover input. * @param [options] The optional parameters * @returns Promise */ @@ -595,6 +758,29 @@ export class ReplicationProtectedItems { options); } + /** + * The operation to update appliance of an ASR replication protected item. + * @summary Updates appliance for replication protected Item. + * @param fabricName Fabric name. + * @param protectionContainerName Protection container name. + * @param replicatedProtectedItemName Replication protected item name. + * @param applianceUpdateInput Appliance update protection input. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateAppliance(fabricName: string, protectionContainerName: string, replicatedProtectedItemName: string, applianceUpdateInput: Models.UpdateApplianceForReplicationProtectedItemInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + protectionContainerName, + replicatedProtectedItemName, + applianceUpdateInput, + options + }, + beginUpdateApplianceOperationSpec, + options); + } + /** * The operation to update(push update) the installed mobility service software on a replication * protected item to the latest available version. @@ -658,7 +844,7 @@ export class ReplicationProtectedItems { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ReplicationProtectedItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -669,8 +855,8 @@ export class ReplicationProtectedItems { * @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.ReplicationProtectedItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ReplicationProtectedItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -685,7 +871,7 @@ export class ReplicationProtectedItems { const serializer = new msRest.Serializer(Mappers); const listByReplicationProtectionContainersOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -712,7 +898,7 @@ const listByReplicationProtectionContainersOperationSpec: msRest.OperationSpec = const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -740,7 +926,7 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectedItems", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectedItems", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -748,7 +934,7 @@ const listOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skipToken, + Parameters.skipToken0, Parameters.filter ], headerParameters: [ @@ -767,7 +953,7 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -803,7 +989,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginPurgeOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -830,7 +1016,7 @@ const beginPurgeOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -864,9 +1050,45 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { serializer }; +const beginAddDisksOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/addDisks", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.replicatedProtectedItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "addDisksInput", + mapper: { + ...Mappers.AddDisksInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectedItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginApplyRecoveryPointOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -900,9 +1122,38 @@ const beginApplyRecoveryPointOperationSpec: msRest.OperationSpec = { serializer }; +const beginFailoverCancelOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCancel", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.replicatedProtectedItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectedItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginFailoverCommitOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCommit", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCommit", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -931,7 +1182,7 @@ const beginFailoverCommitOperationSpec: msRest.OperationSpec = { const beginPlannedFailoverOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/plannedFailover", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/plannedFailover", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -967,7 +1218,7 @@ const beginPlannedFailoverOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/remove", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/remove", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -999,9 +1250,45 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const beginRemoveDisksOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/removeDisks", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.replicatedProtectedItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "removeDisksInput", + mapper: { + ...Mappers.RemoveDisksInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectedItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginRepairReplicationOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -1030,7 +1317,7 @@ const beginRepairReplicationOperationSpec: msRest.OperationSpec = { const beginReprotectOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/reProtect", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/reProtect", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -1046,7 +1333,7 @@ const beginReprotectOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "rrInput", + parameterPath: "reprotectInput", mapper: { ...Mappers.ReverseReplicationInput, required: true @@ -1064,9 +1351,45 @@ const beginReprotectOperationSpec: msRest.OperationSpec = { serializer }; +const beginResolveHealthErrorsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/resolveHealthErrors", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.replicatedProtectedItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "resolveHealthInput", + mapper: { + ...Mappers.ResolveHealthInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectedItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginTestFailoverOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailover", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailover", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -1082,7 +1405,7 @@ const beginTestFailoverOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "failoverInput", + parameterPath: "testfailoverInput", mapper: { ...Mappers.TestFailoverInput, required: true @@ -1102,7 +1425,7 @@ const beginTestFailoverOperationSpec: msRest.OperationSpec = { const beginTestFailoverCleanupOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailoverCleanup", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailoverCleanup", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -1138,7 +1461,7 @@ const beginTestFailoverCleanupOperationSpec: msRest.OperationSpec = { const beginUnplannedFailoverOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/unplannedFailover", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/unplannedFailover", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -1172,9 +1495,45 @@ const beginUnplannedFailoverOperationSpec: msRest.OperationSpec = { serializer }; +const beginUpdateApplianceOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/updateAppliance", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.protectionContainerName, + Parameters.replicatedProtectedItemName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "applianceUpdateInput", + mapper: { + ...Mappers.UpdateApplianceForReplicationProtectedItemInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectedItem + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginUpdateMobilityServiceOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}/updateMobilityService", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}/updateMobilityService", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -1215,6 +1574,9 @@ const listByReplicationProtectionContainersNextOperationSpec: msRest.OperationSp urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1236,6 +1598,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainerMappings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainerMappings.ts index 1e218a24293f..c9ddcb6e5dde 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainerMappings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainerMappings.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 @@ -63,7 +62,7 @@ export class ReplicationProtectionContainerMappings { /** * Gets the details of a protection container mapping. - * @summary Gets a protection container mapping/ + * @summary Gets a protection container mapping. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. * @param mappingName Protection Container mapping name. @@ -114,7 +113,7 @@ export class ReplicationProtectionContainerMappings { } /** - * The operation to purge(force delete) a protection container mapping + * The operation to purge(force delete) a protection container mapping. * @summary Purge protection container mapping. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. @@ -206,7 +205,7 @@ export class ReplicationProtectionContainerMappings { } /** - * The operation to purge(force delete) a protection container mapping + * The operation to purge(force delete) a protection container mapping. * @summary Purge protection container mapping. * @param fabricName Fabric name. * @param protectionContainerName Protection container name. @@ -336,7 +335,7 @@ export class ReplicationProtectionContainerMappings { const serializer = new msRest.Serializer(Mappers); const listByReplicationProtectionContainersOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -363,7 +362,7 @@ const listByReplicationProtectionContainersOperationSpec: msRest.OperationSpec = const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -391,7 +390,7 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainerMappings", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainerMappings", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -416,7 +415,7 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -452,7 +451,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginPurgeOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -479,7 +478,7 @@ const beginPurgeOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -515,7 +514,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}/remove", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}/remove", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -554,6 +553,9 @@ const listByReplicationProtectionContainersNextOperationSpec: msRest.OperationSp urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -575,6 +577,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainers.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainers.ts index 16e8b340f1e0..93fda5607b41 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainers.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionContainers.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 @@ -104,7 +103,7 @@ export class ReplicationProtectionContainers { } /** - * The operation to a add a protectable item to a protection container(Add physical server.) + * The operation to a add a protectable item to a protection container(Add physical server). * @summary Adds a protectable item to the replication protection container. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. @@ -193,7 +192,7 @@ export class ReplicationProtectionContainers { } /** - * The operation to a add a protectable item to a protection container(Add physical server.) + * The operation to a add a protectable item to a protection container(Add physical server). * @summary Adds a protectable item to the replication protection container. * @param fabricName The name of the fabric. * @param protectionContainerName The name of the protection container. @@ -318,7 +317,7 @@ export class ReplicationProtectionContainers { const serializer = new msRest.Serializer(Mappers); const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -344,7 +343,7 @@ const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -371,7 +370,7 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainers", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -396,7 +395,7 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -431,7 +430,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDiscoverProtectableItemOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/discoverProtectableItem", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/discoverProtectableItem", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -466,7 +465,7 @@ const beginDiscoverProtectableItemOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/remove", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/remove", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -492,7 +491,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginSwitchProtectionOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchprotection", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchprotection", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -532,6 +531,9 @@ const listByReplicationFabricsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -553,6 +555,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionIntents.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionIntents.ts new file mode 100644 index 000000000000..c17a1a8534f1 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationProtectionIntents.ts @@ -0,0 +1,257 @@ +/* + * 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/replicationProtectionIntentsMappers"; +import * as Parameters from "../models/parameters"; +import { SiteRecoveryManagementClientContext } from "../siteRecoveryManagementClientContext"; + +/** Class representing a ReplicationProtectionIntents. */ +export class ReplicationProtectionIntents { + private readonly client: SiteRecoveryManagementClientContext; + + /** + * Create a ReplicationProtectionIntents. + * @param {SiteRecoveryManagementClientContext} client Reference to the service client. + */ + constructor(client: SiteRecoveryManagementClientContext) { + this.client = client; + } + + /** + * Gets the list of ASR replication protection intent objects in the vault. + * @summary Gets the list of replication protection intent objects. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: Models.ReplicationProtectionIntentsListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: Models.ReplicationProtectionIntentsListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.ReplicationProtectionIntentsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of an ASR replication protection intent. + * @summary Gets the details of a Replication protection intent item. + * @param intentObjectName Replication protection intent name. + * @param [options] The optional parameters + * @returns Promise + */ + get(intentObjectName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param intentObjectName Replication protection intent name. + * @param callback The callback + */ + get(intentObjectName: string, callback: msRest.ServiceCallback): void; + /** + * @param intentObjectName Replication protection intent name. + * @param options The optional parameters + * @param callback The callback + */ + get(intentObjectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(intentObjectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + intentObjectName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * The operation to create an ASR replication protection intent item. + * @summary Create protection intent Resource. + * @param intentObjectName A name for the replication protection item. + * @param input Create Protection Intent Input. + * @param [options] The optional parameters + * @returns Promise + */ + create(intentObjectName: string, input: Models.CreateProtectionIntentInput, options?: msRest.RequestOptionsBase): Promise; + /** + * @param intentObjectName A name for the replication protection item. + * @param input Create Protection Intent Input. + * @param callback The callback + */ + create(intentObjectName: string, input: Models.CreateProtectionIntentInput, callback: msRest.ServiceCallback): void; + /** + * @param intentObjectName A name for the replication protection item. + * @param input Create Protection Intent Input. + * @param options The optional parameters + * @param callback The callback + */ + create(intentObjectName: string, input: Models.CreateProtectionIntentInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(intentObjectName: string, input: Models.CreateProtectionIntentInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + intentObjectName, + input, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Gets the list of ASR replication protection intent objects in the vault. + * @summary Gets the list of replication protection intent objects. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.ReplicationProtectionIntentsListNextOptionalParams): 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.ReplicationProtectionIntentsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ReplicationProtectionIntentsListNextOptionalParams | 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.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken0, + Parameters.takeToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionIntentCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.intentObjectName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionIntent + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.intentObjectName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "input", + mapper: { + ...Mappers.CreateProtectionIntentInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionIntent + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken0, + Parameters.takeToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReplicationProtectionIntentCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryPlans.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryPlans.ts index 9caa6fa4d2cb..d972dcbdd36e 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryPlans.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryPlans.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 @@ -110,7 +109,7 @@ export class ReplicationRecoveryPlans { * The operation to update a recovery plan. * @summary Updates the given recovery plan. * @param recoveryPlanName Recovery plan name. - * @param input Update recovery plan input + * @param input Update recovery plan input. * @param [options] The optional parameters * @returns Promise */ @@ -120,7 +119,19 @@ export class ReplicationRecoveryPlans { } /** - * The operation to commit the fail over of a recovery plan. + * The operation to cancel the failover of a recovery plan. + * @summary Execute cancel failover of the recovery plan. + * @param recoveryPlanName Recovery plan name. + * @param [options] The optional parameters + * @returns Promise + */ + failoverCancel(recoveryPlanName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginFailoverCancel(recoveryPlanName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to commit the failover of a recovery plan. * @summary Execute commit failover of the recovery plan. * @param recoveryPlanName Recovery plan name. * @param [options] The optional parameters @@ -160,7 +171,7 @@ export class ReplicationRecoveryPlans { * The operation to start the test failover of a recovery plan. * @summary Execute test failover of the recovery plan. * @param recoveryPlanName Recovery plan name. - * @param input Failover input. + * @param input Recovery plan test failover input. * @param [options] The optional parameters * @returns Promise */ @@ -173,7 +184,7 @@ export class ReplicationRecoveryPlans { * The operation to cleanup test failover of a recovery plan. * @summary Execute test failover cleanup of the recovery plan. * @param recoveryPlanName Recovery plan name. - * @param input Test failover cleanup input. + * @param input Recovery plan test failover cleanup input. * @param [options] The optional parameters * @returns Promise */ @@ -183,10 +194,10 @@ export class ReplicationRecoveryPlans { } /** - * The operation to start the failover of a recovery plan. + * The operation to start the unplanned failover of a recovery plan. * @summary Execute unplanned failover of the recovery plan. * @param recoveryPlanName Recovery plan name. - * @param input Failover input. + * @param input Recovery plan unplanned failover input. * @param [options] The optional parameters * @returns Promise */ @@ -235,7 +246,7 @@ export class ReplicationRecoveryPlans { * The operation to update a recovery plan. * @summary Updates the given recovery plan. * @param recoveryPlanName Recovery plan name. - * @param input Update recovery plan input + * @param input Update recovery plan input. * @param [options] The optional parameters * @returns Promise */ @@ -251,7 +262,24 @@ export class ReplicationRecoveryPlans { } /** - * The operation to commit the fail over of a recovery plan. + * The operation to cancel the failover of a recovery plan. + * @summary Execute cancel failover of the recovery plan. + * @param recoveryPlanName Recovery plan name. + * @param [options] The optional parameters + * @returns Promise + */ + beginFailoverCancel(recoveryPlanName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + recoveryPlanName, + options + }, + beginFailoverCancelOperationSpec, + options); + } + + /** + * The operation to commit the failover of a recovery plan. * @summary Execute commit failover of the recovery plan. * @param recoveryPlanName Recovery plan name. * @param [options] The optional parameters @@ -307,7 +335,7 @@ export class ReplicationRecoveryPlans { * The operation to start the test failover of a recovery plan. * @summary Execute test failover of the recovery plan. * @param recoveryPlanName Recovery plan name. - * @param input Failover input. + * @param input Recovery plan test failover input. * @param [options] The optional parameters * @returns Promise */ @@ -326,7 +354,7 @@ export class ReplicationRecoveryPlans { * The operation to cleanup test failover of a recovery plan. * @summary Execute test failover cleanup of the recovery plan. * @param recoveryPlanName Recovery plan name. - * @param input Test failover cleanup input. + * @param input Recovery plan test failover cleanup input. * @param [options] The optional parameters * @returns Promise */ @@ -342,10 +370,10 @@ export class ReplicationRecoveryPlans { } /** - * The operation to start the failover of a recovery plan. + * The operation to start the unplanned failover of a recovery plan. * @summary Execute unplanned failover of the recovery plan. * @param recoveryPlanName Recovery plan name. - * @param input Failover input. + * @param input Recovery plan unplanned failover input. * @param [options] The optional parameters * @returns Promise */ @@ -394,7 +422,7 @@ export class ReplicationRecoveryPlans { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -419,7 +447,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -445,7 +473,7 @@ const getOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -479,7 +507,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -504,7 +532,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -536,9 +564,36 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { serializer }; +const beginFailoverCancelOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCancel", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.recoveryPlanName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoveryPlan + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginFailoverCommitOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -565,7 +620,7 @@ const beginFailoverCommitOperationSpec: msRest.OperationSpec = { const beginPlannedFailoverOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -599,7 +654,7 @@ const beginPlannedFailoverOperationSpec: msRest.OperationSpec = { const beginReprotectOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/reProtect", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/reProtect", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -626,7 +681,7 @@ const beginReprotectOperationSpec: msRest.OperationSpec = { const beginTestFailoverOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -660,7 +715,7 @@ const beginTestFailoverOperationSpec: msRest.OperationSpec = { const beginTestFailoverCleanupOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -694,7 +749,7 @@ const beginTestFailoverCleanupOperationSpec: msRest.OperationSpec = { const beginUnplannedFailoverOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -733,6 +788,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryServicesProviders.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryServicesProviders.ts index 804dbd4a710c..1320975a3dfa 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryServicesProviders.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationRecoveryServicesProviders.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 @@ -30,18 +29,18 @@ export class ReplicationRecoveryServicesProviders { /** * Lists the registered recovery services providers for the specified fabric. * @summary Gets the list of registered recovery services providers for the fabric. - * @param fabricName Fabric name + * @param fabricName Fabric name. * @param [options] The optional parameters * @returns Promise */ listByReplicationFabrics(fabricName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param fabricName Fabric name + * @param fabricName Fabric name. * @param callback The callback */ listByReplicationFabrics(fabricName: string, callback: msRest.ServiceCallback): void; /** - * @param fabricName Fabric name + * @param fabricName Fabric name. * @param options The optional parameters * @param callback The callback */ @@ -60,20 +59,20 @@ export class ReplicationRecoveryServicesProviders { * Gets the details of registered recovery services provider. * @summary Gets the details of a recovery services provider. * @param fabricName Fabric name. - * @param providerName Recovery services provider name + * @param providerName Recovery services provider name. * @param [options] The optional parameters * @returns Promise */ get(fabricName: string, providerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param fabricName Fabric name. - * @param providerName Recovery services provider name + * @param providerName Recovery services provider name. * @param callback The callback */ get(fabricName: string, providerName: string, callback: msRest.ServiceCallback): void; /** * @param fabricName Fabric name. - * @param providerName Recovery services provider name + * @param providerName Recovery services provider name. * @param options The optional parameters * @param callback The callback */ @@ -89,9 +88,23 @@ export class ReplicationRecoveryServicesProviders { callback) as Promise; } + /** + * The operation to add a recovery services provider. + * @summary Adds a recovery services provider. + * @param fabricName Fabric name. + * @param providerName Recovery services provider name. + * @param addProviderInput Add provider input. + * @param [options] The optional parameters + * @returns Promise + */ + create(fabricName: string, providerName: string, addProviderInput: Models.AddRecoveryServicesProviderInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(fabricName,providerName,addProviderInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * The operation to purge(force delete) a recovery services provider from the vault. - * @summary Purges recovery service provider from fabric + * @summary Purges recovery service provider from fabric. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param [options] The optional parameters @@ -116,7 +129,7 @@ export class ReplicationRecoveryServicesProviders { } /** - * The operation to removes/delete(unregister) a recovery services provider from the vault + * The operation to removes/delete(unregister) a recovery services provider from the vault. * @summary Deletes provider from fabric. Note: Deleting provider for any fabric other than * SingleHost is unsupported. To maintain backward compatibility for released clients the object * "deleteRspInput" is used (if the object is empty we assume that it is old client and continue @@ -132,7 +145,7 @@ export class ReplicationRecoveryServicesProviders { } /** - * Lists the registered recovery services providers in the vault + * Lists the registered recovery services providers in the vault. * @summary Gets the list of registered recovery services providers in the vault. This is a view * only api. * @param [options] The optional parameters @@ -157,9 +170,30 @@ export class ReplicationRecoveryServicesProviders { callback) as Promise; } + /** + * The operation to add a recovery services provider. + * @summary Adds a recovery services provider. + * @param fabricName Fabric name. + * @param providerName Recovery services provider name. + * @param addProviderInput Add provider input. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(fabricName: string, providerName: string, addProviderInput: Models.AddRecoveryServicesProviderInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + fabricName, + providerName, + addProviderInput, + options + }, + beginCreateOperationSpec, + options); + } + /** * The operation to purge(force delete) a recovery services provider from the vault. - * @summary Purges recovery service provider from fabric + * @summary Purges recovery service provider from fabric. * @param fabricName Fabric name. * @param providerName Recovery services provider name. * @param [options] The optional parameters @@ -196,7 +230,7 @@ export class ReplicationRecoveryServicesProviders { } /** - * The operation to removes/delete(unregister) a recovery services provider from the vault + * The operation to removes/delete(unregister) a recovery services provider from the vault. * @summary Deletes provider from fabric. Note: Deleting provider for any fabric other than * SingleHost is unsupported. To maintain backward compatibility for released clients the object * "deleteRspInput" is used (if the object is empty we assume that it is old client and continue @@ -248,7 +282,7 @@ export class ReplicationRecoveryServicesProviders { } /** - * Lists the registered recovery services providers in the vault + * Lists the registered recovery services providers in the vault. * @summary Gets the list of registered recovery services providers in the vault. This is a view * only api. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -282,7 +316,7 @@ export class ReplicationRecoveryServicesProviders { const serializer = new msRest.Serializer(Mappers); const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -308,7 +342,7 @@ const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -335,7 +369,7 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryServicesProviders", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryServicesProviders", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -358,9 +392,44 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.providerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "addProviderInput", + mapper: { + ...Mappers.AddRecoveryServicesProviderInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RecoveryServicesProvider + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginPurgeOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -386,7 +455,7 @@ const beginPurgeOperationSpec: msRest.OperationSpec = { const beginRefreshProviderOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/refreshProvider", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/refreshProvider", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -414,7 +483,7 @@ const beginRefreshProviderOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/remove", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}/remove", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -445,6 +514,9 @@ const listByReplicationFabricsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -466,6 +538,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassificationMappings.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassificationMappings.ts index e2e925e8f5e4..af1c309c98c7 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassificationMappings.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassificationMappings.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 @@ -31,7 +30,7 @@ export class ReplicationStorageClassificationMappings { * Lists the storage classification mappings for the fabric. * @summary Gets the list of storage classification mappings objects under a storage. * @param fabricName Fabric name. - * @param storageClassificationName Storage classfication name. + * @param storageClassificationName Storage classification name. * @param [options] The optional parameters * @returns * Promise @@ -39,13 +38,13 @@ export class ReplicationStorageClassificationMappings { listByReplicationStorageClassifications(fabricName: string, storageClassificationName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param fabricName Fabric name. - * @param storageClassificationName Storage classfication name. + * @param storageClassificationName Storage classification name. * @param callback The callback */ listByReplicationStorageClassifications(fabricName: string, storageClassificationName: string, callback: msRest.ServiceCallback): void; /** * @param fabricName Fabric name. - * @param storageClassificationName Storage classfication name. + * @param storageClassificationName Storage classification name. * @param options The optional parameters * @param callback The callback */ @@ -260,7 +259,7 @@ export class ReplicationStorageClassificationMappings { const serializer = new msRest.Serializer(Mappers); const listByReplicationStorageClassificationsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -287,7 +286,7 @@ const listByReplicationStorageClassificationsOperationSpec: msRest.OperationSpec const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -315,7 +314,7 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationStorageClassificationMappings", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationStorageClassificationMappings", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -340,7 +339,7 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -376,7 +375,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -408,6 +407,9 @@ const listByReplicationStorageClassificationsNextOperationSpec: msRest.Operation urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -429,6 +431,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassifications.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassifications.ts index 7e6adb1712fb..6469cfc377dc 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassifications.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationStorageClassifications.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 @@ -176,7 +175,7 @@ export class ReplicationStorageClassifications { const serializer = new msRest.Serializer(Mappers); const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -202,7 +201,7 @@ const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -229,7 +228,7 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationStorageClassifications", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationStorageClassifications", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -259,6 +258,9 @@ const listByReplicationFabricsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -280,6 +282,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultHealth.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultHealth.ts index a797b0132ad2..f7268ee12fec 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultHealth.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultHealth.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 @@ -81,7 +80,7 @@ export class ReplicationVaultHealth { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultHealth", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultHealth", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -106,7 +105,7 @@ const getOperationSpec: msRest.OperationSpec = { const beginRefreshOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultHealth/default/refresh", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultHealth/default/refresh", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultSetting.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultSetting.ts new file mode 100644 index 000000000000..7fa265cda9e7 --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationVaultSetting.ts @@ -0,0 +1,255 @@ +/* + * 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/replicationVaultSettingMappers"; +import * as Parameters from "../models/parameters"; +import { SiteRecoveryManagementClientContext } from "../siteRecoveryManagementClientContext"; + +/** Class representing a ReplicationVaultSetting. */ +export class ReplicationVaultSetting { + private readonly client: SiteRecoveryManagementClientContext; + + /** + * Create a ReplicationVaultSetting. + * @param {SiteRecoveryManagementClientContext} client Reference to the service client. + */ + constructor(client: SiteRecoveryManagementClientContext) { + this.client = client; + } + + /** + * Gets the list of vault setting. This includes the Migration Hub connection settings. + * @summary Gets the list of vault setting. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the vault setting. This includes the Migration Hub connection settings. + * @summary Gets the vault setting. + * @param vaultSettingName Vault setting name. + * @param [options] The optional parameters + * @returns Promise + */ + get(vaultSettingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultSettingName Vault setting name. + * @param callback The callback + */ + get(vaultSettingName: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultSettingName Vault setting name. + * @param options The optional parameters + * @param callback The callback + */ + get(vaultSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultSettingName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * The operation to configure vault setting. + * @summary Updates vault setting. A vault setting object is a singleton per vault and it is always + * present by default. + * @param vaultSettingName Vault setting name. + * @param input Vault setting creation input. + * @param [options] The optional parameters + * @returns Promise + */ + create(vaultSettingName: string, input: Models.VaultSettingCreationInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(vaultSettingName,input,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to configure vault setting. + * @summary Updates vault setting. A vault setting object is a singleton per vault and it is always + * present by default. + * @param vaultSettingName Vault setting name. + * @param input Vault setting creation input. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(vaultSettingName: string, input: Models.VaultSettingCreationInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + vaultSettingName, + input, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Gets the list of vault setting. This includes the Migration Hub connection settings. + * @summary Gets the list of vault setting. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VaultSettingCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings/{vaultSettingName}", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.vaultSettingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VaultSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings/{vaultSettingName}", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.vaultSettingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "input", + mapper: { + ...Mappers.VaultSettingCreationInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VaultSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VaultSettingCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationvCenters.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationvCenters.ts index ea2de6343fbc..ee2d2b6ec639 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationvCenters.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/replicationvCenters.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 @@ -57,32 +56,32 @@ export class ReplicationvCenters { } /** - * Gets the details of a registered vCenter server(Add vCenter server.) + * Gets the details of a registered vCenter server(Add vCenter server). * @summary Gets the details of a vCenter. * @param fabricName Fabric name. - * @param vCenterName vCenter name. + * @param vcenterName vcenter name. * @param [options] The optional parameters * @returns Promise */ - get(fabricName: string, vCenterName: string, options?: msRest.RequestOptionsBase): Promise; + get(fabricName: string, vcenterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param fabricName Fabric name. - * @param vCenterName vCenter name. + * @param vcenterName vcenter name. * @param callback The callback */ - get(fabricName: string, vCenterName: string, callback: msRest.ServiceCallback): void; + get(fabricName: string, vcenterName: string, callback: msRest.ServiceCallback): void; /** * @param fabricName Fabric name. - * @param vCenterName vCenter name. + * @param vcenterName vcenter name. * @param options The optional parameters * @param callback The callback */ - get(fabricName: string, vCenterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(fabricName: string, vCenterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(fabricName: string, vcenterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(fabricName: string, vcenterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { fabricName, - vCenterName, + vcenterName, options }, getOperationSpec, @@ -93,26 +92,26 @@ export class ReplicationvCenters { * The operation to create a vCenter object.. * @summary Add vCenter. * @param fabricName Fabric name. - * @param vCenterName vCenter name. + * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. * @param [options] The optional parameters * @returns Promise */ - create(fabricName: string, vCenterName: string, addVCenterRequest: Models.AddVCenterRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(fabricName,vCenterName,addVCenterRequest,options) + create(fabricName: string, vcenterName: string, addVCenterRequest: Models.AddVCenterRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(fabricName,vcenterName,addVCenterRequest,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** * The operation to remove(unregister) a registered vCenter server from the vault. - * @summary Remove vCenter operation. + * @summary Remove vcenter operation. * @param fabricName Fabric name. - * @param vCenterName vCenter name. + * @param vcenterName vcenter name. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(fabricName: string, vCenterName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(fabricName,vCenterName,options) + deleteMethod(fabricName: string, vcenterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(fabricName,vcenterName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -120,13 +119,13 @@ export class ReplicationvCenters { * The operation to update a registered vCenter. * @summary Update vCenter operation. * @param fabricName Fabric name. - * @param vCenterName vCeneter name + * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. * @param [options] The optional parameters * @returns Promise */ - update(fabricName: string, vCenterName: string, updateVCenterRequest: Models.UpdateVCenterRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(fabricName,vCenterName,updateVCenterRequest,options) + update(fabricName: string, vcenterName: string, updateVCenterRequest: Models.UpdateVCenterRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(fabricName,vcenterName,updateVCenterRequest,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -159,16 +158,16 @@ export class ReplicationvCenters { * The operation to create a vCenter object.. * @summary Add vCenter. * @param fabricName Fabric name. - * @param vCenterName vCenter name. + * @param vcenterName vcenter name. * @param addVCenterRequest The input to the add vCenter operation. * @param [options] The optional parameters * @returns Promise */ - beginCreate(fabricName: string, vCenterName: string, addVCenterRequest: Models.AddVCenterRequest, options?: msRest.RequestOptionsBase): Promise { + beginCreate(fabricName: string, vcenterName: string, addVCenterRequest: Models.AddVCenterRequest, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { fabricName, - vCenterName, + vcenterName, addVCenterRequest, options }, @@ -178,17 +177,17 @@ export class ReplicationvCenters { /** * The operation to remove(unregister) a registered vCenter server from the vault. - * @summary Remove vCenter operation. + * @summary Remove vcenter operation. * @param fabricName Fabric name. - * @param vCenterName vCenter name. + * @param vcenterName vcenter name. * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(fabricName: string, vCenterName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(fabricName: string, vcenterName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { fabricName, - vCenterName, + vcenterName, options }, beginDeleteMethodOperationSpec, @@ -199,16 +198,16 @@ export class ReplicationvCenters { * The operation to update a registered vCenter. * @summary Update vCenter operation. * @param fabricName Fabric name. - * @param vCenterName vCeneter name + * @param vcenterName vcenter name. * @param updateVCenterRequest The input to the update vCenter operation. * @param [options] The optional parameters * @returns Promise */ - beginUpdate(fabricName: string, vCenterName: string, updateVCenterRequest: Models.UpdateVCenterRequest, options?: msRest.RequestOptionsBase): Promise { + beginUpdate(fabricName: string, vcenterName: string, updateVCenterRequest: Models.UpdateVCenterRequest, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { fabricName, - vCenterName, + vcenterName, updateVCenterRequest, options }, @@ -279,7 +278,7 @@ export class ReplicationvCenters { const serializer = new msRest.Serializer(Mappers); const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -305,13 +304,13 @@ const listByReplicationFabricsOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vCenterName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.fabricName, - Parameters.vCenterName + Parameters.vcenterName ], queryParameters: [ Parameters.apiVersion @@ -332,7 +331,7 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationvCenters", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationvCenters", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -357,13 +356,13 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vCenterName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.fabricName, - Parameters.vCenterName + Parameters.vcenterName ], queryParameters: [ Parameters.apiVersion @@ -392,13 +391,13 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vCenterName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.fabricName, - Parameters.vCenterName + Parameters.vcenterName ], queryParameters: [ Parameters.apiVersion @@ -418,13 +417,13 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vCenterName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.fabricName, - Parameters.vCenterName + Parameters.vcenterName ], queryParameters: [ Parameters.apiVersion @@ -458,6 +457,9 @@ const listByReplicationFabricsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -479,6 +481,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/supportedOperatingSystemsOperations.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/supportedOperatingSystemsOperations.ts new file mode 100644 index 000000000000..0bf69119325b --- /dev/null +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/supportedOperatingSystemsOperations.ts @@ -0,0 +1,79 @@ +/* + * 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/supportedOperatingSystemsOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SiteRecoveryManagementClientContext } from "../siteRecoveryManagementClientContext"; + +/** Class representing a SupportedOperatingSystemsOperations. */ +export class SupportedOperatingSystemsOperations { + private readonly client: SiteRecoveryManagementClientContext; + + /** + * Create a SupportedOperatingSystemsOperations. + * @param {SiteRecoveryManagementClientContext} client Reference to the service client. + */ + constructor(client: SiteRecoveryManagementClientContext) { + this.client = client; + } + + /** + * @summary Gets the data of supported operating systems by SRS. + * @param [options] The optional parameters + * @returns Promise + */ + get(options?: Models.SupportedOperatingSystemsGetOptionalParams): Promise; + /** + * @param callback The callback + */ + get(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + get(options: Models.SupportedOperatingSystemsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(options?: Models.SupportedOperatingSystemsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationSupportedOperatingSystems", + urlParameters: [ + Parameters.resourceName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.instanceType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SupportedOperatingSystems + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/targetComputeSizes.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/targetComputeSizes.ts index 891dad9dc3bf..f02b68246e41 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/targetComputeSizes.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/operations/targetComputeSizes.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 @@ -97,7 +96,7 @@ export class TargetComputeSizes { const serializer = new msRest.Serializer(Mappers); const listByReplicationProtectedItemsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/targetComputeSizes", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/targetComputeSizes", urlParameters: [ Parameters.resourceName, Parameters.resourceGroupName, @@ -130,6 +129,9 @@ const listByReplicationProtectedItemsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts index 8bfa137ac28f..3fe1ac32529f 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClient.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 { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -19,12 +19,15 @@ class SiteRecoveryManagementClient extends SiteRecoveryManagementClientContext { // Operation groups operations: operations.Operations; replicationAlertSettings: operations.ReplicationAlertSettings; + replicationEligibilityResults: operations.ReplicationEligibilityResultsOperations; replicationEvents: operations.ReplicationEvents; replicationFabrics: operations.ReplicationFabrics; replicationLogicalNetworks: operations.ReplicationLogicalNetworks; replicationNetworks: operations.ReplicationNetworks; replicationNetworkMappings: operations.ReplicationNetworkMappings; replicationProtectionContainers: operations.ReplicationProtectionContainers; + replicationMigrationItems: operations.ReplicationMigrationItems; + migrationRecoveryPoints: operations.MigrationRecoveryPoints; replicationProtectableItems: operations.ReplicationProtectableItems; replicationProtectedItems: operations.ReplicationProtectedItems; recoveryPoints: operations.RecoveryPoints; @@ -36,28 +39,39 @@ class SiteRecoveryManagementClient extends SiteRecoveryManagementClientContext { replicationvCenters: operations.ReplicationvCenters; replicationJobs: operations.ReplicationJobs; replicationPolicies: operations.ReplicationPolicies; + replicationProtectionIntents: operations.ReplicationProtectionIntents; replicationRecoveryPlans: operations.ReplicationRecoveryPlans; + supportedOperatingSystems: operations.SupportedOperatingSystemsOperations; replicationVaultHealth: operations.ReplicationVaultHealth; + replicationVaultSetting: operations.ReplicationVaultSetting; /** * Initializes a new instance of the SiteRecoveryManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 resourceGroupName The name of the resource group where the recovery services vault is * present. * @param resourceName The name of the recovery services vault. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, resourceGroupName: string, resourceName: string, options?: Models.SiteRecoveryManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, resourceGroupName: string, resourceName: string, options?: Models.SiteRecoveryManagementClientOptions) { super(credentials, subscriptionId, resourceGroupName, resourceName, options); this.operations = new operations.Operations(this); this.replicationAlertSettings = new operations.ReplicationAlertSettings(this); + this.replicationEligibilityResults = new operations.ReplicationEligibilityResultsOperations(this); this.replicationEvents = new operations.ReplicationEvents(this); this.replicationFabrics = new operations.ReplicationFabrics(this); this.replicationLogicalNetworks = new operations.ReplicationLogicalNetworks(this); this.replicationNetworks = new operations.ReplicationNetworks(this); this.replicationNetworkMappings = new operations.ReplicationNetworkMappings(this); this.replicationProtectionContainers = new operations.ReplicationProtectionContainers(this); + this.replicationMigrationItems = new operations.ReplicationMigrationItems(this); + this.migrationRecoveryPoints = new operations.MigrationRecoveryPoints(this); this.replicationProtectableItems = new operations.ReplicationProtectableItems(this); this.replicationProtectedItems = new operations.ReplicationProtectedItems(this); this.recoveryPoints = new operations.RecoveryPoints(this); @@ -69,8 +83,11 @@ class SiteRecoveryManagementClient extends SiteRecoveryManagementClientContext { this.replicationvCenters = new operations.ReplicationvCenters(this); this.replicationJobs = new operations.ReplicationJobs(this); this.replicationPolicies = new operations.ReplicationPolicies(this); + this.replicationProtectionIntents = new operations.ReplicationProtectionIntents(this); this.replicationRecoveryPlans = new operations.ReplicationRecoveryPlans(this); + this.supportedOperatingSystems = new operations.SupportedOperatingSystemsOperations(this); this.replicationVaultHealth = new operations.ReplicationVaultHealth(this); + this.replicationVaultSetting = new operations.ReplicationVaultSetting(this); } } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClientContext.ts b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClientContext.ts index 23d375cb660f..a894e693a3d7 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClientContext.ts +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/src/siteRecoveryManagementClientContext.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 @@ -11,12 +10,13 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-recoveryservices-siterecovery"; -const packageVersion = "0.1.0"; +const packageVersion = "3.3.0"; export class SiteRecoveryManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; resourceGroupName: string; resourceName: string; @@ -24,14 +24,19 @@ export class SiteRecoveryManagementClientContext extends msRestAzure.AzureServic /** * Initializes a new instance of the SiteRecoveryManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 resourceGroupName The name of the resource group where the recovery services vault is * present. * @param resourceName The name of the recovery services vault. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, resourceGroupName: string, resourceName: string, options?: Models.SiteRecoveryManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, resourceGroupName: string, resourceName: string, options?: Models.SiteRecoveryManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -48,14 +53,14 @@ export class SiteRecoveryManagementClientContext extends msRestAzure.AzureServic if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2018-01-10'; + this.apiVersion = '2021-06-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -65,10 +70,10 @@ export class SiteRecoveryManagementClientContext extends msRestAzure.AzureServic this.resourceGroupName = resourceGroupName; this.resourceName = resourceName; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json +++ b/sdk/recoveryservicessiterecovery/arm-recoveryservices-siterecovery/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true diff --git a/sdk/redis/arm-rediscache/README.md b/sdk/redis/arm-rediscache/README.md index 9fd3b180eb27..fd829f3f5e9c 100644 --- a/sdk/redis/arm-rediscache/README.md +++ b/sdk/redis/arm-rediscache/README.md @@ -1,90 +1,100 @@ ## Azure RedisManagementClient SDK for JavaScript -This package contains an isomorphic SDK for RedisManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for RedisManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-rediscache` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-rediscache +npm install --save @azure/arm-rediscache @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { RedisManagementClient, RedisManagementModels, RedisManagementMappers } from "@azure/arm-rediscache"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { RedisManagementClient } = require("@azure/arm-rediscache"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new RedisManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new RedisManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-rediscache sample - - + diff --git a/sdk/redis/arm-rediscache/package.json b/sdk/redis/arm-rediscache/package.json index 1938144a46ee..8aea4be4babb 100644 --- a/sdk/redis/arm-rediscache/package.json +++ b/sdk/redis/arm-rediscache/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-rediscache", "author": "Microsoft Corporation", "description": "RedisManagementClient Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "version": "4.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/redisManagementClient.js", "types": "./esm/redisManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/redis/arm-rediscache/src/redisManagementClient.ts b/sdk/redis/arm-rediscache/src/redisManagementClient.ts index cd3b8b9dfe2e..c5f44bc0b291 100644 --- a/sdk/redis/arm-rediscache/src/redisManagementClient.ts +++ b/sdk/redis/arm-rediscache/src/redisManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -25,12 +26,17 @@ class RedisManagementClient extends RedisManagementClientContext { /** * Initializes a new instance of the RedisManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RedisManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RedisManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.redis = new operations.Redis(this); diff --git a/sdk/redis/arm-rediscache/src/redisManagementClientContext.ts b/sdk/redis/arm-rediscache/src/redisManagementClientContext.ts index 286d06abeb1f..873bdcf1b787 100644 --- a/sdk/redis/arm-rediscache/src/redisManagementClientContext.ts +++ b/sdk/redis/arm-rediscache/src/redisManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-rediscache"; -const packageVersion = "4.0.0"; +const packageVersion = "4.1.0"; export class RedisManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the RedisManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RedisManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RedisManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/redisenterprise/arm-redisenterprisecache/README.md b/sdk/redisenterprise/arm-redisenterprisecache/README.md index 5281f220eba8..f29210e8558f 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/README.md +++ b/sdk/redisenterprise/arm-redisenterprisecache/README.md @@ -1,89 +1,100 @@ ## Azure RedisEnterpriseManagementClient SDK for JavaScript -This package contains an isomorphic SDK for RedisEnterpriseManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for RedisEnterpriseManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-redisenterprisecache` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-redisenterprisecache +npm install --save @azure/arm-redisenterprisecache @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. + ### How to use -#### nodejs - client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { RedisEnterpriseManagementClient } = require("@azure/arm-redisenterprisecache"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new RedisEnterpriseManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new RedisEnterpriseManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-redisenterprisecache sample - - + diff --git a/sdk/redisenterprise/arm-redisenterprisecache/package.json b/sdk/redisenterprise/arm-redisenterprisecache/package.json index 016c6da09bcf..1c0617fecd66 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/package.json +++ b/sdk/redisenterprise/arm-redisenterprisecache/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-redisenterprisecache", "author": "Microsoft Corporation", "description": "RedisEnterpriseManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/redisEnterpriseManagementClient.js", "types": "./esm/redisEnterpriseManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClient.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClient.ts index 39c21aeb4b84..2200130dcf27 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClient.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -25,11 +26,16 @@ class RedisEnterpriseManagementClient extends RedisEnterpriseManagementClientCon /** * Initializes a new instance of the RedisEnterpriseManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RedisEnterpriseManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RedisEnterpriseManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.operationsStatus = new operations.OperationsStatus(this); diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClientContext.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClientContext.ts index 3682ef12303b..cbf5215c0cb7 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClientContext.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClientContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-redisenterprisecache"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class RedisEnterpriseManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the RedisEnterpriseManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RedisEnterpriseManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RedisEnterpriseManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/relay/arm-relay/README.md b/sdk/relay/arm-relay/README.md index 3a7fb18fcc3d..b7ba05513e99 100644 --- a/sdk/relay/arm-relay/README.md +++ b/sdk/relay/arm-relay/README.md @@ -1,89 +1,100 @@ ## Azure RelayManagementClient SDK for JavaScript -This package contains an isomorphic SDK for RelayManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for RelayManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-relay +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-relay` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-relay @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { RelayManagementClient, RelayManagementModels, RelayManagementMappers } from "@azure/arm-relay"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { RelayManagementClient } = require("@azure/arm-relay"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new RelayManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new RelayManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-relay sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Frelay%2Farm-relay%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/relay/arm-relay/README.png) diff --git a/sdk/relay/arm-relay/package.json b/sdk/relay/arm-relay/package.json index 22d8588356f6..9c424a274b3e 100644 --- a/sdk/relay/arm-relay/package.json +++ b/sdk/relay/arm-relay/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-relay", "author": "Microsoft Corporation", "description": "RelayManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.1.0", + "version": "2.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/relayManagementClient.js", "types": "./esm/relayManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/relay/arm-relay/src/relayManagementClient.ts b/sdk/relay/arm-relay/src/relayManagementClient.ts index 41bfce598bec..d147eb79ed38 100644 --- a/sdk/relay/arm-relay/src/relayManagementClient.ts +++ b/sdk/relay/arm-relay/src/relayManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -24,12 +25,17 @@ class RelayManagementClient extends RelayManagementClientContext { /** * Initializes a new instance of the RelayManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RelayManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RelayManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.namespaces = new operations.Namespaces(this); diff --git a/sdk/relay/arm-relay/src/relayManagementClientContext.ts b/sdk/relay/arm-relay/src/relayManagementClientContext.ts index a00071e51c98..c5b8969552e1 100644 --- a/sdk/relay/arm-relay/src/relayManagementClientContext.ts +++ b/sdk/relay/arm-relay/src/relayManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-relay"; -const packageVersion = "0.1.0"; +const packageVersion = "2.2.0"; export class RelayManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the RelayManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RelayManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RelayManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/resourcegraph/arm-resourcegraph/README.md b/sdk/resourcegraph/arm-resourcegraph/README.md index b12be35165b5..8bb4101de629 100644 --- a/sdk/resourcegraph/arm-resourcegraph/README.md +++ b/sdk/resourcegraph/arm-resourcegraph/README.md @@ -1,89 +1,100 @@ ## Azure ResourceGraphClient SDK for JavaScript -This package contains an isomorphic SDK for ResourceGraphClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ResourceGraphClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-resourcegraph` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-resourcegraph +npm install --save @azure/arm-resourcegraph @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. + ### How to use -#### nodejs - client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { ResourceGraphClient } = require("@azure/arm-resourcegraph"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ResourceGraphClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ResourceGraphClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-resourcegraph sample - - + diff --git a/sdk/resourcegraph/arm-resourcegraph/package.json b/sdk/resourcegraph/arm-resourcegraph/package.json index df62daefb40e..22a8f2d81d68 100644 --- a/sdk/resourcegraph/arm-resourcegraph/package.json +++ b/sdk/resourcegraph/arm-resourcegraph/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-resourcegraph", "author": "Microsoft Corporation", "description": "ResourceGraphClient Library with typescript type definitions for node.js and browser.", - "version": "4.1.0", + "version": "4.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/resourceGraphClient.js", "types": "./esm/resourceGraphClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/resourcegraph/arm-resourcegraph/src/resourceGraphClient.ts b/sdk/resourcegraph/arm-resourcegraph/src/resourceGraphClient.ts index c10ca6faa968..ada6b1d910d3 100644 --- a/sdk/resourcegraph/arm-resourcegraph/src/resourceGraphClient.ts +++ b/sdk/resourcegraph/arm-resourcegraph/src/resourceGraphClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -20,11 +21,16 @@ class ResourceGraphClient extends ResourceGraphClientContext { /** * Initializes a new instance of the ResourceGraphClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.ResourceGraphClientOptions ) { super(credentials, options); diff --git a/sdk/resourcegraph/arm-resourcegraph/src/resourceGraphClientContext.ts b/sdk/resourcegraph/arm-resourcegraph/src/resourceGraphClientContext.ts index 16131061fc42..b27af6121d9d 100644 --- a/sdk/resourcegraph/arm-resourcegraph/src/resourceGraphClientContext.ts +++ b/sdk/resourcegraph/arm-resourcegraph/src/resourceGraphClientContext.ts @@ -9,21 +9,27 @@ 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"; const packageName = "@azure/arm-resourcegraph"; -const packageVersion = "4.1.0"; +const packageVersion = "4.2.0"; export class ResourceGraphClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; /** * Initializes a new instance of the ResourceGraphClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.ResourceGraphClientOptions ) { if (credentials == undefined) { diff --git a/sdk/resourcehealth/arm-resourcehealth/README.md b/sdk/resourcehealth/arm-resourcehealth/README.md index daefef06fe23..3ca1433748b3 100644 --- a/sdk/resourcehealth/arm-resourcehealth/README.md +++ b/sdk/resourcehealth/arm-resourcehealth/README.md @@ -1,93 +1,103 @@ ## Azure MicrosoftResourceHealth SDK for JavaScript -This package contains an isomorphic SDK for MicrosoftResourceHealth. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MicrosoftResourceHealth. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-resourcehealth +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-resourcehealth` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-resourcehealth @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. + ### How to use -#### nodejs - Authentication, client creation and listBySubscriptionId availabilityStatuses as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and listBySubscriptionId availabilityStatuses as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MicrosoftResourceHealth, MicrosoftResourceHealthModels, MicrosoftResourceHealthMappers } from "@azure/arm-resourcehealth"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MicrosoftResourceHealth } = require("@azure/arm-resourcehealth"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MicrosoftResourceHealth(creds, subscriptionId); - const filter = "testfilter"; - const expand = "testexpand"; - client.availabilityStatuses.listBySubscriptionId(filter, expand).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MicrosoftResourceHealth(creds, subscriptionId); +const filter = "testfilter"; +const expand = "testexpand"; +client.availabilityStatuses.listBySubscriptionId(filter, expand).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and listBySubscriptionId availabilityStatuses as an example written in JavaScript. +#### browser - Authentication, client creation, and listBySubscriptionId availabilityStatuses as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-resourcehealth sample - - + @@ -99,5 +109,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fresourcehealth%2Farm-resourcehealth%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/resourcehealth/arm-resourcehealth/README.png) diff --git a/sdk/resourcehealth/arm-resourcehealth/package.json b/sdk/resourcehealth/arm-resourcehealth/package.json index c8c350f2f591..c71ce10ab1c7 100644 --- a/sdk/resourcehealth/arm-resourcehealth/package.json +++ b/sdk/resourcehealth/arm-resourcehealth/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-resourcehealth", "author": "Microsoft Corporation", "description": "MicrosoftResourceHealth Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/microsoftResourceHealth.js", "types": "./esm/microsoftResourceHealth.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts index 07e66bbf7f91..f90ba11e05e9 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -22,12 +23,17 @@ class MicrosoftResourceHealth extends MicrosoftResourceHealthContext { /** * Initializes a new instance of the MicrosoftResourceHealth class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MicrosoftResourceHealthOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MicrosoftResourceHealthOptions) { super(credentials, subscriptionId, options); this.availabilityStatuses = new operations.AvailabilityStatuses(this); this.operations = new operations.Operations(this); diff --git a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealthContext.ts b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealthContext.ts index b5256df762bb..cecd9d155b3f 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealthContext.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealthContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-resourcehealth"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class MicrosoftResourceHealthContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the MicrosoftResourceHealth class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MicrosoftResourceHealthOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MicrosoftResourceHealthOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/resourcemover/arm-resourcemover/README.md b/sdk/resourcemover/arm-resourcemover/README.md index 8c8f8dae2395..dd5bb7571540 100644 --- a/sdk/resourcemover/arm-resourcemover/README.md +++ b/sdk/resourcemover/arm-resourcemover/README.md @@ -1,93 +1,103 @@ ## Azure ResourceMoverServiceAPI SDK for JavaScript -This package contains an isomorphic SDK for ResourceMoverServiceAPI. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ResourceMoverServiceAPI. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-resourcemover` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-resourcemover +npm install --save @azure/arm-resourcemover @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. + ### How to use -#### nodejs - client creation and get moveCollections as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get moveCollections as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { ResourceMoverServiceAPI } = require("@azure/arm-resourcemover"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ResourceMoverServiceAPI(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const moveCollectionName = "testmoveCollectionName"; - client.moveCollections.get(resourceGroupName, moveCollectionName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ResourceMoverServiceAPI(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const moveCollectionName = "testmoveCollectionName"; +client.moveCollections.get(resourceGroupName, moveCollectionName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get moveCollections as an example written in JavaScript. +#### browser - Authentication, client creation, and get moveCollections as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-resourcemover sample - - + diff --git a/sdk/resourcemover/arm-resourcemover/package.json b/sdk/resourcemover/arm-resourcemover/package.json index 08acdd8be900..d5e754f45a52 100644 --- a/sdk/resourcemover/arm-resourcemover/package.json +++ b/sdk/resourcemover/arm-resourcemover/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-resourcemover", "author": "Microsoft Corporation", "description": "ResourceMoverServiceAPI Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/resourceMoverServiceAPI.js", "types": "./esm/resourceMoverServiceAPI.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/resourcemover/arm-resourcemover/src/resourceMoverServiceAPI.ts b/sdk/resourcemover/arm-resourcemover/src/resourceMoverServiceAPI.ts index 4733943ad50f..42dc7b8b6bf0 100644 --- a/sdk/resourcemover/arm-resourcemover/src/resourceMoverServiceAPI.ts +++ b/sdk/resourcemover/arm-resourcemover/src/resourceMoverServiceAPI.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -23,11 +24,16 @@ class ResourceMoverServiceAPI extends ResourceMoverServiceAPIContext { /** * Initializes a new instance of the ResourceMoverServiceAPI class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ResourceMoverServiceAPIOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ResourceMoverServiceAPIOptions) { super(credentials, subscriptionId, options); this.moveCollections = new operations.MoveCollections(this); this.moveResources = new operations.MoveResources(this); diff --git a/sdk/resourcemover/arm-resourcemover/src/resourceMoverServiceAPIContext.ts b/sdk/resourcemover/arm-resourcemover/src/resourceMoverServiceAPIContext.ts index 8243af0fc771..72dd8d45bcfe 100644 --- a/sdk/resourcemover/arm-resourcemover/src/resourceMoverServiceAPIContext.ts +++ b/sdk/resourcemover/arm-resourcemover/src/resourceMoverServiceAPIContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-resourcemover"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class ResourceMoverServiceAPIContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ResourceMoverServiceAPI class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ResourceMoverServiceAPIOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ResourceMoverServiceAPIOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/resources/arm-resources-profile-2020-09-01-hybrid/README.md b/sdk/resources/arm-resources-profile-2020-09-01-hybrid/README.md index a1247d73f7a3..9019594e7ba2 100644 --- a/sdk/resources/arm-resources-profile-2020-09-01-hybrid/README.md +++ b/sdk/resources/arm-resources-profile-2020-09-01-hybrid/README.md @@ -1,90 +1,100 @@ ## Azure ResourceManagementClient SDK for JavaScript -This package contains an isomorphic SDK for ResourceManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ResourceManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-resources-profile-2020-09-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-resources-profile-2020-09-01-hybrid +npm install --save @azure/arm-resources-profile-2020-09-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ResourceManagementClient, ResourceManagementModels, ResourceManagementMappers } from "@azure/arm-resources-profile-2020-09-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ResourceManagementClient } = require("@azure/arm-resources-profile-2020-09-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ResourceManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ResourceManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-resources-profile-2020-09-01-hybrid sample - - + diff --git a/sdk/resources/arm-resources-profile-2020-09-01-hybrid/package.json b/sdk/resources/arm-resources-profile-2020-09-01-hybrid/package.json index 11a1d2d24f63..08049fb65cee 100644 --- a/sdk/resources/arm-resources-profile-2020-09-01-hybrid/package.json +++ b/sdk/resources/arm-resources-profile-2020-09-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-resources-profile-2020-09-01-hybrid", "author": "Microsoft Corporation", "description": "ResourceManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/resourceManagementClient.js", "types": "./esm/resourceManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/resources/arm-resources-profile-2020-09-01-hybrid/src/resourceManagementClient.ts b/sdk/resources/arm-resources-profile-2020-09-01-hybrid/src/resourceManagementClient.ts index 535cd08e4b20..1f14526530af 100644 --- a/sdk/resources/arm-resources-profile-2020-09-01-hybrid/src/resourceManagementClient.ts +++ b/sdk/resources/arm-resources-profile-2020-09-01-hybrid/src/resourceManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -27,11 +28,16 @@ class ResourceManagementClient extends ResourceManagementClientContext { /** * Initializes a new instance of the ResourceManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ResourceManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ResourceManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.deployments = new operations.Deployments(this); diff --git a/sdk/resources/arm-resources-profile-2020-09-01-hybrid/src/resourceManagementClientContext.ts b/sdk/resources/arm-resources-profile-2020-09-01-hybrid/src/resourceManagementClientContext.ts index d51108b522e1..92ef7b4bcf50 100644 --- a/sdk/resources/arm-resources-profile-2020-09-01-hybrid/src/resourceManagementClientContext.ts +++ b/sdk/resources/arm-resources-profile-2020-09-01-hybrid/src/resourceManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-resources-profile-2020-09-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class ResourceManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ResourceManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ResourceManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ResourceManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/resources/arm-resources-profile-hybrid-2019-03-01/README.md b/sdk/resources/arm-resources-profile-hybrid-2019-03-01/README.md index 0fdd24721776..9d60302dadf4 100644 --- a/sdk/resources/arm-resources-profile-hybrid-2019-03-01/README.md +++ b/sdk/resources/arm-resources-profile-hybrid-2019-03-01/README.md @@ -1,89 +1,100 @@ ## Azure ResourceManagementClient SDK for JavaScript -This package contains an isomorphic SDK for ResourceManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ResourceManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-resources-profile-hybrid-2019-03-01` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-resources-profile-hybrid-2019-03-01 +npm install --save @azure/arm-resources-profile-hybrid-2019-03-01 @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ResourceManagementClient, ResourceManagementModels, ResourceManagementMappers } from "@azure/arm-resources-profile-hybrid-2019-03-01"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ResourceManagementClient } = require("@azure/arm-resources-profile-hybrid-2019-03-01"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ResourceManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ResourceManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-resources-profile-hybrid-2019-03-01 sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fresources%2Farm-resources-profile-hybrid-2019-03-01%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/resources/arm-resources-profile-hybrid-2019-03-01/README.png) diff --git a/sdk/resources/arm-resources-profile-hybrid-2019-03-01/package.json b/sdk/resources/arm-resources-profile-hybrid-2019-03-01/package.json index a114ebb9b805..18a300bf6dbb 100644 --- a/sdk/resources/arm-resources-profile-hybrid-2019-03-01/package.json +++ b/sdk/resources/arm-resources-profile-hybrid-2019-03-01/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-resources-profile-hybrid-2019-03-01", "author": "Microsoft Corporation", "description": "ResourceManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -21,7 +22,7 @@ "module": "./esm/resourceManagementClient.js", "types": "./esm/resourceManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/resources/arm-resources-profile-hybrid-2019-03-01/src/resourceManagementClient.ts b/sdk/resources/arm-resources-profile-hybrid-2019-03-01/src/resourceManagementClient.ts index b712764c2a93..bae69b68006d 100644 --- a/sdk/resources/arm-resources-profile-hybrid-2019-03-01/src/resourceManagementClient.ts +++ b/sdk/resources/arm-resources-profile-hybrid-2019-03-01/src/resourceManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -27,11 +28,16 @@ class ResourceManagementClient extends ResourceManagementClientContext { /** * Initializes a new instance of the ResourceManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ResourceManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ResourceManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.deployments = new operations.Deployments(this); diff --git a/sdk/resources/arm-resources-profile-hybrid-2019-03-01/src/resourceManagementClientContext.ts b/sdk/resources/arm-resources-profile-hybrid-2019-03-01/src/resourceManagementClientContext.ts index 4ab26206226d..fc0412712c0a 100644 --- a/sdk/resources/arm-resources-profile-hybrid-2019-03-01/src/resourceManagementClientContext.ts +++ b/sdk/resources/arm-resources-profile-hybrid-2019-03-01/src/resourceManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-resources-profile-hybrid-2019-03-01"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class ResourceManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ResourceManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ResourceManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ResourceManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/search/arm-search/README.md b/sdk/search/arm-search/README.md index 8a1589580eac..159fd0119ef9 100644 --- a/sdk/search/arm-search/README.md +++ b/sdk/search/arm-search/README.md @@ -1,89 +1,100 @@ ## Azure SearchManagementClient SDK for JavaScript -This package contains an isomorphic SDK for SearchManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for SearchManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-search +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-search` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-search @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { SearchManagementClient, SearchManagementModels, SearchManagementMappers } from "@azure/arm-search"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { SearchManagementClient } = require("@azure/arm-search"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SearchManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SearchManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-search sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fsearch%2Farm-search%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/search/arm-search/README.png) diff --git a/sdk/search/arm-search/package.json b/sdk/search/arm-search/package.json index e805e27ce74a..fb90a3506f66 100644 --- a/sdk/search/arm-search/package.json +++ b/sdk/search/arm-search/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-search", "author": "Microsoft Corporation", "description": "SearchManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.3.0", + "version": "1.4.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/searchManagementClient.js", "types": "./esm/searchManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/search/arm-search/src/searchManagementClient.ts b/sdk/search/arm-search/src/searchManagementClient.ts index bbdfc8a0aa13..f103244dae59 100644 --- a/sdk/search/arm-search/src/searchManagementClient.ts +++ b/sdk/search/arm-search/src/searchManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -24,12 +25,17 @@ class SearchManagementClient extends SearchManagementClientContext { /** * Initializes a new instance of the SearchManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 unique identifier for a Microsoft Azure subscription. You can obtain * this value from the Azure Resource Manager API or the portal. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SearchManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SearchManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.adminKeys = new operations.AdminKeys(this); diff --git a/sdk/search/arm-search/src/searchManagementClientContext.ts b/sdk/search/arm-search/src/searchManagementClientContext.ts index ab46edfae202..32e5508eb276 100644 --- a/sdk/search/arm-search/src/searchManagementClientContext.ts +++ b/sdk/search/arm-search/src/searchManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-search"; -const packageVersion = "0.1.0"; +const packageVersion = "1.4.0"; export class SearchManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the SearchManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 unique identifier for a Microsoft Azure subscription. You can obtain * this value from the Azure Resource Manager API or the portal. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SearchManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SearchManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/security/arm-security/LICENSE.txt b/sdk/security/arm-security/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/security/arm-security/LICENSE.txt +++ b/sdk/security/arm-security/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 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/security/arm-security/README.md b/sdk/security/arm-security/README.md index 869cda4b96a1..16cb67aa9e5f 100644 --- a/sdk/security/arm-security/README.md +++ b/sdk/security/arm-security/README.md @@ -1,92 +1,99 @@ ## Azure SecurityCenter SDK for JavaScript -This package contains an isomorphic SDK for SecurityCenter. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for SecurityCenter. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-security` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-security +npm install --save @azure/arm-security @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. ### How to use -#### nodejs - Authentication, client creation and list complianceResults as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +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 complianceResults as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { SecurityCenter, SecurityCenterModels, SecurityCenterMappers } from "@azure/arm-security"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { SecurityCenter } = require("@azure/arm-security"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SecurityCenter(creds, subscriptionId); - const scope = "testscope"; - client.complianceResults.list(scope).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SecurityCenter(creds, subscriptionId); +const scope = "testscope"; +client.complianceResults.list(scope).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list complianceResults as an example written in JavaScript. +#### browser - Authentication, client creation, and list complianceResults as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-security sample - - + diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index ab9cfc26388f..7c2ce716cf2a 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-security", "author": "Microsoft Corporation", "description": "SecurityCenter Library with typescript type definitions for node.js and browser.", - "version": "2.0.0", + "version": "3.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,13 +21,13 @@ "module": "./esm/securityCenter.js", "types": "./esm/securityCenter.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/security/arm-security", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/security/arm-security/rollup.config.js b/sdk/security/arm-security/rollup.config.js index 2c4179d62509..bc2c8a23953c 100644 --- a/sdk/security/arm-security/rollup.config.js +++ b/sdk/security/arm-security/rollup.config.js @@ -21,8 +21,8 @@ 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. diff --git a/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts b/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts index 667ae58aa953..3a4325bbeb36 100644 --- a/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts +++ b/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.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,9 +8,9 @@ export { discriminators, - AppWhitelistingGroup, - AppWhitelistingGroups, - AppWhitelistingIssueSummary, + AdaptiveApplicationControlGroup, + AdaptiveApplicationControlGroups, + AdaptiveApplicationControlIssueSummary, CloudError, PathRecommendation, ProtectionMode, diff --git a/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts b/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts index e744310578ca..983b333d426b 100644 --- a/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts +++ b/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.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. @@ -15,9 +15,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -25,53 +25,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -87,10 +125,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -98,6 +139,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts b/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts index 4e805a8af48e..4fac024d16d6 100644 --- a/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts +++ b/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -85,10 +123,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -96,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/alertsMappers.ts b/sdk/security/arm-security/src/models/alertsMappers.ts index 54ae8a36b48f..e40ad5185eaa 100644 --- a/sdk/security/arm-security/src/models/alertsMappers.ts +++ b/sdk/security/arm-security/src/models/alertsMappers.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. @@ -13,10 +13,13 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertList, + AlertSimulatorBundlesRequestProperties, + AlertSimulatorRequestBody, + AlertSimulatorRequestProperties, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -24,53 +27,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +127,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +141,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.ts b/sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.ts index 1d11d709b04e..85425a2d0840 100644 --- a/sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.ts +++ b/sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.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. @@ -13,10 +13,10 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AlertsSuppressionRulesList, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -24,53 +24,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts b/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts index 3c08bb7fe3fa..d5c8b95ffd52 100644 --- a/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts +++ b/sdk/security/arm-security/src/models/allowedConnectionsMappers.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. diff --git a/sdk/security/arm-security/src/models/assessmentsMappers.ts b/sdk/security/arm-security/src/models/assessmentsMappers.ts index 588f3fb6ff9a..7ec5955c83c1 100644 --- a/sdk/security/arm-security/src/models/assessmentsMappers.ts +++ b/sdk/security/arm-security/src/models/assessmentsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts b/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts index 206b63ca6c92..6e6b5c282cd8 100644 --- a/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts +++ b/sdk/security/arm-security/src/models/assessmentsMetadataMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts b/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts index 10d241ae6e7d..584b2f099280 100644 --- a/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts +++ b/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, AutoProvisioningSettingList, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/automationsMappers.ts b/sdk/security/arm-security/src/models/automationsMappers.ts index c0c7f12b3797..5c234eb53d3d 100644 --- a/sdk/security/arm-security/src/models/automationsMappers.ts +++ b/sdk/security/arm-security/src/models/automationsMappers.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. diff --git a/sdk/security/arm-security/src/models/complianceResultsMappers.ts b/sdk/security/arm-security/src/models/complianceResultsMappers.ts index 9baf6d868a5f..66bdc211b151 100644 --- a/sdk/security/arm-security/src/models/complianceResultsMappers.ts +++ b/sdk/security/arm-security/src/models/complianceResultsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceResultList, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/compliancesMappers.ts b/sdk/security/arm-security/src/models/compliancesMappers.ts index 7706b9dbf8c8..cbee8d0d4e77 100644 --- a/sdk/security/arm-security/src/models/compliancesMappers.ts +++ b/sdk/security/arm-security/src/models/compliancesMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceList, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/connectorsMappers.ts b/sdk/security/arm-security/src/models/connectorsMappers.ts new file mode 100644 index 000000000000..ab08542a6ac3 --- /dev/null +++ b/sdk/security/arm-security/src/models/connectorsMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ConnectorSettingList, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/deviceOperationsMappers.ts b/sdk/security/arm-security/src/models/deviceOperationsMappers.ts new file mode 100644 index 000000000000..4fac024d16d6 --- /dev/null +++ b/sdk/security/arm-security/src/models/deviceOperationsMappers.ts @@ -0,0 +1,143 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/deviceSecurityGroupsMappers.ts b/sdk/security/arm-security/src/models/deviceSecurityGroupsMappers.ts index 8050255cd456..0246a6a6b306 100644 --- a/sdk/security/arm-security/src/models/deviceSecurityGroupsMappers.ts +++ b/sdk/security/arm-security/src/models/deviceSecurityGroupsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DeviceSecurityGroupList, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/devicesForHubMappers.ts b/sdk/security/arm-security/src/models/devicesForHubMappers.ts new file mode 100644 index 000000000000..40d1e77831fa --- /dev/null +++ b/sdk/security/arm-security/src/models/devicesForHubMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceList, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/devicesForSubscriptionMappers.ts b/sdk/security/arm-security/src/models/devicesForSubscriptionMappers.ts new file mode 100644 index 000000000000..40d1e77831fa --- /dev/null +++ b/sdk/security/arm-security/src/models/devicesForSubscriptionMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceList, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts b/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts index 7b504741880d..27e0cec44d25 100644 --- a/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts +++ b/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.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. diff --git a/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts b/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts index 55f2be16966d..f95eb684181d 100644 --- a/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts +++ b/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.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. diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index d24f392f288c..9588180edf0a 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/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. @@ -72,9 +72,8 @@ export interface TrackedResource { readonly type?: string; /** * Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + location?: string; /** * Kind of the resource */ @@ -92,12 +91,11 @@ export interface TrackedResource { /** * Describes an Azure resource with location */ -export interface Location { +export interface AzureTrackedResourceLocation { /** * Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + location?: string; } /** @@ -130,6 +128,22 @@ export interface Tags { tags?: { [propertyName: string]: string }; } +/** + * The resource management error additional info. + */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} + /** * Azure Security Center is provided in two pricing tiers: free and standard, with the standard * tier available with a trial period. The standard tier offers advanced security capabilities, @@ -161,243 +175,6 @@ export interface PricingList { value: Pricing[]; } -/** - * Changing set of properties depending on the entity type. - */ -export interface AlertEntity { - /** - * Type of entity - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. - */ - [property: string]: any; -} - -/** - * Factors that increase our confidence that the alert is a true positive - */ -export interface AlertConfidenceReason { - /** - * Type of confidence factor - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * description of the confidence reason - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly reason?: string; -} - -/** - * Security alert - */ -export interface Alert extends Resource { - /** - * State of the alert (Active, Dismissed etc.) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: string; - /** - * The time the incident was reported to Microsoft.Security in UTC - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly reportedTimeUtc?: Date; - /** - * Name of the vendor that discovered the incident - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly vendorName?: string; - /** - * Name of the alert type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly alertName?: string; - /** - * Display name of the alert type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly alertDisplayName?: string; - /** - * The time the incident was detected by the vendor - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly detectedTimeUtc?: Date; - /** - * Description of the incident and what it means - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; - /** - * Recommended steps to reradiate the incident - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly remediationSteps?: string; - /** - * The action that was taken as a response to the alert (Active, Blocked etc.) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly actionTaken?: string; - /** - * Estimated severity of this alert. Possible values include: 'Informational', 'Low', 'Medium', - * 'High' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly reportedSeverity?: ReportedSeverity; - /** - * The entity that the incident happened on - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly compromisedEntity?: string; - /** - * Azure resource ID of the associated resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly associatedResource?: string; - extendedProperties?: { [propertyName: string]: any }; - /** - * The type of the alerted resource (Azure, Non-Azure) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly systemSource?: string; - /** - * Whether this alert can be investigated with Azure Security Center - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly canBeInvestigated?: boolean; - /** - * Whether this alert is for incident type or not (otherwise - single alert) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isIncident?: boolean; - /** - * objects that are related to this alerts - */ - entities?: AlertEntity[]; - /** - * level of confidence we have on the alert - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly confidenceScore?: number; - /** - * reasons the alert got the confidenceScore value - */ - confidenceReasons?: AlertConfidenceReason[]; - /** - * Azure subscription ID of the resource that had the security alert or the subscription ID of - * the workspace that this resource reports to - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly subscriptionId?: string; - /** - * Instance ID of the alert. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly instanceId?: string; - /** - * Azure resource ID of the workspace that the alert was reported to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly workspaceArmId?: string; - /** - * Alerts with the same CorrelationKey will be grouped together in Ibiza. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly correlationKey?: string; -} - -/** - * Contains the possible cases for SettingResource. - */ -export type SettingResourceUnion = SettingResource | SettingUnion; - -/** - * The kind of the security setting - */ -export interface SettingResource { - /** - * Polymorphic Discriminator - */ - kind: "SettingResource"; - /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; -} - -/** - * Contains the possible cases for Setting. - */ -export type SettingUnion = Setting | DataExportSettings; - -/** - * Represents a security setting in Azure Security Center. - */ -export interface Setting { - /** - * Polymorphic Discriminator - */ - kind: "Setting"; - /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; -} - -/** - * Represents a data export setting - */ -export interface DataExportSettings { - /** - * Polymorphic Discriminator - */ - kind: "DataExportSettings"; - /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Is the data export setting is enabled - */ - enabled: boolean; -} - /** * The Advanced Threat Protection resource. */ @@ -554,7 +331,7 @@ export interface ListCustomAlertRule { /** * Contains the possible cases for AllowlistCustomAlertRule. */ -export type AllowlistCustomAlertRuleUnion = AllowlistCustomAlertRule | ConnectionToIpNotAllowed | LocalUserNotAllowed | ProcessNotAllowed; +export type AllowlistCustomAlertRuleUnion = AllowlistCustomAlertRule | ConnectionToIpNotAllowed | ConnectionFromIpNotAllowed | LocalUserNotAllowed | ProcessNotAllowed; /** * A custom alert rule that checks if a value (depends on the custom alert type) is allowed. @@ -678,6 +455,40 @@ export interface ConnectionToIpNotAllowed { allowlistValues: string[]; } +/** + * Inbound connection from an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in + * CIDR notation. + */ +export interface ConnectionFromIpNotAllowed { + /** + * Polymorphic Discriminator + */ + ruleType: "ConnectionFromIpNotAllowed"; + /** + * The display name of the custom alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; + /** + * The description of the custom alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Status of the custom alert. + */ + isEnabled: boolean; + /** + * The value type of the items in the list. Possible values include: 'IpCidr', 'String' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly valueType?: ValueType; + /** + * The values to allow. The format of the values depends on the rule type. + */ + allowlistValues: string[]; +} + /** * Login by a local user that isn't allowed. Allow list consists of login names to allow. */ @@ -1371,28 +1182,78 @@ export interface RecommendationConfigurationProperties { } /** - * IoT Security solution configuration and resource information. + * Properties of the additional workspaces. */ -export interface IoTSecuritySolutionModel { +export interface AdditionalWorkspacesProperties { /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Workspace resource id */ - readonly id?: string; + workspace?: string; /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Workspace type. Possible values include: 'Sentinel'. Default value: 'Sentinel'. */ - readonly name?: string; + type?: AdditionalWorkspaceType; /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of data types sent to workspace */ - readonly type?: string; + dataTypes?: AdditionalWorkspaceDataType[]; +} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { /** - * Resource tags + * The identity that created the resource. */ - tags?: { [propertyName: string]: string }; + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + +/** + * IoT Security solution configuration and resource information. + */ +export interface IoTSecuritySolutionModel { + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; /** * The resource location. */ @@ -1400,7 +1261,7 @@ export interface IoTSecuritySolutionModel { /** * Workspace resource ID */ - workspace: string; + workspace?: string; /** * Resource display name. */ @@ -1434,6 +1295,15 @@ export interface IoTSecuritySolutionModel { * value: 'Disabled'. */ unmaskedIpLoggingStatus?: UnmaskedIpLoggingStatus; + /** + * List of additional workspaces + */ + additionalWorkspaces?: AdditionalWorkspacesProperties[]; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -2165,25 +2035,6 @@ export interface RegulatoryComplianceAssessment extends Resource { readonly unsupportedResources?: number; } -/** - * Describes the server vulnerability assessment details on a resource - */ -export interface ServerVulnerabilityAssessment extends Resource { - /** - * The provisioningState of the vulnerability assessment capability on the VM. Possible values - * include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ProvisioningState; -} - -/** - * List of server vulnerability assessments - */ -export interface ServerVulnerabilityAssessmentsList { - value?: ServerVulnerabilityAssessment[]; -} - /** * Status of the sub-assessment */ @@ -2214,7 +2065,7 @@ export interface SubAssessmentStatus { /** * Contains the possible cases for ResourceDetails. */ -export type ResourceDetailsUnion = ResourceDetails | OnPremiseResourceDetails | AzureResourceDetails; +export type ResourceDetailsUnion = ResourceDetails | OnPremiseResourceDetailsUnion | AzureResourceDetails; /** * Details of the resource that was assessed @@ -2442,6 +2293,11 @@ export interface ServerVulnerabilityProperties { readonly vendorReferences?: VendorReference[]; } +/** + * Contains the possible cases for OnPremiseResourceDetails. + */ +export type OnPremiseResourceDetailsUnion = OnPremiseResourceDetails | OnPremiseSqlResourceDetails; + /** * Details of the On Premise resource that was assessed */ @@ -2468,6 +2324,40 @@ export interface OnPremiseResourceDetails { machineName: string; } +/** + * Details of the On Premise Sql resource that was assessed + */ +export interface OnPremiseSqlResourceDetails { + /** + * Polymorphic Discriminator + */ + source: "OnPremiseSql"; + /** + * Azure resource Id of the workspace the machine is attached to + */ + workspaceId: string; + /** + * The unique Id of the machine + */ + vmuuid: string; + /** + * The oms agent Id installed on the machine + */ + sourceComputerId: string; + /** + * The name of the machine + */ + machineName: string; + /** + * The Sql server name installed on the machine + */ + serverName: string; + /** + * The Sql database name installed on the machine + */ + databaseName: string; +} + /** * Details of the Azure resource that was assessed */ @@ -2540,7 +2430,9 @@ export interface AutomationRuleSet { */ export interface AutomationSource { /** - * A valid event source type. Possible values include: 'Assessments', 'Alerts' + * A valid event source type. Possible values include: 'Assessments', 'SubAssessments', 'Alerts', + * 'SecureScores', 'SecureScoresSnapshot', 'SecureScoreControls', 'SecureScoreControlsSnapshot', + * 'RegulatoryComplianceAssessment', 'RegulatoryComplianceAssessmentSnapshot' */ eventSource?: EventSource; /** @@ -2731,6 +2623,25 @@ export interface AlertsSuppressionRule extends Resource { suppressionAlertsScope?: SuppressionAlertsScope; } +/** + * Describes the server vulnerability assessment details on a resource + */ +export interface ServerVulnerabilityAssessment extends Resource { + /** + * The provisioningState of the vulnerability assessment capability on the VM. Possible values + * include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState1; +} + +/** + * List of server vulnerability assessments + */ +export interface ServerVulnerabilityAssessmentsList { + value?: ServerVulnerabilityAssessment[]; +} + /** * Describes the partner that created the assessment */ @@ -2770,7 +2681,7 @@ export interface SecurityAssessmentMetadataProperties { * Human readable description of what you should do to mitigate this security issue */ remediationDescription?: string; - category?: Category[]; + categories?: Categories[]; /** * The severity level of the assessment. Possible values include: 'Low', 'Medium', 'High' */ @@ -2819,7 +2730,7 @@ export interface SecurityAssessmentMetadata extends Resource { * Human readable description of what you should do to mitigate this security issue */ remediationDescription?: string; - category?: Category[]; + categories?: Categories[]; /** * The severity level of the assessment. Possible values include: 'Low', 'Medium', 'High' */ @@ -2935,9 +2846,9 @@ export interface ProtectionMode { } /** - * Represents a summary of the alerts of the VM/server group + * Represents a summary of the alerts of the machine group */ -export interface AppWhitelistingIssueSummary { +export interface AdaptiveApplicationControlIssueSummary { /** * Possible values include: 'ViolationsAudited', 'ViolationsBlocked', * 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', @@ -2945,13 +2856,13 @@ export interface AppWhitelistingIssueSummary { */ issue?: Issue; /** - * The number of machines in the VM/server group that have this alert + * The number of machines in the group that have this alert */ numberOfVms?: number; } /** - * Represents a machine that is part of a VM/server group + * Represents a machine that is part of a machine group */ export interface VmRecommendation { /** @@ -3011,7 +2922,7 @@ export interface UserRecommendation { */ export interface PathRecommendation { /** - * The full path to whitelist + * The full path of the file, or an identifier of the application */ path?: string; /** @@ -3025,7 +2936,7 @@ export interface PathRecommendation { type?: Type; publisherInfo?: PublisherInfo; /** - * Whether the path is commonly run on the machine + * Whether the application is commonly run on the machine */ common?: boolean; userSids?: string[]; @@ -3041,9 +2952,9 @@ export interface PathRecommendation { } /** - * An interface representing AppWhitelistingGroup. + * An interface representing AdaptiveApplicationControlGroup. */ -export interface AppWhitelistingGroup { +export interface AdaptiveApplicationControlGroup { /** * Resource Id * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -3082,7 +2993,7 @@ export interface AppWhitelistingGroup { /** * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly issues?: AppWhitelistingIssueSummary[]; + readonly issues?: AdaptiveApplicationControlIssueSummary[]; /** * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', * 'NonAzure_AuditD', 'None' @@ -3094,11 +3005,22 @@ export interface AppWhitelistingGroup { } /** - * Represents a list of VM/server groups and set of rules that are Recommended by Azure Security + * Represents a list of machine groups and set of rules that are recommended by Azure Security * Center to be allowed */ -export interface AppWhitelistingGroups { - value?: AppWhitelistingGroup[]; +export interface AdaptiveApplicationControlGroups { + value?: AdaptiveApplicationControlGroup[]; +} + +/** + * Describes an Azure resource with location + */ +export interface Location { + /** + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; } /** @@ -3595,6 +3517,68 @@ export interface DiscoveredSecuritySolution { sku: string; } +/** + * An interface representing SecuritySolutionsReferenceData. + */ +export interface SecuritySolutionsReferenceData { + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * The security family of the security solution. Possible values include: 'Waf', 'Ngfw', + * 'SaasWaf', 'Va' + */ + securityFamily: SecurityFamily; + /** + * The security solutions' vendor name + */ + alertVendorName: string; + /** + * The security solutions' package info url + */ + packageInfoUrl: string; + /** + * The security solutions' product name + */ + productName: string; + /** + * The security solutions' publisher + */ + publisher: string; + /** + * The security solutions' publisher display name + */ + publisherDisplayName: string; + /** + * The security solutions' template + */ + template: string; +} + +/** + * An interface representing SecuritySolutionsReferenceDataList. + */ +export interface SecuritySolutionsReferenceDataList { + value?: SecuritySolutionsReferenceData[]; +} + /** * Contains the possible cases for ExternalSecuritySolution. */ @@ -3807,20 +3791,31 @@ export interface AadConnectivityState1 { */ export interface SecureScoreItem extends Resource { /** - * User friendly display name of the secure score item + * The initiative’s name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly displayName?: string; /** - * Maximum score applicable + * Maximum score available * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly max?: number; /** - * Actual score + * Current score * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly current?: number; + /** + * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentage?: number; + /** + * The relative weight for each subscription. Used when calculating an aggregated secure score + * for multiple subscriptions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly weight?: number; } /** @@ -3838,16 +3833,20 @@ export interface SecureScoreControlScore { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly current?: number; + /** + * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentage?: number; } /** - * representing the source of the control + * The type of the security control (For example, BuiltIn) */ export interface SecureScoreControlDefinitionSource { /** - * BuiltIn if the control is built-in from Azure Security Center managed assessments, Custom - * (Future) if the assessment based on custom Azure Policy definition, CustomerManaged (future) - * for customers who build their own controls. Possible values include: 'BuiltIn', 'Custom' + * The type of security control (for example, BuiltIn). Possible values include: 'BuiltIn', + * 'Custom' */ sourceType?: ControlType; } @@ -3864,7 +3863,7 @@ export interface AzureResourceLink { } /** - * Secure Score Control's Definition information + * Information about the security control. */ export interface SecureScoreControlDefinitionItem extends Resource { /** @@ -3888,14 +3887,14 @@ export interface SecureScoreControlDefinitionItem extends Resource { */ readonly source?: SecureScoreControlDefinitionSource; /** - * array of assessments metadata IDs that are included in this control + * Array of assessments metadata IDs that are included in this security control * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly assessmentDefinitions?: AzureResourceLink[]; } /** - * Secure score control (calculated) object + * Details of the security control, its score, and the health status of the relevant resources. */ export interface SecureScoreControlDetails extends Resource { /** @@ -3904,15 +3903,20 @@ export interface SecureScoreControlDetails extends Resource { */ readonly displayName?: string; /** - * Maximum score applicable + * Maximum score available * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly max?: number; /** - * Actual score + * Current score * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly current?: number; + /** + * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentage?: number; /** * Number of healthy resources in the control * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -3928,1201 +3932,4818 @@ export interface SecureScoreControlDetails extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly notApplicableResourceCount?: number; + /** + * The relative weight for this specific control in each of your subscriptions. Used when + * calculating an aggregated score for this control across all of your subscriptions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly weight?: number; definition?: SecureScoreControlDefinitionItem; } /** - * Optional Parameters. + * An interface representing SecuritySolution. */ -export interface AlertsListOptionalParams extends msRest.RequestOptionsBase { +export interface SecuritySolution { /** - * OData filter. Optional. + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly id?: string; /** - * OData select. Optional. + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - select?: string; + readonly name?: string; /** - * OData expand. Optional. + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; + readonly type?: string; /** - * The name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and - * get the alerts that would have been dismissed if the rule was enabled when the alert was - * created + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - autoDismissRuleName?: string; -} - -/** - * Optional Parameters. - */ -export interface AlertsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + readonly location?: string; /** - * OData filter. Optional. + * The security family of the security solution. Possible values include: 'Waf', 'Ngfw', + * 'SaasWaf', 'Va' */ - filter?: string; + securityFamily: SecurityFamily; /** - * OData select. Optional. + * The security family provisioning State. Possible values include: 'Succeeded', 'Failed', + * 'Updating' */ - select?: string; + provisioningState: ProvisioningState; /** - * OData expand. Optional. + * The security solutions' template */ - expand?: string; + template: string; /** - * The name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and - * get the alerts that would have been dismissed if the rule was enabled when the alert was - * created + * The security solutions' status */ - autoDismissRuleName?: string; + protectionStatus: string; } /** - * Optional Parameters. + * For a non-Azure machine that is not connected directly to the internet, specify a proxy server + * that the non-Azure machine can use. */ -export interface AlertsListSubscriptionLevelAlertsByRegionOptionalParams extends msRest.RequestOptionsBase { +export interface ProxyServerProperties { /** - * OData filter. Optional. + * Proxy server IP */ - filter?: string; + ip?: string; /** - * OData select. Optional. + * Proxy server port */ - select?: string; + port?: string; +} + +/** + * Details of the service principal. + */ +export interface ServicePrincipalProperties { /** - * OData expand. Optional. + * Application ID of service principal. */ - expand?: string; + applicationId?: string; /** - * The name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and - * get the alerts that would have been dismissed if the rule was enabled when the alert was - * created + * A secret string that the application uses to prove its identity, also can be referred to as + * application password (write only). */ - autoDismissRuleName?: string; + secret?: string; } /** - * Optional Parameters. + * Settings for hybrid compute management */ -export interface AlertsListResourceGroupLevelAlertsByRegionOptionalParams extends msRest.RequestOptionsBase { +export interface HybridComputeSettingsProperties { /** - * OData filter. Optional. + * State of the service principal and its secret. Possible values include: 'Valid', 'Invalid', + * 'Expired' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly hybridComputeProvisioningState?: HybridComputeProvisioningState; /** - * OData select. Optional. + * Whether or not to automatically install Azure Arc (hybrid compute) agents on machines. + * Possible values include: 'On', 'Off' */ - select?: string; + autoProvision: AutoProvision; /** - * OData expand. Optional. + * The name of the resource group where Arc (Hybrid Compute) connectors are connected. */ - expand?: string; + resourceGroupName?: string; /** - * The name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and - * get the alerts that would have been dismissed if the rule was enabled when the alert was - * created + * The location where the metadata of machines will be stored */ - autoDismissRuleName?: string; -} - -/** - * Optional Parameters. - */ -export interface IotSecuritySolutionListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + region?: string; /** - * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + * For a non-Azure machine that is not connected directly to the internet, specify a proxy server + * that the non-Azure machine can use. */ - filter?: string; + proxyServer?: ProxyServerProperties; + /** + * An object to access resources that are secured by an Azure AD tenant. + */ + servicePrincipal?: ServicePrincipalProperties; } /** - * Optional Parameters. + * Contains the possible cases for AuthenticationDetailsProperties. */ -export interface IotSecuritySolutionListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { - /** - * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. - */ - filter?: string; -} +export type AuthenticationDetailsPropertiesUnion = AuthenticationDetailsProperties | AwsCredsAuthenticationDetailsProperties | AwAssumeRoleAuthenticationDetailsProperties | GcpCredentialsDetailsProperties; /** - * Optional Parameters. + * Settings for cloud authentication management */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams extends msRest.RequestOptionsBase { +export interface AuthenticationDetailsProperties { /** - * Number of results to retrieve. + * Polymorphic Discriminator */ - top?: number; + authenticationType: "AuthenticationDetailsProperties"; + /** + * State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', + * 'IncorrectPolicy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authenticationProvisioningState?: AuthenticationProvisioningState; + /** + * The permissions detected in the cloud account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly grantedPermissions?: PermissionProperty[]; } /** - * Optional Parameters. + * The connector setting */ -export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams extends msRest.RequestOptionsBase { +export interface ConnectorSetting extends Resource { /** - * Number of results to retrieve. + * Settings for hybrid compute management. These settings are relevant only for Arc autoProvision + * (Hybrid Compute). */ - top?: number; + hybridComputeSettings?: HybridComputeSettingsProperties; + /** + * Settings for authentication management, these settings are relevant only for the cloud + * connector. + */ + authenticationDetails?: AuthenticationDetailsPropertiesUnion; } /** - * Optional Parameters. + * AWS cloud account connector based credentials, the credentials is composed of access key ID and + * secret key, for more details, refer to Creating an IAM + * User in Your AWS Account (write only) */ -export interface TasksListOptionalParams extends msRest.RequestOptionsBase { +export interface AwsCredsAuthenticationDetailsProperties { /** - * OData filter. Optional. + * Polymorphic Discriminator */ - filter?: string; -} + authenticationType: "awsCreds"; + /** + * State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', + * 'IncorrectPolicy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authenticationProvisioningState?: AuthenticationProvisioningState; + /** + * The permissions detected in the cloud account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly grantedPermissions?: PermissionProperty[]; + /** + * The ID of the cloud account + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly accountId?: string; + /** + * Public key element of the AWS credential object (write only) + */ + awsAccessKeyId: string; + /** + * Secret key element of the AWS credential object (write only) + */ + awsSecretAccessKey: string; +} /** - * Optional Parameters. + * AWS cloud account connector based assume role, the role enables delegating access to your AWS + * resources. The role is composed of role Amazon Resource Name (ARN) and external ID. For more + * details, refer to Creating a + * Role to Delegate Permissions to an IAM User (write only) */ -export interface TasksListByHomeRegionOptionalParams extends msRest.RequestOptionsBase { +export interface AwAssumeRoleAuthenticationDetailsProperties { /** - * OData filter. Optional. + * Polymorphic Discriminator */ - filter?: string; + authenticationType: "awsAssumeRole"; + /** + * State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', + * 'IncorrectPolicy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authenticationProvisioningState?: AuthenticationProvisioningState; + /** + * The permissions detected in the cloud account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly grantedPermissions?: PermissionProperty[]; + /** + * The ID of the cloud account + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly accountId?: string; + /** + * Assumed role ID is an identifier that you can use to create temporary security credentials. + */ + awsAssumeRoleArn: string; + /** + * A unique identifier that is required when you assume a role in another account. + */ + awsExternalId: string; } /** - * Optional Parameters. + * GCP cloud account connector based service to service credentials, the credentials are composed + * of the organization ID and a JSON API key (write only) */ -export interface TasksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface GcpCredentialsDetailsProperties { /** - * OData filter. Optional. + * Polymorphic Discriminator */ - filter?: string; + authenticationType: "gcpCredentials"; + /** + * State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', + * 'IncorrectPolicy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authenticationProvisioningState?: AuthenticationProvisioningState; + /** + * The permissions detected in the cloud account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly grantedPermissions?: PermissionProperty[]; + /** + * The organization ID of the GCP cloud account + */ + organizationId: string; + /** + * Type field of the API key (write only) + */ + type: string; + /** + * Project ID field of the API key (write only) + */ + projectId: string; + /** + * Private key ID field of the API key (write only) + */ + privateKeyId: string; + /** + * Private key field of the API key (write only) + */ + privateKey: string; + /** + * Client email field of the API key (write only) + */ + clientEmail: string; + /** + * Client ID field of the API key (write only) + */ + clientId: string; + /** + * Auth URI field of the API key (write only) + */ + authUri: string; + /** + * Token URI field of the API key (write only) + */ + tokenUri: string; + /** + * Auth provider x509 certificate URL field of the API key (write only) + */ + authProviderX509CertUrl: string; + /** + * Client x509 certificate URL field of the API key (write only) + */ + clientX509CertUrl: string; } /** - * Optional Parameters. + * A vulnerability assessment scan record properties. */ -export interface RegulatoryComplianceStandardsListOptionalParams extends msRest.RequestOptionsBase { +export interface ScanProperties { /** - * OData filter. Optional. + * Possible values include: 'OnDemand', 'Recurring' */ - filter?: string; + triggerType?: ScanTriggerType; + /** + * Possible values include: 'Failed', 'FailedToRun', 'InProgress', 'Passed' + */ + state?: ScanState; + /** + * The server name. + */ + server?: string; + /** + * The database name. + */ + database?: string; + /** + * The SQL version. + */ + sqlVersion?: string; + /** + * The scan start time (UTC). + */ + startTime?: Date; + /** + * Scan results are valid until end time (UTC). + */ + endTime?: Date; + /** + * The number of failed rules with high severity. + */ + highSeverityFailedRulesCount?: number; + /** + * The number of failed rules with medium severity. + */ + mediumSeverityFailedRulesCount?: number; + /** + * The number of failed rules with low severity. + */ + lowSeverityFailedRulesCount?: number; + /** + * The number of total passed rules. + */ + totalPassedRulesCount?: number; + /** + * The number of total failed rules. + */ + totalFailedRulesCount?: number; + /** + * The number of total rules assessed. + */ + totalRulesCount?: number; + /** + * Baseline created for this database, and has one or more rules. + */ + isBaselineApplied?: boolean; } /** - * Optional Parameters. + * A vulnerability assessment scan record. */ -export interface RegulatoryComplianceControlsListOptionalParams extends msRest.RequestOptionsBase { - /** - * OData filter. Optional. - */ - filter?: string; +export interface Scan extends Resource { + properties?: ScanProperties; } /** - * Optional Parameters. + * A list of vulnerability assessment scan records. */ -export interface RegulatoryComplianceAssessmentsListOptionalParams extends msRest.RequestOptionsBase { +export interface Scans { /** - * OData filter. Optional. + * List of vulnerability assessment scan records. */ - filter?: string; + value?: Scan[]; } /** - * Optional Parameters. + * Remediation details. */ -export interface AlertsSuppressionRulesListOptionalParams extends msRest.RequestOptionsBase { +export interface Remediation { /** - * Type of the alert to get rules for + * Remediation description. */ - alertType?: string; + description?: string; + /** + * Remediation script. + */ + scripts?: string[]; + /** + * Is remediation automated. + */ + automated?: boolean; + /** + * Optional link to remediate in Azure Portal. + */ + portalLink?: string; } /** - * Optional Parameters. + * Baseline details. */ -export interface AssessmentsGetOptionalParams extends msRest.RequestOptionsBase { +export interface Baseline { /** - * OData expand. Optional. Possible values include: 'links', 'metadata' + * Expected results. */ - expand?: ExpandEnum; + expectedResults?: string[][]; + /** + * Baseline update time (UTC). + */ + updatedTime?: Date; } /** - * Optional Parameters. + * The rule result adjusted with baseline. */ -export interface AdaptiveApplicationControlsListOptionalParams extends msRest.RequestOptionsBase { +export interface BaselineAdjustedResult { + baseline?: Baseline; /** - * Include the policy rules + * Possible values include: 'NonFinding', 'Finding', 'InternalError' */ - includePathRecommendations?: boolean; + status?: RuleStatus; /** - * Return output in a summarized form + * Results the are not in baseline. */ - summary?: boolean; + resultsNotInBaseline?: string[][]; + /** + * Results the are in baseline. + */ + resultsOnlyInBaseline?: string[][]; } /** - * Optional Parameters. + * The rule query details. */ -export interface SecureScoreControlsListBySecureScoreOptionalParams extends msRest.RequestOptionsBase { +export interface QueryCheck { /** - * OData expand. Optional. Possible values include: 'definition' + * The rule query. */ - expand?: ExpandControlsEnum; + query?: string; + /** + * Expected result. + */ + expectedResult?: string[][]; + /** + * Column names of expected result. + */ + columnNames?: string[]; } /** - * Optional Parameters. + * The benchmark references. */ -export interface SecureScoreControlsListOptionalParams extends msRest.RequestOptionsBase { +export interface BenchmarkReference { /** - * OData expand. Optional. Possible values include: 'definition' + * The benchmark name. */ - expand?: ExpandControlsEnum; + benchmark?: string; + /** + * The benchmark reference. + */ + reference?: string; } /** - * An interface representing SecurityCenterOptions. + * vulnerability assessment rule metadata details. */ -export interface SecurityCenterOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface VaRule { + /** + * The rule Id. + */ + ruleId?: string; + /** + * Possible values include: 'High', 'Medium', 'Low', 'Informational', 'Obsolete' + */ + severity?: RuleSeverity; + /** + * The rule category. + */ + category?: string; + /** + * Possible values include: 'Binary', 'BaselineExpected', 'PositiveList', 'NegativeList' + */ + ruleType?: RuleType; + /** + * The rule title. + */ + title?: string; + /** + * The rule description. + */ + description?: string; + /** + * The rule rationale. + */ + rationale?: string; + queryCheck?: QueryCheck; + /** + * The benchmark references. + */ + benchmarkReferences?: BenchmarkReference[]; } /** - * @interface - * List of compliance results response - * @extends Array + * A vulnerability assessment scan result properties for a single rule. */ -export interface ComplianceResultList extends Array { +export interface ScanResultProperties { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The rule Id. */ - readonly nextLink?: string; + ruleId?: string; + /** + * Possible values include: 'NonFinding', 'Finding', 'InternalError' + */ + status?: RuleStatus; + /** + * Indicated whether the results specified here are trimmed. + */ + isTrimmed?: boolean; + /** + * The results of the query that was run. + */ + queryResults?: string[][]; + remediation?: Remediation; + baselineAdjustedResult?: BaselineAdjustedResult; + ruleMetadata?: VaRule; } /** - * @interface - * List of security alerts - * @extends Array + * A vulnerability assessment scan result for a single rule. */ -export interface AlertList extends Array { - /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; +export interface ScanResult extends Resource { + properties?: ScanResultProperties; } /** - * @interface - * Subscription settings list. - * @extends Array + * A list of vulnerability assessment scan results. */ -export interface SettingsList extends Array { +export interface ScanResults { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of vulnerability assessment scan results. */ - readonly nextLink?: string; + value?: ScanResult[]; } /** - * @interface - * List of device security groups - * @extends Array + * Rule results input. */ -export interface DeviceSecurityGroupList extends Array { +export interface RuleResultsInput { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Take results from latest scan. */ - readonly nextLink?: string; + latestScan?: boolean; + /** + * Expected results to be inserted into the baseline. + * Leave this field empty it LatestScan == true. + */ + results?: string[][]; } /** - * @interface - * List of IoT Security solutions. - * @extends Array + * Rule results properties. */ -export interface IoTSecuritySolutionsList extends Array { +export interface RuleResultsProperties { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Expected results in the baseline. */ - readonly nextLink?: string; + results?: string[][]; } /** - * @interface - * List of IoT Security solution aggregated alert data. - * @extends Array + * Rule results. */ -export interface IoTSecurityAggregatedAlertList extends Array { - /** - * When there is too much alert data for one page, use this URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; +export interface RuleResults extends Resource { + properties?: RuleResultsProperties; } /** - * @interface - * List of IoT Security solution aggregated recommendations. - * @extends Array + * A list of rules results. */ -export interface IoTSecurityAggregatedRecommendationList extends Array { +export interface RulesResults { /** - * When there is too much alert data for one page, use this URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of rule results. */ - readonly nextLink?: string; + value?: RuleResults[]; } /** - * @interface - * List of locations where ASC saves your data - * @extends Array + * Rules results input. */ -export interface AscLocationList extends Array { +export interface RulesResultsInput { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Take results from latest scan. */ - readonly nextLink?: string; + latestScan?: boolean; + /** + * Expected results to be inserted into the baseline. + * Leave this field empty it LatestScan == true. + */ + results?: { [propertyName: string]: string[][] }; } /** - * @interface - * List of possible operations for Microsoft.Security resource provider - * @extends Array + * IoT Defender settings */ -export interface OperationList extends Array { +export interface IotDefenderSettingsModel extends Resource { /** - * The URI to fetch the next page. + * Size of the device quota (as a opposed to a Pay as You Go billing model). Value is required to + * be in multiples of 1000. + */ + deviceQuota: number; + /** + * Sentinel Workspace Resource Ids + */ + sentinelWorkspaceResourceIds: string[]; + /** + * The kind of onboarding for the subscription. Possible values include: 'Default', + * 'MigratedToAzure', 'Evaluation', 'Purchased' + */ + onboardingKind: OnboardingKind; + /** + * End time of the evaluation period, if such exist * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly evaluationEndTime?: Date; } /** - * @interface - * List of security task recommendations - * @extends Array + * List of IoT Defender settings */ -export interface SecurityTaskList extends Array { +export interface IotDefenderSettingsList { /** - * The URI to fetch the next page. + * List data * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly value?: IotDefenderSettingsModel[]; } /** - * @interface - * List of all the auto provisioning settings response - * @extends Array + * Information on a specific package download */ -export interface AutoProvisioningSettingList extends Array { +export interface PackageDownloadInfo { /** - * The URI to fetch the next page. + * Version number * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * List of Compliance objects response - * @extends Array - */ -export interface ComplianceList extends Array { + readonly version?: string; /** - * The URI to fetch the next page. + * Download link + */ + link?: string; + /** + * Kind of the version. Possible values include: 'Latest', 'Previous', 'Preview' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly versionKind?: VersionKind; } /** - * @interface - * Information protection policies response. - * @extends Array + * Information on a specific package upgrade download */ -export interface InformationProtectionPolicyList extends Array { +export interface UpgradePackageDownloadInfo extends PackageDownloadInfo { /** - * The URI to fetch the next page. + * Minimum base version for upgrade * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly fromVersion?: string; } /** - * @interface - * List of security contacts response - * @extends Array + * Contains all OVF (virtual machine) full versions for the sensor */ -export interface SecurityContactList extends Array { +export interface PackageDownloadsSensorFullOvf { /** - * The URI to fetch the next page. + * Enterprise package type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * List of workspace settings response - * @extends Array - */ -export interface WorkspaceSettingList extends Array { + readonly enterprise?: PackageDownloadInfo[]; /** - * The URI to fetch the next page. + * Medium package type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly medium?: PackageDownloadInfo[]; + /** + * Line package type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly line?: PackageDownloadInfo[]; } /** - * @interface - * List of regulatory compliance standards response - * @extends Array + * Contains full package downloads */ -export interface RegulatoryComplianceStandardList extends Array { +export interface PackageDownloadsSensorFull { /** - * The URI to fetch the next page. + * Contains all ISO full versions for the sensor * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly iso?: PackageDownloadInfo[]; + /** + * Contains all OVF (virtual machine) full versions for the sensor + */ + ovf?: PackageDownloadsSensorFullOvf; } /** - * @interface - * List of regulatory compliance controls response - * @extends Array + * Contains all Sensor binary downloads */ -export interface RegulatoryComplianceControlList extends Array { +export interface PackageDownloadsSensor { /** - * The URI to fetch the next page. + * Contains full package downloads * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly full?: PackageDownloadsSensorFull; + /** + * Sensor upgrade package downloads (on existing installations) + */ + upgrade?: UpgradePackageDownloadInfo[]; } /** - * @interface - * List of regulatory compliance assessment response - * @extends Array + * Contains all OVF (virtual machine) full versions of the Central Manager */ -export interface RegulatoryComplianceAssessmentList extends Array { +export interface PackageDownloadsCentralManagerFullOvf { /** - * The URI to fetch the next page. + * The Enterprise package type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly enterprise?: PackageDownloadInfo[]; + /** + * The EnterpriseHighAvailability package type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly enterpriseHighAvailability?: PackageDownloadInfo[]; + /** + * The Medium package type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly medium?: PackageDownloadInfo[]; + /** + * The MediumHighAvailability package type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly mediumHighAvailability?: PackageDownloadInfo[]; } /** - * @interface - * List of security sub-assessments - * @extends Array + * Contains full package downloads */ -export interface SecuritySubAssessmentList extends Array { +export interface PackageDownloadsCentralManagerFull { /** - * The URI to fetch the next page. + * Contains all ISO full versions of the Central Manager * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly iso?: PackageDownloadInfo[]; + /** + * Contains all OVF (virtual machine) full versions of the Central Manager + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ovf?: PackageDownloadsCentralManagerFullOvf; } /** - * @interface - * List of security automations response. - * @extends Array + * All downloads for Central Manager */ -export interface AutomationList extends Array { +export interface PackageDownloadsCentralManager { /** - * The URI to fetch the next page. + * Contains full package downloads * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly full?: PackageDownloadsCentralManagerFull; + /** + * Central Manager upgrade package downloads (on existing installations) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly upgrade?: UpgradePackageDownloadInfo[]; } /** - * @interface - * Suppression rules list for subscription. - * @extends Array + * Information about package downloads */ -export interface AlertsSuppressionRulesList extends Array { +export interface PackageDownloads { /** - * URI to fetch the next page. + * Contains all Sensor binary downloads * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly sensor?: PackageDownloadsSensor; + /** + * All downloads for Central Manager + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly centralManager?: PackageDownloadsCentralManager; + /** + * All downloads for threat intelligence + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly threatIntelligence?: PackageDownloadInfo[]; + /** + * SNMP Server file + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly snmp?: PackageDownloadInfo[]; + /** + * Used for local configuration export + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly wmiTool?: PackageDownloadInfo[]; + /** + * Authorized devices import template + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authorizedDevicesImportTemplate?: PackageDownloadInfo[]; + /** + * Authorized devices import template + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deviceInformationUpdateImportTemplate?: PackageDownloadInfo[]; } /** - * @interface - * List of security assessment metadata - * @extends Array + * IoT sensor model */ -export interface SecurityAssessmentMetadataList extends Array { +export interface IotSensorsModel extends Resource { /** - * The URI to fetch the next page. + * Last connectivity time of the IoT sensor * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly connectivityTime?: string; + /** + * Creation time of the IoT sensor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationTime?: string; + /** + * Dynamic mode status of the IoT sensor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dynamicLearning?: boolean; + /** + * Learning mode status of the IoT sensor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly learningMode?: boolean; + /** + * Status of the IoT sensor. Possible values include: 'Ok', 'Disconnected', 'Unavailable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sensorStatus?: SensorStatus; + /** + * Version of the IoT sensor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sensorVersion?: string; + /** + * TI Automatic mode status of the IoT sensor + */ + tiAutomaticUpdates?: boolean; + /** + * TI Status of the IoT sensor. Possible values include: 'Ok', 'Failed', 'InProgress', + * 'UpdateAvailable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tiStatus?: TiStatus; + /** + * TI Version of the IoT sensor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tiVersion?: string; + /** + * Zone of the IoT sensor + */ + zone?: string; + /** + * Type of sensor. Possible values include: 'Ot', 'Enterprise' + */ + sensorType?: SensorType; } /** - * @interface - * Page of a security assessments list - * @extends Array + * List of IoT sensors */ -export interface SecurityAssessmentList extends Array { +export interface IotSensorsList { /** - * The URI to fetch the next page. + * List data * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly value?: IotSensorsModel[]; } /** - * @interface - * Response for ListAdaptiveNetworkHardenings API service call - * @extends Array + * Reset password input. */ -export interface AdaptiveNetworkHardeningsList extends Array { +export interface ResetPasswordInput { /** - * The URL to get the next set of results + * The appliance id of the sensor. */ - nextLink?: string; + applianceId?: string; } /** - * @interface - * List of all possible traffic between Azure resources - * @extends Array + * IP Address information */ -export interface AllowedConnectionsList extends Array { +export interface IpAddress { /** - * The URI to fetch the next page. + * IPV4 address * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * An interface representing the TopologyList. - * @extends Array - */ -export interface TopologyList extends Array { + readonly v4Address?: string; /** - * The URI to fetch the next page. + * Detection time of the ip address. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly detectionTime?: Date; + /** + * Subnet Classless Inter-Domain Routing + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subnetCidr?: string; + /** + * Fully qualified domain name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly fqdn?: string; + /** + * FQDN last lookup time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly fqdnLastLookupTime?: Date; } /** - * @interface - * An interface representing the JitNetworkAccessPoliciesList. - * @extends Array + * MAC Address information */ -export interface JitNetworkAccessPoliciesList extends Array { +export interface MacAddress { /** - * The URI to fetch the next page. + * MAC address * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly address?: string; + /** + * Detection time of the mac address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly detectionTime?: Date; + /** + * Indicates whether this is the primary secondary MAC address of the device. Possible values + * include: 'Primary', 'Secondary' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly significance?: MacSignificance; + /** + * Indicates whether the relation of the mac to the ip address is certain or a guess. Possible + * values include: 'Guess', 'Certain' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly relationToIpStatus?: RelationToIpStatus; } /** - * @interface - * An interface representing the DiscoveredSecuritySolutionList. - * @extends Array + * Network interface */ -export interface DiscoveredSecuritySolutionList extends Array { +export interface NetworkInterface { + ipAddress?: IpAddress; + macAddress?: MacAddress; /** - * The URI to fetch the next page. + * List of device vlans. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly vlans?: string[]; } /** - * @interface - * An interface representing the ExternalSecuritySolutionList. - * @extends Array + * Protocol data */ -export interface ExternalSecuritySolutionList extends Array { +export interface Protocol1 { /** - * The URI to fetch the next page. + * Protocol name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly name?: string; + /** + * list of protocol identifiers. + */ + identifiers?: string; } /** - * @interface - * Page of a secure scores list - * @extends Array + * Firmware information */ -export interface SecureScoresList extends Array { +export interface Firmware { /** - * The URI to fetch the next page. + * Address of the specific module a firmware is related to * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly moduleAddress?: string; + /** + * Rack number of the module a firmware is related to. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly rack?: string; + /** + * Slot number in the rack of the module a firmware is related to + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly slot?: string; + /** + * Serial of the firmware + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serial?: string; + /** + * Firmware model + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly model?: string; + /** + * Firmware version + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: string; + /** + * A bag of fields which extends the firmware information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalData?: any; } /** - * @interface - * Page of a secure score controls list - * @extends Array + * Sensor data */ -export interface SecureScoreControlList extends Array { +export interface Sensor { /** - * The URI to fetch the next page. + * Sensor name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly name?: string; + /** + * Zone Name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly zone?: string; } /** - * @interface - * Page of a secure score controls definition list - * @extends Array + * Site data */ -export interface SecureScoreControlDefinitionList extends Array { +export interface Site { /** - * The URI to fetch the next page. + * Site display name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly displayName?: string; } /** - * Defines values for ResourceStatus. - * Possible values include: 'Healthy', 'NotApplicable', 'OffByPolicy', 'NotHealthy' - * @readonly - * @enum {string} + * Device model + */ +export interface Device extends Resource { + /** + * Device display name given by the collector + */ + displayName?: string; + /** + * Device type. + */ + deviceType?: string; + /** + * The source that created the device + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourceName?: string; + /** + * List of network interfaces. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly networkInterfaces?: NetworkInterface[]; + /** + * Device vendor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vendor?: string; + /** + * Device operating system name. + */ + osName?: string; + /** + * List of protocols. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly protocols?: Protocol1[]; + /** + * last time the device was active in the network + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastActiveTime?: Date; + /** + * last time the device was updated + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUpdateTime?: Date; + /** + * Managed state of the device. Possible values include: 'Managed', 'Unmanaged' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly managementState?: ManagementState; + /** + * Authorized state of the device. Possible values include: 'Authorized', 'Unauthorized'. Default + * value: 'Unauthorized'. + */ + authorizationState?: AuthorizationState; + /** + * Device criticality. Possible values include: 'Important', 'Standard'. Default value: + * 'Standard'. + */ + deviceCriticality?: DeviceCriticality; + /** + * Purdue level of the device. Possible values include: 'ProcessControl', 'Supervisory', + * 'Enterprise'. Default value: 'ProcessControl'. + */ + purdueLevel?: PurdueLevel; + /** + * user notes for the device, up to 300 characters. + */ + notes?: string; + /** + * List of device firmwares. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly firmwares?: Firmware[]; + /** + * Discovered time of the device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly discoveryTime?: Date; + /** + * Indicates whether this device is programming. Possible values include: 'ProgrammingDevice', + * 'NotProgrammingDevice' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly programmingState?: ProgrammingState; + /** + * last time the device was programming or programed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastProgrammingTime?: Date; + /** + * Indicates whether the device is a scanner. Possible values include: 'ScannerDevice', + * 'NotScannerDevice' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scanningFunctionality?: ScanningFunctionality; + /** + * last time the device was scanning. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastScanTime?: Date; + /** + * risk score of the device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly riskScore?: number; + /** + * List of sensors that scanned this device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sensors?: Sensor[]; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly site?: Site; + /** + * Device status. Possible values include: 'Active', 'Removed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deviceStatus?: DeviceStatus; +} + +/** + * On-premise IoT sensor + */ +export interface OnPremiseIotSensor extends Resource { + /** + * On-premise IoT sensor properties + */ + properties?: any; +} + +/** + * List of on-premise IoT sensors + */ +export interface OnPremiseIotSensorsList { + /** + * List data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: OnPremiseIotSensor[]; +} + +/** + * IoT site model + */ +export interface IotSitesModel extends Resource { + /** + * Display name of the IoT site + */ + displayName: string; + /** + * Tags of the IoT site + */ + tags?: { [propertyName: string]: string }; +} + +/** + * List of IoT sites + */ +export interface IotSitesList { + /** + * List data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: IotSitesModel[]; +} + +/** + * IoT alert + */ +export interface IotAlertModel extends Resource { + /** + * Holds the product canonical identifier of the alert within the scope of a product + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemAlertId?: string; + /** + * Display name of the main entity being reported on + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly compromisedEntity?: string; + /** + * The type name of the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly alertType?: string; + /** + * The impact start time of the alert (the time of the first event or activity included in the + * alert) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: string; + /** + * The impact end time of the alert (the time of the last event or activity included in the + * alert) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: string; + /** + * A list of entities related to the alert + */ + entities?: any[]; + /** + * A bag of fields which extends the alert information + */ + extendedProperties?: any; +} + +/** + * IoT alert type. + */ +export interface IotAlertType extends Resource { + /** + * The display name of the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly alertDisplayName?: string; + /** + * The severity of the alert. Possible values include: 'Informational', 'Low', 'Medium', 'High' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly severity?: AlertSeverity; + /** + * Description of the suspected vulnerability and meaning. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * The name of the alert provider or internal partner + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly providerName?: string; + /** + * The name of the product which published this alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly productName?: string; + /** + * The name of a component inside the product which generated the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly productComponentName?: string; + /** + * The name of the vendor that raise the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vendorName?: string; + /** + * Kill chain related intent behind the alert. Could contain multiple enum values (separated by + * commas). Possible values include: 'Unknown', 'PreAttack', 'InitialAccess', 'Persistence', + * 'PrivilegeEscalation', 'DefenseEvasion', 'CredentialAccess', 'Discovery', 'LateralMovement', + * 'Execution', 'Collection', 'Exfiltration', 'CommandAndControl', 'Impact', 'Probing', + * 'Exploitation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly intent?: AlertIntent; + /** + * Manual action items to take to remediate the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly remediationSteps?: string[]; +} + +/** + * List of alert types + */ +export interface IotAlertTypeList { + /** + * List data + */ + value?: IotAlertType[]; +} + +/** + * IoT recommendation + */ +export interface IotRecommendationModel extends Resource { + /** + * Identifier of the device being reported on + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deviceId?: string; + /** + * The type name of the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly recommendationType?: string; + /** + * The discovery time of the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly discoveredTimeUtc?: string; + /** + * A bag of fields which extends the recommendation information + */ + recommendationAdditionalData?: any; +} + +/** + * IoT recommendation type. + */ +export interface IotRecommendationType extends Resource { + /** + * The display name of the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly recommendationDisplayName?: string; + /** + * The severity of the recommendation. Possible values include: 'Unknown', 'NotApplicable', + * 'Healthy', 'OffByPolicy', 'Low', 'Medium', 'High' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly severity?: RecommendationSeverity; + /** + * Description of the suspected vulnerability and meaning. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * The name of the product which published this recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly productName?: string; + /** + * The name of a component inside the product which generated the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly productComponentName?: string; + /** + * The name of the vendor that raised the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vendorName?: string; + /** + * The name of the recommendation's control category + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly control?: string; + /** + * Manual action items to take to resolve the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly remediationSteps?: string[]; + /** + * The alert's data source + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSource?: string; +} + +/** + * List of recommendation types + */ +export interface IotRecommendationTypeList { + /** + * List data + */ + value?: IotRecommendationType[]; +} + +/** + * Contains the possible cases for ResourceIdentifier. + */ +export type ResourceIdentifierUnion = ResourceIdentifier | AzureResourceIdentifier | LogAnalyticsIdentifier; + +/** + * A resource identifier for an alert which can be used to direct the alert to the right product + * exposure group (tenant, workspace, subscription etc.). + */ +export interface ResourceIdentifier { + /** + * Polymorphic Discriminator + */ + type: "ResourceIdentifier"; +} + +/** + * Changing set of properties depending on the entity type. + */ +export interface AlertEntity { + /** + * Type of entity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [property: string]: any; +} + +/** + * Security alert + */ +export interface Alert extends Resource { + /** + * Unique identifier for the detection logic (all alert instances from the same detection logic + * will have the same alertType). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly alertType?: string; + /** + * Unique identifier for the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemAlertId?: string; + /** + * The name of Azure Security Center pricing tier which powering this alert. Learn more: + * https://docs.microsoft.com/en-us/azure/security-center/security-center-pricing + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly productComponentName?: string; + /** + * The display name of the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly alertDisplayName?: string; + /** + * Description of the suspicious activity that was detected. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * The risk level of the threat that was detected. Learn more: + * https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly severity?: AlertSeverity; + /** + * The kill chain related intent behind the alert. For list of supported values, and explanations + * of Azure Security Center's supported kill chain intents. Possible values include: 'Unknown', + * 'PreAttack', 'InitialAccess', 'Persistence', 'PrivilegeEscalation', 'DefenseEvasion', + * 'CredentialAccess', 'Discovery', 'LateralMovement', 'Execution', 'Collection', 'Exfiltration', + * 'CommandAndControl', 'Impact', 'Probing', 'Exploitation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly intent?: Intent; + /** + * The UTC time of the first event or activity included in the alert in ISO8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: Date; + /** + * The UTC time of the last event or activity included in the alert in ISO8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: Date; + /** + * The resource identifiers that can be used to direct the alert to the right product exposure + * group (tenant, workspace, subscription etc.). There can be multiple identifiers of different + * type per alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceIdentifiers?: ResourceIdentifierUnion[]; + /** + * Manual action items to take to remediate the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly remediationSteps?: string[]; + /** + * The name of the vendor that raises the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vendorName?: string; + /** + * The life cycle status of the alert. Possible values include: 'Active', 'Resolved', 'Dismissed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: AlertStatus; + /** + * Links related to the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly extendedLinks?: { [propertyName: string]: string }[]; + /** + * A direct link to the alert page in Azure Portal. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly alertUri?: string; + /** + * The UTC time the alert was generated in ISO8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timeGeneratedUtc?: Date; + /** + * The name of the product which published this alert (Azure Security Center, Azure ATP, + * Microsoft Defender ATP, O365 ATP, MCAS, and so on). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly productName?: string; + /** + * The UTC processing end time of the alert in ISO8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly processingEndTimeUtc?: Date; + /** + * A list of entities related to the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly entities?: AlertEntity[]; + /** + * This field determines whether the alert is an incident (a compound grouping of several alerts) + * or a single alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isIncident?: boolean; + /** + * Key for corelating related alerts. Alerts with the same correlation key considered to be + * related. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly correlationKey?: string; + /** + * Custom properties for the alert. + */ + extendedProperties?: { [propertyName: string]: string }; + /** + * The display name of the resource most related to this alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly compromisedEntity?: string; +} + +/** + * Azure resource identifier. + */ +export interface AzureResourceIdentifier { + /** + * Polymorphic Discriminator + */ + type: "AzureResource"; + /** + * ARM resource identifier for the cloud resource being alerted on + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly azureResourceId?: string; +} + +/** + * Represents a Log Analytics workspace scope identifier. + */ +export interface LogAnalyticsIdentifier { + /** + * Polymorphic Discriminator + */ + type: "LogAnalytics"; + /** + * The LogAnalytics workspace id that stores this alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly workspaceId?: string; + /** + * The azure subscription id for the LogAnalytics workspace storing this alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly workspaceSubscriptionId?: string; + /** + * The azure resource group for the LogAnalytics workspace storing this alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly workspaceResourceGroup?: string; + /** + * (optional) The LogAnalytics agent id reporting the event that this alert is based on. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly agentId?: string; +} + +/** + * Contains the possible cases for AlertSimulatorRequestProperties. + */ +export type AlertSimulatorRequestPropertiesUnion = AlertSimulatorRequestProperties | AlertSimulatorBundlesRequestProperties; + +/** + * Describes properties of an alert simulation request + */ +export interface AlertSimulatorRequestProperties { + /** + * Polymorphic Discriminator + */ + kind: "AlertSimulatorRequestProperties"; + /** + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [property: string]: any; +} + +/** + * Alert Simulator request body. + */ +export interface AlertSimulatorRequestBody { + /** + * Alert Simulator request body data. + */ + properties?: AlertSimulatorRequestPropertiesUnion; +} + +/** + * Simulate alerts according to this bundles. + */ +export interface AlertSimulatorBundlesRequestProperties { + /** + * Polymorphic Discriminator + */ + kind: "Bundles"; + /** + * Bundles list. + */ + bundles?: BundleType[]; +} + +/** + * Contains the possible cases for Setting. + */ +export type SettingUnion = Setting | DataExportSettings | AlertSyncSettings; + +/** + * The kind of the security setting + */ +export interface Setting { + /** + * Polymorphic Discriminator + */ + kind: "Setting"; + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * Represents a data export setting + */ +export interface DataExportSettings { + /** + * Polymorphic Discriminator + */ + kind: "DataExportSettings"; + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Is the data export setting enabled + */ + enabled: boolean; +} + +/** + * Represents an alert sync setting + */ +export interface AlertSyncSettings { + /** + * Polymorphic Discriminator + */ + kind: "AlertSyncSettings"; + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Is the alert sync setting enabled + */ + enabled: boolean; +} + +/** + * Configures how to correlate scan data and logs with resources associated with the subscription. + */ +export interface IngestionSetting extends Resource { + /** + * Ingestion setting data + */ + properties?: any; +} + +/** + * Configures how to correlate scan data and logs with resources associated with the subscription. + */ +export interface IngestionSettingToken { + /** + * The token is used for correlating security data and logs with the resources in the + * subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly token?: string; +} + +/** + * Connection string for ingesting security data and logs + */ +export interface IngestionConnectionString { + /** + * The region where ingested logs and data resides + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Connection string value + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: string; +} + +/** + * Connection string for ingesting security data and logs + */ +export interface ConnectionStrings { + /** + * Connection strings + */ + value: IngestionConnectionString[]; +} + +/** + * Represents a software data + */ +export interface Software extends Resource { + /** + * Unique identifier for the virtual machine in the service. + */ + deviceId?: string; + /** + * Platform of the operating system running on the device. + */ + osPlatform?: string; + /** + * Name of the software vendor. + */ + vendor?: string; + /** + * Name of the software product. + */ + softwareName?: string; + /** + * Version number of the software product. + */ + version?: string; + /** + * End of support status. Possible values include: 'None', 'noLongerSupported', + * 'versionNoLongerSupported', 'upcomingNoLongerSupported', 'upcomingVersionNoLongerSupported' + */ + endOfSupportStatus?: EndOfSupportStatus; + /** + * The end of support date in case the product is upcoming end of support. + */ + endOfSupportDate?: string; + /** + * Number of weaknesses. + */ + numberOfKnownVulnerabilities?: number; + /** + * First time that the software was seen in the device. + */ + firstSeenAt?: string; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of results to retrieve. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of results to retrieve. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of results to retrieve. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of results to retrieve. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface TasksListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListByHomeRegionOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListByHomeRegionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceStandardsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceStandardsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceControlsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceControlsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceAssessmentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceAssessmentsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface AlertsSuppressionRulesListOptionalParams extends msRest.RequestOptionsBase { + /** + * Type of the alert to get rules for + */ + alertType?: string; +} + +/** + * Optional Parameters. + */ +export interface AlertsSuppressionRulesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Type of the alert to get rules for + */ + alertType?: string; +} + +/** + * Optional Parameters. + */ +export interface AssessmentsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * OData expand. Optional. Possible values include: 'links', 'metadata' + */ + expand?: ExpandEnum; +} + +/** + * Optional Parameters. + */ +export interface AdaptiveApplicationControlsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Include the policy rules + */ + includePathRecommendations?: boolean; + /** + * Return output in a summarized form + */ + summary?: boolean; +} + +/** + * Optional Parameters. + */ +export interface SecureScoreControlsListBySecureScoreOptionalParams extends msRest.RequestOptionsBase { + /** + * OData expand. Optional. Possible values include: 'definition' + */ + expand?: ExpandControlsEnum; +} + +/** + * Optional Parameters. + */ +export interface SecureScoreControlsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData expand. Optional. Possible values include: 'definition' + */ + expand?: ExpandControlsEnum; +} + +/** + * Optional Parameters. + */ +export interface SecureScoreControlsListBySecureScoreNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData expand. Optional. Possible values include: 'definition' + */ + expand?: ExpandControlsEnum; +} + +/** + * Optional Parameters. + */ +export interface SecureScoreControlsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData expand. Optional. Possible values include: 'definition' + */ + expand?: ExpandControlsEnum; +} + +/** + * Optional Parameters. + */ +export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The baseline results for this rule. + */ + body?: RuleResultsInput; +} + +/** + * Optional Parameters. + */ +export interface SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams extends msRest.RequestOptionsBase { + /** + * The baseline rules. + */ + body?: RulesResultsInput; +} + +/** + * Optional Parameters. + */ +export interface DevicesForSubscriptionListOptionalParams extends msRest.RequestOptionsBase { + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; +} + +/** + * Optional Parameters. + */ +export interface DevicesForSubscriptionListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; +} + +/** + * Optional Parameters. + */ +export interface DevicesForHubListOptionalParams extends msRest.RequestOptionsBase { + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; +} + +/** + * Optional Parameters. + */ +export interface DevicesForHubListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; +} + +/** + * Optional Parameters. + */ +export interface IotAlertsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by minimum startTimeUtc (ISO 8601 format) + */ + minStartTimeUtc?: string; + /** + * Filter by maximum startTimeUtc (ISO 8601 format) + */ + maxStartTimeUtc?: string; + /** + * Filter by alert type + */ + alertType?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; + /** + * Filter by compromised device + */ + compromisedEntity?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface IotAlertsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by minimum startTimeUtc (ISO 8601 format) + */ + minStartTimeUtc?: string; + /** + * Filter by maximum startTimeUtc (ISO 8601 format) + */ + maxStartTimeUtc?: string; + /** + * Filter by alert type + */ + alertType?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; + /** + * Filter by compromised device + */ + compromisedEntity?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface IotRecommendationsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by recommendation type + */ + recommendationType?: string; + /** + * Filter by device id + */ + deviceId?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface IotRecommendationsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by recommendation type + */ + recommendationType?: string; + /** + * Filter by device id + */ + deviceId?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * An interface representing SecurityCenterOptions. + */ +export interface SecurityCenterOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * List of compliance results response + * @extends Array + */ +export interface ComplianceResultList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of device security groups + * @extends Array + */ +export interface DeviceSecurityGroupList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of IoT Security solutions. + * @extends Array + */ +export interface IoTSecuritySolutionsList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of IoT Security solution aggregated alert data. + * @extends Array + */ +export interface IoTSecurityAggregatedAlertList extends Array { + /** + * When there is too much alert data for one page, use this URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of IoT Security solution aggregated recommendations. + * @extends Array + */ +export interface IoTSecurityAggregatedRecommendationList extends Array { + /** + * When there is too much alert data for one page, use this URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of locations where ASC saves your data + * @extends Array + */ +export interface AscLocationList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of possible operations for Microsoft.Security resource provider + * @extends Array + */ +export interface OperationList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security task recommendations + * @extends Array + */ +export interface SecurityTaskList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of all the auto provisioning settings response + * @extends Array + */ +export interface AutoProvisioningSettingList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of Compliance objects response + * @extends Array + */ +export interface ComplianceList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Information protection policies response. + * @extends Array + */ +export interface InformationProtectionPolicyList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security contacts response + * @extends Array + */ +export interface SecurityContactList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of workspace settings response + * @extends Array + */ +export interface WorkspaceSettingList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of regulatory compliance standards response + * @extends Array + */ +export interface RegulatoryComplianceStandardList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of regulatory compliance controls response + * @extends Array + */ +export interface RegulatoryComplianceControlList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of regulatory compliance assessment response + * @extends Array + */ +export interface RegulatoryComplianceAssessmentList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security sub-assessments + * @extends Array + */ +export interface SecuritySubAssessmentList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security automations response. + * @extends Array + */ +export interface AutomationList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Suppression rules list for subscription. + * @extends Array + */ +export interface AlertsSuppressionRulesList extends Array { + /** + * URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security assessment metadata + * @extends Array + */ +export interface SecurityAssessmentMetadataList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Page of a security assessments list + * @extends Array + */ +export interface SecurityAssessmentList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListAdaptiveNetworkHardenings API service call + * @extends Array + */ +export interface AdaptiveNetworkHardeningsList extends Array { + /** + * The URL to get the next set of results + */ + nextLink?: string; +} + +/** + * @interface + * List of all possible traffic between Azure resources + * @extends Array + */ +export interface AllowedConnectionsList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the TopologyList. + * @extends Array + */ +export interface TopologyList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the JitNetworkAccessPoliciesList. + * @extends Array + */ +export interface JitNetworkAccessPoliciesList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DiscoveredSecuritySolutionList. + * @extends Array + */ +export interface DiscoveredSecuritySolutionList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ExternalSecuritySolutionList. + * @extends Array + */ +export interface ExternalSecuritySolutionList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of secure scores + * @extends Array + */ +export interface SecureScoresList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security controls + * @extends Array + */ +export interface SecureScoreControlList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security controls definition + * @extends Array + */ +export interface SecureScoreControlDefinitionList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the SecuritySolutionList. + * @extends Array + */ +export interface SecuritySolutionList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * For a subscription, list of all cloud account connectors and their settings + * @extends Array + */ +export interface ConnectorSettingList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of Devices + * @extends Array + */ +export interface DeviceList extends Array { + /** + * When there are too many devices for one page, use this URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of IoT alerts + * @extends Array + */ +export interface IotAlertListModel extends Array { + /** + * When available, follow the URI to get the next page of data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of IoT recommendations + * @extends Array + */ +export interface IotRecommendationListModel extends Array { + /** + * When available, follow the URI to get the next page of data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security alerts + * @extends Array + */ +export interface AlertList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Subscription settings list. + * @extends Array + */ +export interface SettingsList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of ingestion settings + * @extends Array + */ +export interface IngestionSettingList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Represents the software inventory of the virtual machine. + * @extends Array + */ +export interface SoftwaresList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for ResourceStatus. + * Possible values include: 'Healthy', 'NotApplicable', 'OffByPolicy', 'NotHealthy' + * @readonly + * @enum {string} */ export type ResourceStatus = 'Healthy' | 'NotApplicable' | 'OffByPolicy' | 'NotHealthy'; /** - * Defines values for PricingTier. - * Possible values include: 'Free', 'Standard' - * @readonly - * @enum {string} + * Defines values for PricingTier. + * Possible values include: 'Free', 'Standard' + * @readonly + * @enum {string} + */ +export type PricingTier = 'Free' | 'Standard'; + +/** + * Defines values for ValueType. + * Possible values include: 'IpCidr', 'String' + * @readonly + * @enum {string} + */ +export type ValueType = 'IpCidr' | 'String'; + +/** + * Defines values for SecuritySolutionStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SecuritySolutionStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for ExportData. + * Possible values include: 'RawEvents' + * @readonly + * @enum {string} + */ +export type ExportData = 'RawEvents'; + +/** + * Defines values for DataSource. + * Possible values include: 'TwinData' + * @readonly + * @enum {string} + */ +export type DataSource = 'TwinData'; + +/** + * Defines values for RecommendationType. + * Possible values include: 'IoT_ACRAuthentication', 'IoT_AgentSendsUnutilizedMessages', + * 'IoT_Baseline', 'IoT_EdgeHubMemOptimize', 'IoT_EdgeLoggingOptions', + * 'IoT_InconsistentModuleSettings', 'IoT_InstallAgent', 'IoT_IPFilter_DenyAll', + * 'IoT_IPFilter_PermissiveRule', 'IoT_OpenPorts', 'IoT_PermissiveFirewallPolicy', + * 'IoT_PermissiveInputFirewallRules', 'IoT_PermissiveOutputFirewallRules', + * 'IoT_PrivilegedDockerOptions', 'IoT_SharedCredentials', 'IoT_VulnerableTLSCipherSuite' + * @readonly + * @enum {string} + */ +export type RecommendationType = 'IoT_ACRAuthentication' | 'IoT_AgentSendsUnutilizedMessages' | 'IoT_Baseline' | 'IoT_EdgeHubMemOptimize' | 'IoT_EdgeLoggingOptions' | 'IoT_InconsistentModuleSettings' | 'IoT_InstallAgent' | 'IoT_IPFilter_DenyAll' | 'IoT_IPFilter_PermissiveRule' | 'IoT_OpenPorts' | 'IoT_PermissiveFirewallPolicy' | 'IoT_PermissiveInputFirewallRules' | 'IoT_PermissiveOutputFirewallRules' | 'IoT_PrivilegedDockerOptions' | 'IoT_SharedCredentials' | 'IoT_VulnerableTLSCipherSuite'; + +/** + * Defines values for RecommendationConfigStatus. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type RecommendationConfigStatus = 'Disabled' | 'Enabled'; + +/** + * Defines values for UnmaskedIpLoggingStatus. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type UnmaskedIpLoggingStatus = 'Disabled' | 'Enabled'; + +/** + * Defines values for AdditionalWorkspaceType. + * Possible values include: 'Sentinel' + * @readonly + * @enum {string} + */ +export type AdditionalWorkspaceType = 'Sentinel'; + +/** + * Defines values for AdditionalWorkspaceDataType. + * Possible values include: 'Alerts', 'RawEvents' + * @readonly + * @enum {string} + */ +export type AdditionalWorkspaceDataType = 'Alerts' | 'RawEvents'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for ReportedSeverity. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type ReportedSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; + +/** + * Defines values for AutoProvision. + * Possible values include: 'On', 'Off' + * @readonly + * @enum {string} + */ +export type AutoProvision = 'On' | 'Off'; + +/** + * Defines values for Rank. + * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' + * @readonly + * @enum {string} + */ +export type Rank = 'None' | 'Low' | 'Medium' | 'High' | 'Critical'; + +/** + * Defines values for AlertNotifications. + * Possible values include: 'On', 'Off' + * @readonly + * @enum {string} + */ +export type AlertNotifications = 'On' | 'Off'; + +/** + * Defines values for AlertsToAdmins. + * Possible values include: 'On', 'Off' + * @readonly + * @enum {string} + */ +export type AlertsToAdmins = 'On' | 'Off'; + +/** + * Defines values for State. + * Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' + * @readonly + * @enum {string} + */ +export type State = 'Passed' | 'Failed' | 'Skipped' | 'Unsupported'; + +/** + * Defines values for SubAssessmentStatusCode. + * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' + * @readonly + * @enum {string} + */ +export type SubAssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; + +/** + * Defines values for Severity. + * Possible values include: 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type Severity = 'Low' | 'Medium' | 'High'; + +/** + * Defines values for EventSource. + * Possible values include: 'Assessments', 'SubAssessments', 'Alerts', 'SecureScores', + * 'SecureScoresSnapshot', 'SecureScoreControls', 'SecureScoreControlsSnapshot', + * 'RegulatoryComplianceAssessment', 'RegulatoryComplianceAssessmentSnapshot' + * @readonly + * @enum {string} + */ +export type EventSource = 'Assessments' | 'SubAssessments' | 'Alerts' | 'SecureScores' | 'SecureScoresSnapshot' | 'SecureScoreControls' | 'SecureScoreControlsSnapshot' | 'RegulatoryComplianceAssessment' | 'RegulatoryComplianceAssessmentSnapshot'; + +/** + * Defines values for PropertyType. + * Possible values include: 'String', 'Integer', 'Number', 'Boolean' + * @readonly + * @enum {string} + */ +export type PropertyType = 'String' | 'Integer' | 'Number' | 'Boolean'; + +/** + * Defines values for Operator. + * Possible values include: 'Equals', 'GreaterThan', 'GreaterThanOrEqualTo', 'LesserThan', + * 'LesserThanOrEqualTo', 'NotEquals', 'Contains', 'StartsWith', 'EndsWith' + * @readonly + * @enum {string} + */ +export type Operator = 'Equals' | 'GreaterThan' | 'GreaterThanOrEqualTo' | 'LesserThan' | 'LesserThanOrEqualTo' | 'NotEquals' | 'Contains' | 'StartsWith' | 'EndsWith'; + +/** + * Defines values for RuleState. + * Possible values include: 'Enabled', 'Disabled', 'Expired' + * @readonly + * @enum {string} + */ +export type RuleState = 'Enabled' | 'Disabled' | 'Expired'; + +/** + * Defines values for Categories. + * Possible values include: 'Compute', 'Networking', 'Data', 'IdentityAndAccess', 'IoT' + * @readonly + * @enum {string} + */ +export type Categories = 'Compute' | 'Networking' | 'Data' | 'IdentityAndAccess' | 'IoT'; + +/** + * Defines values for UserImpact. + * Possible values include: 'Low', 'Moderate', 'High' + * @readonly + * @enum {string} + */ +export type UserImpact = 'Low' | 'Moderate' | 'High'; + +/** + * Defines values for ImplementationEffort. + * Possible values include: 'Low', 'Moderate', 'High' + * @readonly + * @enum {string} + */ +export type ImplementationEffort = 'Low' | 'Moderate' | 'High'; + +/** + * Defines values for Threats. + * Possible values include: 'accountBreach', 'dataExfiltration', 'dataSpillage', + * 'maliciousInsider', 'elevationOfPrivilege', 'threatResistance', 'missingCoverage', + * 'denialOfService' + * @readonly + * @enum {string} + */ +export type Threats = 'accountBreach' | 'dataExfiltration' | 'dataSpillage' | 'maliciousInsider' | 'elevationOfPrivilege' | 'threatResistance' | 'missingCoverage' | 'denialOfService'; + +/** + * Defines values for AssessmentType. + * Possible values include: 'BuiltIn', 'CustomPolicy', 'CustomerManaged', 'VerifiedPartner' + * @readonly + * @enum {string} + */ +export type AssessmentType = 'BuiltIn' | 'CustomPolicy' | 'CustomerManaged' | 'VerifiedPartner'; + +/** + * Defines values for AssessmentStatusCode. + * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' + * @readonly + * @enum {string} + */ +export type AssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; + +/** + * Defines values for Direction. + * Possible values include: 'Inbound', 'Outbound' + * @readonly + * @enum {string} + */ +export type Direction = 'Inbound' | 'Outbound'; + +/** + * Defines values for TransportProtocol. + * Possible values include: 'TCP', 'UDP' + * @readonly + * @enum {string} + */ +export type TransportProtocol = 'TCP' | 'UDP'; + +/** + * Defines values for Protocol. + * Possible values include: 'TCP', 'UDP', 'All' + * @readonly + * @enum {string} + */ +export type Protocol = 'TCP' | 'UDP' | '*'; + +/** + * Defines values for Status. + * Possible values include: 'Revoked', 'Initiated' + * @readonly + * @enum {string} + */ +export type Status = 'Revoked' | 'Initiated'; + +/** + * Defines values for StatusReason. + * Possible values include: 'Expired', 'UserRequested', 'NewerRequestInitiated' + * @readonly + * @enum {string} + */ +export type StatusReason = 'Expired' | 'UserRequested' | 'NewerRequestInitiated'; + +/** + * Defines values for SecurityFamily. + * Possible values include: 'Waf', 'Ngfw', 'SaasWaf', 'Va' + * @readonly + * @enum {string} + */ +export type SecurityFamily = 'Waf' | 'Ngfw' | 'SaasWaf' | 'Va'; + +/** + * Defines values for AadConnectivityState. + * Possible values include: 'Discovered', 'NotLicensed', 'Connected' + * @readonly + * @enum {string} + */ +export type AadConnectivityState = 'Discovered' | 'NotLicensed' | 'Connected'; + +/** + * Defines values for ExternalSecuritySolutionKind. + * Possible values include: 'CEF', 'ATA', 'AAD' + * @readonly + * @enum {string} + */ +export type ExternalSecuritySolutionKind = 'CEF' | 'ATA' | 'AAD'; + +/** + * Defines values for ControlType. + * Possible values include: 'BuiltIn', 'Custom' + * @readonly + * @enum {string} + */ +export type ControlType = 'BuiltIn' | 'Custom'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Updating' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Succeeded' | 'Failed' | 'Updating'; + +/** + * Defines values for HybridComputeProvisioningState. + * Possible values include: 'Valid', 'Invalid', 'Expired' + * @readonly + * @enum {string} + */ +export type HybridComputeProvisioningState = 'Valid' | 'Invalid' | 'Expired'; + +/** + * Defines values for AuthenticationProvisioningState. + * Possible values include: 'Valid', 'Invalid', 'Expired', 'IncorrectPolicy' + * @readonly + * @enum {string} + */ +export type AuthenticationProvisioningState = 'Valid' | 'Invalid' | 'Expired' | 'IncorrectPolicy'; + +/** + * Defines values for PermissionProperty. + * Possible values include: 'AWS::AWSSecurityHubReadOnlyAccess', 'AWS::SecurityAudit', + * 'AWS::AmazonSSMAutomationRole', 'GCP::Security Center Admin Viewer' + * @readonly + * @enum {string} + */ +export type PermissionProperty = 'AWS::AWSSecurityHubReadOnlyAccess' | 'AWS::SecurityAudit' | 'AWS::AmazonSSMAutomationRole' | 'GCP::Security Center Admin Viewer'; + +/** + * Defines values for ScanTriggerType. + * Possible values include: 'OnDemand', 'Recurring' + * @readonly + * @enum {string} + */ +export type ScanTriggerType = 'OnDemand' | 'Recurring'; + +/** + * Defines values for ScanState. + * Possible values include: 'Failed', 'FailedToRun', 'InProgress', 'Passed' + * @readonly + * @enum {string} + */ +export type ScanState = 'Failed' | 'FailedToRun' | 'InProgress' | 'Passed'; + +/** + * Defines values for RuleStatus. + * Possible values include: 'NonFinding', 'Finding', 'InternalError' + * @readonly + * @enum {string} + */ +export type RuleStatus = 'NonFinding' | 'Finding' | 'InternalError'; + +/** + * Defines values for RuleSeverity. + * Possible values include: 'High', 'Medium', 'Low', 'Informational', 'Obsolete' + * @readonly + * @enum {string} + */ +export type RuleSeverity = 'High' | 'Medium' | 'Low' | 'Informational' | 'Obsolete'; + +/** + * Defines values for RuleType. + * Possible values include: 'Binary', 'BaselineExpected', 'PositiveList', 'NegativeList' + * @readonly + * @enum {string} + */ +export type RuleType = 'Binary' | 'BaselineExpected' | 'PositiveList' | 'NegativeList'; + +/** + * Defines values for OnboardingKind. + * Possible values include: 'Default', 'MigratedToAzure', 'Evaluation', 'Purchased' + * @readonly + * @enum {string} + */ +export type OnboardingKind = 'Default' | 'MigratedToAzure' | 'Evaluation' | 'Purchased'; + +/** + * Defines values for VersionKind. + * Possible values include: 'Latest', 'Previous', 'Preview' + * @readonly + * @enum {string} + */ +export type VersionKind = 'Latest' | 'Previous' | 'Preview'; + +/** + * Defines values for SensorStatus. + * Possible values include: 'Ok', 'Disconnected', 'Unavailable' + * @readonly + * @enum {string} + */ +export type SensorStatus = 'Ok' | 'Disconnected' | 'Unavailable'; + +/** + * Defines values for TiStatus. + * Possible values include: 'Ok', 'Failed', 'InProgress', 'UpdateAvailable' + * @readonly + * @enum {string} + */ +export type TiStatus = 'Ok' | 'Failed' | 'InProgress' | 'UpdateAvailable'; + +/** + * Defines values for SensorType. + * Possible values include: 'Ot', 'Enterprise' + * @readonly + * @enum {string} + */ +export type SensorType = 'Ot' | 'Enterprise'; + +/** + * Defines values for MacSignificance. + * Possible values include: 'Primary', 'Secondary' + * @readonly + * @enum {string} + */ +export type MacSignificance = 'Primary' | 'Secondary'; + +/** + * Defines values for RelationToIpStatus. + * Possible values include: 'Guess', 'Certain' + * @readonly + * @enum {string} + */ +export type RelationToIpStatus = 'Guess' | 'Certain'; + +/** + * Defines values for ManagementState. + * Possible values include: 'Managed', 'Unmanaged' + * @readonly + * @enum {string} + */ +export type ManagementState = 'Managed' | 'Unmanaged'; + +/** + * Defines values for AuthorizationState. + * Possible values include: 'Authorized', 'Unauthorized' + * @readonly + * @enum {string} + */ +export type AuthorizationState = 'Authorized' | 'Unauthorized'; + +/** + * Defines values for DeviceCriticality. + * Possible values include: 'Important', 'Standard' + * @readonly + * @enum {string} + */ +export type DeviceCriticality = 'Important' | 'Standard'; + +/** + * Defines values for PurdueLevel. + * Possible values include: 'ProcessControl', 'Supervisory', 'Enterprise' + * @readonly + * @enum {string} + */ +export type PurdueLevel = 'ProcessControl' | 'Supervisory' | 'Enterprise'; + +/** + * Defines values for ProgrammingState. + * Possible values include: 'ProgrammingDevice', 'NotProgrammingDevice' + * @readonly + * @enum {string} + */ +export type ProgrammingState = 'ProgrammingDevice' | 'NotProgrammingDevice'; + +/** + * Defines values for ScanningFunctionality. + * Possible values include: 'ScannerDevice', 'NotScannerDevice' + * @readonly + * @enum {string} + */ +export type ScanningFunctionality = 'ScannerDevice' | 'NotScannerDevice'; + +/** + * Defines values for DeviceStatus. + * Possible values include: 'Active', 'Removed' + * @readonly + * @enum {string} + */ +export type DeviceStatus = 'Active' | 'Removed'; + +/** + * Defines values for AlertSeverity. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type AlertSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; + +/** + * Defines values for AlertIntent. + * Possible values include: 'Unknown', 'PreAttack', 'InitialAccess', 'Persistence', + * 'PrivilegeEscalation', 'DefenseEvasion', 'CredentialAccess', 'Discovery', 'LateralMovement', + * 'Execution', 'Collection', 'Exfiltration', 'CommandAndControl', 'Impact', 'Probing', + * 'Exploitation' + * @readonly + * @enum {string} + */ +export type AlertIntent = 'Unknown' | 'PreAttack' | 'InitialAccess' | 'Persistence' | 'PrivilegeEscalation' | 'DefenseEvasion' | 'CredentialAccess' | 'Discovery' | 'LateralMovement' | 'Execution' | 'Collection' | 'Exfiltration' | 'CommandAndControl' | 'Impact' | 'Probing' | 'Exploitation'; + +/** + * Defines values for RecommendationSeverity. + * Possible values include: 'Unknown', 'NotApplicable', 'Healthy', 'OffByPolicy', 'Low', 'Medium', + * 'High' + * @readonly + * @enum {string} + */ +export type RecommendationSeverity = 'Unknown' | 'NotApplicable' | 'Healthy' | 'OffByPolicy' | 'Low' | 'Medium' | 'High'; + +/** + * Defines values for Intent. + * Possible values include: 'Unknown', 'PreAttack', 'InitialAccess', 'Persistence', + * 'PrivilegeEscalation', 'DefenseEvasion', 'CredentialAccess', 'Discovery', 'LateralMovement', + * 'Execution', 'Collection', 'Exfiltration', 'CommandAndControl', 'Impact', 'Probing', + * 'Exploitation' + * @readonly + * @enum {string} + */ +export type Intent = 'Unknown' | 'PreAttack' | 'InitialAccess' | 'Persistence' | 'PrivilegeEscalation' | 'DefenseEvasion' | 'CredentialAccess' | 'Discovery' | 'LateralMovement' | 'Execution' | 'Collection' | 'Exfiltration' | 'CommandAndControl' | 'Impact' | 'Probing' | 'Exploitation'; + +/** + * Defines values for AlertStatus. + * Possible values include: 'Active', 'Resolved', 'Dismissed' + * @readonly + * @enum {string} + */ +export type AlertStatus = 'Active' | 'Resolved' | 'Dismissed'; + +/** + * Defines values for BundleType. + * Possible values include: 'AppServices', 'DNS', 'KeyVaults', 'KubernetesService', + * 'ResourceManager', 'SqlServers', 'StorageAccounts', 'VirtualMachines' + * @readonly + * @enum {string} + */ +export type BundleType = 'AppServices' | 'DNS' | 'KeyVaults' | 'KubernetesService' | 'ResourceManager' | 'SqlServers' | 'StorageAccounts' | 'VirtualMachines'; + +/** + * Defines values for EndOfSupportStatus. + * Possible values include: 'None', 'noLongerSupported', 'versionNoLongerSupported', + * 'upcomingNoLongerSupported', 'upcomingVersionNoLongerSupported' + * @readonly + * @enum {string} + */ +export type EndOfSupportStatus = 'None' | 'noLongerSupported' | 'versionNoLongerSupported' | 'upcomingNoLongerSupported' | 'upcomingVersionNoLongerSupported'; + +/** + * Defines values for ExpandEnum. + * Possible values include: 'links', 'metadata' + * @readonly + * @enum {string} + */ +export type ExpandEnum = 'links' | 'metadata'; + +/** + * Defines values for ConnectionType. + * Possible values include: 'Internal', 'External' + * @readonly + * @enum {string} + */ +export type ConnectionType = 'Internal' | 'External'; + +/** + * Defines values for ExpandControlsEnum. + * Possible values include: 'definition' + * @readonly + * @enum {string} + */ +export type ExpandControlsEnum = 'definition'; + +/** + * Defines values for ProvisioningState1. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' + * @readonly + * @enum {string} + */ +export type ProvisioningState1 = 'Succeeded' | 'Failed' | 'Canceled' | 'Provisioning' | 'Deprovisioning'; + +/** + * Defines values for Exe. + * Possible values include: 'Audit', 'Enforce', 'None' + * @readonly + * @enum {string} + */ +export type Exe = 'Audit' | 'Enforce' | 'None'; + +/** + * Defines values for Msi. + * Possible values include: 'Audit', 'Enforce', 'None' + * @readonly + * @enum {string} + */ +export type Msi = 'Audit' | 'Enforce' | 'None'; + +/** + * Defines values for Script. + * Possible values include: 'Audit', 'Enforce', 'None' + * @readonly + * @enum {string} + */ +export type Script = 'Audit' | 'Enforce' | 'None'; + +/** + * Defines values for Executable. + * Possible values include: 'Audit', 'Enforce', 'None' + * @readonly + * @enum {string} + */ +export type Executable = 'Audit' | 'Enforce' | 'None'; + +/** + * Defines values for Issue. + * Possible values include: 'ViolationsAudited', 'ViolationsBlocked', + * 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', 'ExecutableViolationsAudited', + * 'RulesViolatedManually' + * @readonly + * @enum {string} + */ +export type Issue = 'ViolationsAudited' | 'ViolationsBlocked' | 'MsiAndScriptViolationsAudited' | 'MsiAndScriptViolationsBlocked' | 'ExecutableViolationsAudited' | 'RulesViolatedManually'; + +/** + * Defines values for ConfigurationStatus. + * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + * @readonly + * @enum {string} + */ +export type ConfigurationStatus = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; + +/** + * Defines values for RecommendationAction. + * Possible values include: 'Recommended', 'Add', 'Remove' + * @readonly + * @enum {string} + */ +export type RecommendationAction = 'Recommended' | 'Add' | 'Remove'; + +/** + * Defines values for EnforcementSupport. + * Possible values include: 'Supported', 'NotSupported', 'Unknown' + * @readonly + * @enum {string} + */ +export type EnforcementSupport = 'Supported' | 'NotSupported' | 'Unknown'; + +/** + * Defines values for RecommendationAction1. + * Possible values include: 'Recommended', 'Add', 'Remove' + * @readonly + * @enum {string} + */ +export type RecommendationAction1 = 'Recommended' | 'Add' | 'Remove'; + +/** + * Defines values for Action. + * Possible values include: 'Recommended', 'Add', 'Remove' + * @readonly + * @enum {string} + */ +export type Action = 'Recommended' | 'Add' | 'Remove'; + +/** + * Defines values for Type. + * Possible values include: 'File', 'FileHash', 'PublisherSignature', 'ProductSignature', + * 'BinarySignature', 'VersionAndAboveSignature' + * @readonly + * @enum {string} + */ +export type Type = 'File' | 'FileHash' | 'PublisherSignature' | 'ProductSignature' | 'BinarySignature' | 'VersionAndAboveSignature'; + +/** + * Defines values for FileType. + * Possible values include: 'Exe', 'Dll', 'Msi', 'Script', 'Executable', 'Unknown' + * @readonly + * @enum {string} + */ +export type FileType = 'Exe' | 'Dll' | 'Msi' | 'Script' | 'Executable' | 'Unknown'; + +/** + * Defines values for ConfigurationStatus1. + * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + * @readonly + * @enum {string} + */ +export type ConfigurationStatus1 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; + +/** + * Defines values for EnforcementMode. + * Possible values include: 'Audit', 'Enforce', 'None' + * @readonly + * @enum {string} + */ +export type EnforcementMode = 'Audit' | 'Enforce' | 'None'; + +/** + * Defines values for ConfigurationStatus2. + * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + * @readonly + * @enum {string} + */ +export type ConfigurationStatus2 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; + +/** + * Defines values for RecommendationStatus. + * Possible values include: 'Recommended', 'NotRecommended', 'NotAvailable', 'NoStatus' + * @readonly + * @enum {string} + */ +export type RecommendationStatus = 'Recommended' | 'NotRecommended' | 'NotAvailable' | 'NoStatus'; + +/** + * Defines values for SourceSystem. + * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', + * 'NonAzure_AuditD', 'None' + * @readonly + * @enum {string} + */ +export type SourceSystem = 'Azure_AppLocker' | 'Azure_AuditD' | 'NonAzure_AppLocker' | 'NonAzure_AuditD' | 'None'; + +/** + * Defines values for TaskUpdateActionType. + * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' + * @readonly + * @enum {string} + */ +export type TaskUpdateActionType = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; + +/** + * Defines values for TaskUpdateActionType1. + * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' + * @readonly + * @enum {string} + */ +export type TaskUpdateActionType1 = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; + +/** + * Defines values for InformationProtectionPolicyName. + * Possible values include: 'effective', 'custom' + * @readonly + * @enum {string} + */ +export type InformationProtectionPolicyName = 'effective' | 'custom'; + +/** + * Defines values for InformationProtectionPolicyName1. + * Possible values include: 'effective', 'custom' + * @readonly + * @enum {string} + */ +export type InformationProtectionPolicyName1 = 'effective' | 'custom'; + +/** + * Defines values for SettingName. + * Possible values include: 'MCAS', 'WDATP', 'Sentinel' + * @readonly + * @enum {string} + */ +export type SettingName = 'MCAS' | 'WDATP' | 'Sentinel'; + +/** + * Defines values for SettingName1. + * Possible values include: 'MCAS', 'WDATP', 'Sentinel' + * @readonly + * @enum {string} + */ +export type SettingName1 = 'MCAS' | 'WDATP' | 'Sentinel'; + +/** + * Contains response data for the list operation. + */ +export type ComplianceResultsListResponse = ComplianceResultList & { + /** + * 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: ComplianceResultList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ComplianceResultsGetResponse = ComplianceResult & { + /** + * 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: ComplianceResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ComplianceResultsListNextResponse = ComplianceResultList & { + /** + * 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: ComplianceResultList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type PricingsListResponse = PricingList & { + /** + * 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: PricingList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PricingsGetResponse = Pricing & { + /** + * 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: Pricing; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type PricingsUpdateResponse = Pricing & { + /** + * 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: Pricing; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting & { + /** + * 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: AdvancedThreatProtectionSetting; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting & { + /** + * 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: AdvancedThreatProtectionSetting; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList & { + /** + * 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: DeviceSecurityGroupList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup & { + /** + * 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: DeviceSecurityGroup; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. */ -export type PricingTier = 'Free' | 'Standard'; +export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup & { + /** + * 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: DeviceSecurityGroup; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList & { + /** + * 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: DeviceSecurityGroupList; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList & { + /** + * 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: IoTSecuritySolutionsList; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList & { + /** + * 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: IoTSecuritySolutionsList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel & { + /** + * 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: IoTSecuritySolutionModel; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel & { + /** + * 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: IoTSecuritySolutionModel; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel & { + /** + * 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: IoTSecuritySolutionModel; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList & { + /** + * 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: IoTSecuritySolutionsList; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList & { + /** + * 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: IoTSecuritySolutionsList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList & { + /** + * 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: IoTSecuritySolutionAnalyticsModelList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel & { + /** + * 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: IoTSecuritySolutionAnalyticsModel; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecurityAggregatedAlertList & { + /** + * 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: IoTSecurityAggregatedAlertList; + }; +}; /** - * Defines values for ReportedSeverity. - * Possible values include: 'Informational', 'Low', 'Medium', 'High' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ReportedSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; +export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ValueType. - * Possible values include: 'IpCidr', 'String' - * @readonly - * @enum {string} - */ -export type ValueType = 'IpCidr' | 'String'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedAlert; + }; +}; /** - * Defines values for SecuritySolutionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type SecuritySolutionStatus = 'Enabled' | 'Disabled'; +export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ExportData. - * Possible values include: 'RawEvents' - * @readonly - * @enum {string} - */ -export type ExportData = 'RawEvents'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedAlertList; + }; +}; /** - * Defines values for DataSource. - * Possible values include: 'TwinData' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type DataSource = 'TwinData'; +export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for RecommendationType. - * Possible values include: 'IoT_ACRAuthentication', 'IoT_AgentSendsUnutilizedMessages', - * 'IoT_Baseline', 'IoT_EdgeHubMemOptimize', 'IoT_EdgeLoggingOptions', - * 'IoT_InconsistentModuleSettings', 'IoT_InstallAgent', 'IoT_IPFilter_DenyAll', - * 'IoT_IPFilter_PermissiveRule', 'IoT_OpenPorts', 'IoT_PermissiveFirewallPolicy', - * 'IoT_PermissiveInputFirewallRules', 'IoT_PermissiveOutputFirewallRules', - * 'IoT_PrivilegedDockerOptions', 'IoT_SharedCredentials', 'IoT_VulnerableTLSCipherSuite' - * @readonly - * @enum {string} - */ -export type RecommendationType = 'IoT_ACRAuthentication' | 'IoT_AgentSendsUnutilizedMessages' | 'IoT_Baseline' | 'IoT_EdgeHubMemOptimize' | 'IoT_EdgeLoggingOptions' | 'IoT_InconsistentModuleSettings' | 'IoT_InstallAgent' | 'IoT_IPFilter_DenyAll' | 'IoT_IPFilter_PermissiveRule' | 'IoT_OpenPorts' | 'IoT_PermissiveFirewallPolicy' | 'IoT_PermissiveInputFirewallRules' | 'IoT_PermissiveOutputFirewallRules' | 'IoT_PrivilegedDockerOptions' | 'IoT_SharedCredentials' | 'IoT_VulnerableTLSCipherSuite'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedRecommendation; + }; +}; /** - * Defines values for RecommendationConfigStatus. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type RecommendationConfigStatus = 'Disabled' | 'Enabled'; +export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for UnmaskedIpLoggingStatus. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type UnmaskedIpLoggingStatus = 'Disabled' | 'Enabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedRecommendationList; + }; +}; /** - * Defines values for AutoProvision. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type AutoProvision = 'On' | 'Off'; +export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Rank. - * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' - * @readonly - * @enum {string} - */ -export type Rank = 'None' | 'Low' | 'Medium' | 'High' | 'Critical'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedRecommendationList; + }; +}; /** - * Defines values for AlertNotifications. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type AlertNotifications = 'On' | 'Off'; +export type LocationsListResponse = AscLocationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for AlertsToAdmins. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} - */ -export type AlertsToAdmins = 'On' | 'Off'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AscLocationList; + }; +}; /** - * Defines values for State. - * Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type State = 'Passed' | 'Failed' | 'Skipped' | 'Unsupported'; +export type LocationsGetResponse = AscLocation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SubAssessmentStatusCode. - * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' - * @readonly - * @enum {string} - */ -export type SubAssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AscLocation; + }; +}; /** - * Defines values for Severity. - * Possible values include: 'Low', 'Medium', 'High' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type Severity = 'Low' | 'Medium' | 'High'; +export type LocationsListNextResponse = AscLocationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for EventSource. - * Possible values include: 'Assessments', 'Alerts' - * @readonly - * @enum {string} - */ -export type EventSource = 'Assessments' | 'Alerts'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AscLocationList; + }; +}; /** - * Defines values for PropertyType. - * Possible values include: 'String', 'Integer', 'Number', 'Boolean' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type PropertyType = 'String' | 'Integer' | 'Number' | 'Boolean'; +export type OperationsListResponse = OperationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Operator. - * Possible values include: 'Equals', 'GreaterThan', 'GreaterThanOrEqualTo', 'LesserThan', - * 'LesserThanOrEqualTo', 'NotEquals', 'Contains', 'StartsWith', 'EndsWith' - * @readonly - * @enum {string} - */ -export type Operator = 'Equals' | 'GreaterThan' | 'GreaterThanOrEqualTo' | 'LesserThan' | 'LesserThanOrEqualTo' | 'NotEquals' | 'Contains' | 'StartsWith' | 'EndsWith'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationList; + }; +}; /** - * Defines values for RuleState. - * Possible values include: 'Enabled', 'Disabled', 'Expired' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type RuleState = 'Enabled' | 'Disabled' | 'Expired'; +export type OperationsListNextResponse = OperationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Category. - * Possible values include: 'Compute', 'Networking', 'Data', 'IdentityAndAccess', 'IoT' - * @readonly - * @enum {string} - */ -export type Category = 'Compute' | 'Networking' | 'Data' | 'IdentityAndAccess' | 'IoT'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationList; + }; +}; /** - * Defines values for UserImpact. - * Possible values include: 'Low', 'Moderate', 'High' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type UserImpact = 'Low' | 'Moderate' | 'High'; +export type TasksListResponse = SecurityTaskList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ImplementationEffort. - * Possible values include: 'Low', 'Moderate', 'High' - * @readonly - * @enum {string} - */ -export type ImplementationEffort = 'Low' | 'Moderate' | 'High'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityTaskList; + }; +}; /** - * Defines values for Threats. - * Possible values include: 'accountBreach', 'dataExfiltration', 'dataSpillage', - * 'maliciousInsider', 'elevationOfPrivilege', 'threatResistance', 'missingCoverage', - * 'denialOfService' - * @readonly - * @enum {string} + * Contains response data for the listByHomeRegion operation. */ -export type Threats = 'accountBreach' | 'dataExfiltration' | 'dataSpillage' | 'maliciousInsider' | 'elevationOfPrivilege' | 'threatResistance' | 'missingCoverage' | 'denialOfService'; +export type TasksListByHomeRegionResponse = SecurityTaskList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for AssessmentType. - * Possible values include: 'BuiltIn', 'CustomPolicy', 'CustomerManaged', 'VerifiedPartner' - * @readonly - * @enum {string} - */ -export type AssessmentType = 'BuiltIn' | 'CustomPolicy' | 'CustomerManaged' | 'VerifiedPartner'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityTaskList; + }; +}; /** - * Defines values for AssessmentStatusCode. - * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' - * @readonly - * @enum {string} + * Contains response data for the getSubscriptionLevelTask operation. */ -export type AssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; +export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Direction. - * Possible values include: 'Inbound', 'Outbound' - * @readonly - * @enum {string} - */ -export type Direction = 'Inbound' | 'Outbound'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityTask; + }; +}; /** - * Defines values for TransportProtocol. - * Possible values include: 'TCP', 'UDP' - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroup operation. */ -export type TransportProtocol = 'TCP' | 'UDP'; +export type TasksListByResourceGroupResponse = SecurityTaskList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Protocol. - * Possible values include: 'TCP', 'UDP', 'All' - * @readonly - * @enum {string} - */ -export type Protocol = 'TCP' | 'UDP' | '*'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityTaskList; + }; +}; /** - * Defines values for Status. - * Possible values include: 'Revoked', 'Initiated' - * @readonly - * @enum {string} + * Contains response data for the getResourceGroupLevelTask operation. */ -export type Status = 'Revoked' | 'Initiated'; +export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for StatusReason. - * Possible values include: 'Expired', 'UserRequested', 'NewerRequestInitiated' - * @readonly - * @enum {string} - */ -export type StatusReason = 'Expired' | 'UserRequested' | 'NewerRequestInitiated'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityTask; + }; +}; /** - * Defines values for SecurityFamily. - * Possible values include: 'Waf', 'Ngfw', 'SaasWaf', 'Va' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type SecurityFamily = 'Waf' | 'Ngfw' | 'SaasWaf' | 'Va'; +export type TasksListNextResponse = SecurityTaskList & { + /** + * 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: SecurityTaskList; + }; +}; /** - * Defines values for AadConnectivityState. - * Possible values include: 'Discovered', 'NotLicensed', 'Connected' - * @readonly - * @enum {string} + * Contains response data for the listByHomeRegionNext operation. */ -export type AadConnectivityState = 'Discovered' | 'NotLicensed' | 'Connected'; +export type TasksListByHomeRegionNextResponse = SecurityTaskList & { + /** + * 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: SecurityTaskList; + }; +}; /** - * Defines values for ExternalSecuritySolutionKind. - * Possible values include: 'CEF', 'ATA', 'AAD' - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroupNext operation. */ -export type ExternalSecuritySolutionKind = 'CEF' | 'ATA' | 'AAD'; +export type TasksListByResourceGroupNextResponse = SecurityTaskList & { + /** + * 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: SecurityTaskList; + }; +}; /** - * Defines values for ControlType. - * Possible values include: 'BuiltIn', 'Custom' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type ControlType = 'BuiltIn' | 'Custom'; +export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & { + /** + * 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: AutoProvisioningSettingList; + }; +}; /** - * Defines values for ExpandEnum. - * Possible values include: 'links', 'metadata' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ExpandEnum = 'links' | 'metadata'; +export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ConnectionType. - * Possible values include: 'Internal', 'External' - * @readonly - * @enum {string} - */ -export type ConnectionType = 'Internal' | 'External'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoProvisioningSetting; + }; +}; /** - * Defines values for ExpandControlsEnum. - * Possible values include: 'definition' - * @readonly - * @enum {string} + * Contains response data for the create operation. */ -export type ExpandControlsEnum = 'definition'; +export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' - * @readonly - * @enum {string} - */ -export type ProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'Provisioning' | 'Deprovisioning'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoProvisioningSetting; + }; +}; /** - * Defines values for Exe. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type Exe = 'Audit' | 'Enforce' | 'None'; +export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Msi. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} - */ -export type Msi = 'Audit' | 'Enforce' | 'None'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoProvisioningSettingList; + }; +}; /** - * Defines values for Script. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type Script = 'Audit' | 'Enforce' | 'None'; +export type CompliancesListResponse = ComplianceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Executable. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} - */ -export type Executable = 'Audit' | 'Enforce' | 'None'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComplianceList; + }; +}; /** - * Defines values for Issue. - * Possible values include: 'ViolationsAudited', 'ViolationsBlocked', - * 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', 'ExecutableViolationsAudited', - * 'RulesViolatedManually' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type Issue = 'ViolationsAudited' | 'ViolationsBlocked' | 'MsiAndScriptViolationsAudited' | 'MsiAndScriptViolationsBlocked' | 'ExecutableViolationsAudited' | 'RulesViolatedManually'; +export type CompliancesGetResponse = Compliance & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ConfigurationStatus. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - * @readonly - * @enum {string} - */ -export type ConfigurationStatus = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Compliance; + }; +}; /** - * Defines values for RecommendationAction. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type RecommendationAction = 'Recommended' | 'Add' | 'Remove'; +export type CompliancesListNextResponse = ComplianceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for EnforcementSupport. - * Possible values include: 'Supported', 'NotSupported', 'Unknown' - * @readonly - * @enum {string} - */ -export type EnforcementSupport = 'Supported' | 'NotSupported' | 'Unknown'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComplianceList; + }; +}; /** - * Defines values for RecommendationAction1. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type RecommendationAction1 = 'Recommended' | 'Add' | 'Remove'; +export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy & { + /** + * 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: InformationProtectionPolicy; + }; +}; /** - * Defines values for Action. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type Action = 'Recommended' | 'Add' | 'Remove'; +export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy & { + /** + * 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: InformationProtectionPolicy; + }; +}; /** - * Defines values for Type. - * Possible values include: 'File', 'FileHash', 'PublisherSignature', 'ProductSignature', - * 'BinarySignature', 'VersionAndAboveSignature' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type Type = 'File' | 'FileHash' | 'PublisherSignature' | 'ProductSignature' | 'BinarySignature' | 'VersionAndAboveSignature'; +export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList & { + /** + * 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: InformationProtectionPolicyList; + }; +}; /** - * Defines values for FileType. - * Possible values include: 'Exe', 'Dll', 'Msi', 'Script', 'Executable', 'Unknown' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type FileType = 'Exe' | 'Dll' | 'Msi' | 'Script' | 'Executable' | 'Unknown'; +export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList & { + /** + * 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: InformationProtectionPolicyList; + }; +}; /** - * Defines values for ConfigurationStatus1. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type ConfigurationStatus1 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; +export type SecurityContactsListResponse = SecurityContactList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for EnforcementMode. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} - */ -export type EnforcementMode = 'Audit' | 'Enforce' | 'None'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityContactList; + }; +}; /** - * Defines values for ConfigurationStatus2. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ConfigurationStatus2 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; +export type SecurityContactsGetResponse = SecurityContact & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for RecommendationStatus. - * Possible values include: 'Recommended', 'NotRecommended', 'NotAvailable', 'NoStatus' - * @readonly - * @enum {string} - */ -export type RecommendationStatus = 'Recommended' | 'NotRecommended' | 'NotAvailable' | 'NoStatus'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityContact; + }; +}; /** - * Defines values for SourceSystem. - * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', - * 'NonAzure_AuditD', 'None' - * @readonly - * @enum {string} + * Contains response data for the create operation. */ -export type SourceSystem = 'Azure_AppLocker' | 'Azure_AuditD' | 'NonAzure_AppLocker' | 'NonAzure_AuditD' | 'None'; +export type SecurityContactsCreateResponse = SecurityContact & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SettingName. - * Possible values include: 'MCAS', 'WDATP' - * @readonly - * @enum {string} - */ -export type SettingName = 'MCAS' | 'WDATP'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityContact; + }; +}; /** - * Defines values for SettingName1. - * Possible values include: 'MCAS', 'WDATP' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type SettingName1 = 'MCAS' | 'WDATP'; +export type SecurityContactsUpdateResponse = SecurityContact & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for TaskUpdateActionType. - * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @readonly - * @enum {string} - */ -export type TaskUpdateActionType = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityContact; + }; +}; /** - * Defines values for TaskUpdateActionType1. - * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type TaskUpdateActionType1 = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; +export type SecurityContactsListNextResponse = SecurityContactList & { + /** + * 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: SecurityContactList; + }; +}; /** - * Defines values for InformationProtectionPolicyName. - * Possible values include: 'effective', 'custom' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type InformationProtectionPolicyName = 'effective' | 'custom'; +export type WorkspaceSettingsListResponse = WorkspaceSettingList & { + /** + * 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: WorkspaceSettingList; + }; +}; /** - * Defines values for InformationProtectionPolicyName1. - * Possible values include: 'effective', 'custom' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type InformationProtectionPolicyName1 = 'effective' | 'custom'; +export type WorkspaceSettingsGetResponse = WorkspaceSetting & { + /** + * 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: WorkspaceSetting; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the create operation. */ -export type ComplianceResultsListResponse = ComplianceResultList & { +export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { /** * The underlying HTTP response. */ @@ -5135,14 +8756,14 @@ export type ComplianceResultsListResponse = ComplianceResultList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceResultList; + parsedBody: WorkspaceSetting; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type ComplianceResultsGetResponse = ComplianceResult & { +export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { /** * The underlying HTTP response. */ @@ -5155,14 +8776,14 @@ export type ComplianceResultsGetResponse = ComplianceResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceResult; + parsedBody: WorkspaceSetting; }; }; /** * Contains response data for the listNext operation. */ -export type ComplianceResultsListNextResponse = ComplianceResultList & { +export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { /** * The underlying HTTP response. */ @@ -5175,14 +8796,14 @@ export type ComplianceResultsListNextResponse = ComplianceResultList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceResultList; + parsedBody: WorkspaceSettingList; }; }; /** * Contains response data for the list operation. */ -export type PricingsListResponse = PricingList & { +export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList & { /** * The underlying HTTP response. */ @@ -5195,14 +8816,14 @@ export type PricingsListResponse = PricingList & { /** * The response body as parsed JSON or XML */ - parsedBody: PricingList; + parsedBody: RegulatoryComplianceStandardList; }; }; /** * Contains response data for the get operation. */ -export type PricingsGetResponse = Pricing & { +export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard & { /** * The underlying HTTP response. */ @@ -5215,14 +8836,14 @@ export type PricingsGetResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: RegulatoryComplianceStandard; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type PricingsUpdateResponse = Pricing & { +export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList & { /** * The underlying HTTP response. */ @@ -5235,14 +8856,14 @@ export type PricingsUpdateResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: RegulatoryComplianceStandardList; }; }; /** * Contains response data for the list operation. */ -export type AlertsListResponse = AlertList & { +export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList & { /** * The underlying HTTP response. */ @@ -5255,14 +8876,14 @@ export type AlertsListResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: RegulatoryComplianceControlList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type AlertsListByResourceGroupResponse = AlertList & { +export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl & { /** * The underlying HTTP response. */ @@ -5275,14 +8896,14 @@ export type AlertsListByResourceGroupResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: RegulatoryComplianceControl; }; }; /** - * Contains response data for the listSubscriptionLevelAlertsByRegion operation. + * Contains response data for the listNext operation. */ -export type AlertsListSubscriptionLevelAlertsByRegionResponse = AlertList & { +export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList & { /** * The underlying HTTP response. */ @@ -5295,14 +8916,14 @@ export type AlertsListSubscriptionLevelAlertsByRegionResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: RegulatoryComplianceControlList; }; }; /** - * Contains response data for the listResourceGroupLevelAlertsByRegion operation. + * Contains response data for the list operation. */ -export type AlertsListResourceGroupLevelAlertsByRegionResponse = AlertList & { +export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList & { /** * The underlying HTTP response. */ @@ -5315,14 +8936,14 @@ export type AlertsListResourceGroupLevelAlertsByRegionResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: RegulatoryComplianceAssessmentList; }; }; /** - * Contains response data for the getSubscriptionLevelAlert operation. + * Contains response data for the get operation. */ -export type AlertsGetSubscriptionLevelAlertResponse = Alert & { +export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment & { /** * The underlying HTTP response. */ @@ -5335,14 +8956,14 @@ export type AlertsGetSubscriptionLevelAlertResponse = Alert & { /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: RegulatoryComplianceAssessment; }; }; /** - * Contains response data for the getResourceGroupLevelAlerts operation. + * Contains response data for the listNext operation. */ -export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { +export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList & { /** * The underlying HTTP response. */ @@ -5355,14 +8976,34 @@ export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: RegulatoryComplianceAssessmentList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listAll operation. */ -export type AlertsListNextResponse = AlertList & { +export type SubAssessmentsListAllResponse = SecuritySubAssessmentList & { + /** + * 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: SecuritySubAssessmentList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SubAssessmentsListResponse = SecuritySubAssessmentList & { /** * The underlying HTTP response. */ @@ -5375,14 +9016,14 @@ export type AlertsListNextResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecuritySubAssessmentList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type AlertsListByResourceGroupNextResponse = AlertList & { +export type SubAssessmentsGetResponse = SecuritySubAssessment & { /** * The underlying HTTP response. */ @@ -5395,14 +9036,14 @@ export type AlertsListByResourceGroupNextResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecuritySubAssessment; }; }; /** - * Contains response data for the listSubscriptionLevelAlertsByRegionNext operation. + * Contains response data for the listAllNext operation. */ -export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = AlertList & { +export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList & { /** * The underlying HTTP response. */ @@ -5415,14 +9056,14 @@ export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = AlertList & /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecuritySubAssessmentList; }; }; /** - * Contains response data for the listResourceGroupLevelAlertsByRegionNext operation. + * Contains response data for the listNext operation. */ -export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = AlertList & { +export type SubAssessmentsListNextResponse = SecuritySubAssessmentList & { /** * The underlying HTTP response. */ @@ -5435,14 +9076,14 @@ export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = AlertList & /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecuritySubAssessmentList; }; }; /** * Contains response data for the list operation. */ -export type SettingsListResponse = SettingsList & { +export type AutomationsListResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -5455,14 +9096,14 @@ export type SettingsListResponse = SettingsList & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingsList; + parsedBody: AutomationList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroup operation. */ -export type SettingsGetResponse = SettingUnion & { +export type AutomationsListByResourceGroupResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -5475,14 +9116,14 @@ export type SettingsGetResponse = SettingUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingUnion; + parsedBody: AutomationList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type SettingsUpdateResponse = SettingUnion & { +export type AutomationsGetResponse = Automation & { /** * The underlying HTTP response. */ @@ -5495,14 +9136,14 @@ export type SettingsUpdateResponse = SettingUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingUnion; + parsedBody: Automation; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type SettingsListNextResponse = SettingsList & { +export type AutomationsCreateOrUpdateResponse = Automation & { /** * The underlying HTTP response. */ @@ -5515,14 +9156,14 @@ export type SettingsListNextResponse = SettingsList & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingsList; + parsedBody: Automation; }; }; /** - * Contains response data for the get operation. + * Contains response data for the validate operation. */ -export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting & { +export type AutomationsValidateResponse = AutomationValidationStatus & { /** * The underlying HTTP response. */ @@ -5535,14 +9176,14 @@ export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSettin /** * The response body as parsed JSON or XML */ - parsedBody: AdvancedThreatProtectionSetting; + parsedBody: AutomationValidationStatus; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listNext operation. */ -export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting & { +export type AutomationsListNextResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -5555,14 +9196,14 @@ export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSet /** * The response body as parsed JSON or XML */ - parsedBody: AdvancedThreatProtectionSetting; + parsedBody: AutomationList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList & { +export type AutomationsListByResourceGroupNextResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -5575,14 +9216,14 @@ export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroupList; + parsedBody: AutomationList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup & { +export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList & { /** * The underlying HTTP response. */ @@ -5595,14 +9236,14 @@ export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroup; + parsedBody: AlertsSuppressionRulesList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup & { +export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule & { /** * The underlying HTTP response. */ @@ -5615,14 +9256,14 @@ export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroup; + parsedBody: AlertsSuppressionRule; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList & { +export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule & { /** * The underlying HTTP response. */ @@ -5635,14 +9276,14 @@ export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroupList; + parsedBody: AlertsSuppressionRule; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listNext operation. */ -export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList & { +export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList & { /** * The underlying HTTP response. */ @@ -5655,14 +9296,14 @@ export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutions /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: AlertsSuppressionRulesList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listByExtendedResource operation. */ -export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList & { +export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList & { /** * The underlying HTTP response. */ @@ -5675,14 +9316,14 @@ export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: ServerVulnerabilityAssessmentsList; }; }; /** * Contains response data for the get operation. */ -export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel & { +export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -5695,14 +9336,14 @@ export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel & { /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionModel; + parsedBody: ServerVulnerabilityAssessment; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel & { +export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -5715,14 +9356,14 @@ export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionModel; + parsedBody: ServerVulnerabilityAssessment; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel & { +export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -5735,14 +9376,14 @@ export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel & { /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionModel; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the get operation. */ -export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList & { +export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { /** * The underlying HTTP response. */ @@ -5755,14 +9396,14 @@ export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolut /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: SecurityAssessmentMetadata; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listBySubscription operation. */ -export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList & { +export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -5775,14 +9416,14 @@ export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolu /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getInSubscription operation. */ -export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList & { +export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadata & { /** * The underlying HTTP response. */ @@ -5795,14 +9436,14 @@ export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyt /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionAnalyticsModelList; + parsedBody: SecurityAssessmentMetadata; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createInSubscription operation. */ -export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel & { +export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadata & { /** * The underlying HTTP response. */ @@ -5815,14 +9456,14 @@ export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyti /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionAnalyticsModel; + parsedBody: SecurityAssessmentMetadata; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecurityAggregatedAlertList & { +export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -5835,14 +9476,14 @@ export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecuri /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlertList; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert & { +export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -5855,14 +9496,14 @@ export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurit /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlert; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList & { +export type AssessmentsListResponse = SecurityAssessmentList & { /** * The underlying HTTP response. */ @@ -5875,14 +9516,14 @@ export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSe /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlertList; + parsedBody: SecurityAssessmentList; }; }; /** * Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation & { +export type AssessmentsGetResponse = SecurityAssessment & { /** * The underlying HTTP response. */ @@ -5895,14 +9536,14 @@ export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurity /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendation; + parsedBody: SecurityAssessment; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList & { +export type AssessmentsCreateOrUpdateResponse = SecurityAssessment & { /** * The underlying HTTP response. */ @@ -5915,14 +9556,14 @@ export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurit /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendationList; + parsedBody: SecurityAssessment; }; }; /** * Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList & { +export type AssessmentsListNextResponse = SecurityAssessmentList & { /** * The underlying HTTP response. */ @@ -5935,14 +9576,14 @@ export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSec /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendationList; + parsedBody: SecurityAssessmentList; }; }; /** * Contains response data for the list operation. */ -export type LocationsListResponse = AscLocationList & { +export type AdaptiveApplicationControlsListResponse = AdaptiveApplicationControlGroups & { /** * The underlying HTTP response. */ @@ -5955,14 +9596,14 @@ export type LocationsListResponse = AscLocationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AscLocationList; + parsedBody: AdaptiveApplicationControlGroups; }; }; /** * Contains response data for the get operation. */ -export type LocationsGetResponse = AscLocation & { +export type AdaptiveApplicationControlsGetResponse = AdaptiveApplicationControlGroup & { /** * The underlying HTTP response. */ @@ -5975,14 +9616,14 @@ export type LocationsGetResponse = AscLocation & { /** * The response body as parsed JSON or XML */ - parsedBody: AscLocation; + parsedBody: AdaptiveApplicationControlGroup; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the put operation. */ -export type LocationsListNextResponse = AscLocationList & { +export type AdaptiveApplicationControlsPutResponse = AdaptiveApplicationControlGroup & { /** * The underlying HTTP response. */ @@ -5995,14 +9636,14 @@ export type LocationsListNextResponse = AscLocationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AscLocationList; + parsedBody: AdaptiveApplicationControlGroup; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByExtendedResource operation. */ -export type OperationsListResponse = OperationList & { +export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList & { /** * The underlying HTTP response. */ @@ -6015,14 +9656,14 @@ export type OperationsListResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: AdaptiveNetworkHardeningsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type OperationsListNextResponse = OperationList & { +export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { /** * The underlying HTTP response. */ @@ -6035,14 +9676,14 @@ export type OperationsListNextResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: AdaptiveNetworkHardening; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByExtendedResourceNext operation. */ -export type TasksListResponse = SecurityTaskList & { +export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList & { /** * The underlying HTTP response. */ @@ -6055,14 +9696,14 @@ export type TasksListResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AdaptiveNetworkHardeningsList; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the list operation. */ -export type TasksListByHomeRegionResponse = SecurityTaskList & { +export type AllowedConnectionsListResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6075,14 +9716,14 @@ export type TasksListByHomeRegionResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the getSubscriptionLevelTask operation. + * Contains response data for the listByHomeRegion operation. */ -export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { +export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6095,14 +9736,14 @@ export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTask; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type TasksListByResourceGroupResponse = SecurityTaskList & { +export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { /** * The underlying HTTP response. */ @@ -6115,14 +9756,14 @@ export type TasksListByResourceGroupResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AllowedConnectionsResource; }; }; /** - * Contains response data for the getResourceGroupLevelTask operation. + * Contains response data for the listNext operation. */ -export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { +export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6135,14 +9776,14 @@ export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTask; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type TasksListNextResponse = SecurityTaskList & { +export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6155,14 +9796,14 @@ export type TasksListNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the list operation. */ -export type TasksListByHomeRegionNextResponse = SecurityTaskList & { +export type TopologyListResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6175,14 +9816,14 @@ export type TasksListByHomeRegionNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: TopologyList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listByHomeRegion operation. */ -export type TasksListByResourceGroupNextResponse = SecurityTaskList & { +export type TopologyListByHomeRegionResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6195,14 +9836,14 @@ export type TasksListByResourceGroupNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: TopologyList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & { +export type TopologyGetResponse = TopologyResource & { /** * The underlying HTTP response. */ @@ -6215,14 +9856,14 @@ export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSettingList; + parsedBody: TopologyResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { +export type TopologyListNextResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6235,14 +9876,14 @@ export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSetting; + parsedBody: TopologyList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { +export type TopologyListByHomeRegionNextResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6255,14 +9896,14 @@ export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSetting; + parsedBody: TopologyList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList & { +export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6275,14 +9916,14 @@ export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingLi /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSettingList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByRegion operation. */ -export type CompliancesListResponse = ComplianceList & { +export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6295,14 +9936,14 @@ export type CompliancesListResponse = ComplianceList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroup operation. */ -export type CompliancesGetResponse = Compliance & { +export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6315,14 +9956,14 @@ export type CompliancesGetResponse = Compliance & { /** * The response body as parsed JSON or XML */ - parsedBody: Compliance; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroupAndRegion operation. */ -export type CompliancesListNextResponse = ComplianceList & { +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6335,14 +9976,14 @@ export type CompliancesListNextResponse = ComplianceList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** * Contains response data for the get operation. */ -export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy & { +export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { /** * The underlying HTTP response. */ @@ -6355,14 +9996,14 @@ export type InformationProtectionPoliciesGetResponse = InformationProtectionPoli /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicy; + parsedBody: JitNetworkAccessPolicy; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy & { +export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy & { /** * The underlying HTTP response. */ @@ -6375,14 +10016,14 @@ export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationPro /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicy; + parsedBody: JitNetworkAccessPolicy; }; }; /** - * Contains response data for the list operation. + * Contains response data for the initiate operation. */ -export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList & { +export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & { /** * The underlying HTTP response. */ @@ -6395,14 +10036,14 @@ export type InformationProtectionPoliciesListResponse = InformationProtectionPol /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicyList; + parsedBody: JitNetworkAccessRequest; }; }; /** * Contains response data for the listNext operation. */ -export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList & { +export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6415,14 +10056,14 @@ export type InformationProtectionPoliciesListNextResponse = InformationProtectio /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicyList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByRegionNext operation. */ -export type SecurityContactsListResponse = SecurityContactList & { +export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6435,14 +10076,14 @@ export type SecurityContactsListResponse = SecurityContactList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContactList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type SecurityContactsGetResponse = SecurityContact & { +export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6455,14 +10096,14 @@ export type SecurityContactsGetResponse = SecurityContact & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByResourceGroupAndRegionNext operation. */ -export type SecurityContactsCreateResponse = SecurityContact & { +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6475,14 +10116,14 @@ export type SecurityContactsCreateResponse = SecurityContact & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type SecurityContactsUpdateResponse = SecurityContact & { +export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6495,14 +10136,14 @@ export type SecurityContactsUpdateResponse = SecurityContact & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegion operation. */ -export type SecurityContactsListNextResponse = SecurityContactList & { +export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6515,14 +10156,14 @@ export type SecurityContactsListNextResponse = SecurityContactList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContactList; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type WorkspaceSettingsListResponse = WorkspaceSettingList & { +export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution & { /** * The underlying HTTP response. */ @@ -6535,14 +10176,14 @@ export type WorkspaceSettingsListResponse = WorkspaceSettingList & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSettingList; + parsedBody: DiscoveredSecuritySolution; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type WorkspaceSettingsGetResponse = WorkspaceSetting & { +export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6555,14 +10196,14 @@ export type WorkspaceSettingsGetResponse = WorkspaceSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { +export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6575,14 +10216,14 @@ export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { +export type SecuritySolutionsReferenceDataListResponse = SecuritySolutionsReferenceDataList & { /** * The underlying HTTP response. */ @@ -6595,14 +10236,14 @@ export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: SecuritySolutionsReferenceDataList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegion operation. */ -export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { +export type SecuritySolutionsReferenceDataListByHomeRegionResponse = SecuritySolutionsReferenceDataList & { /** * The underlying HTTP response. */ @@ -6615,14 +10256,14 @@ export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSettingList; + parsedBody: SecuritySolutionsReferenceDataList; }; }; /** * Contains response data for the list operation. */ -export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList & { +export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6635,14 +10276,14 @@ export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStan /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceStandardList; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByHomeRegion operation. */ -export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard & { +export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6655,14 +10296,14 @@ export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStand /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceStandard; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList & { +export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion & { /** * The underlying HTTP response. */ @@ -6675,14 +10316,14 @@ export type RegulatoryComplianceStandardsListNextResponse = RegulatoryCompliance /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceStandardList; + parsedBody: ExternalSecuritySolutionUnion; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList & { +export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6695,14 +10336,14 @@ export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceContr /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceControlList; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl & { +export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6715,14 +10356,14 @@ export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceContro /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceControl; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList & { +export type SecureScoresListResponse = SecureScoresList & { /** * The underlying HTTP response. */ @@ -6735,14 +10376,14 @@ export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceC /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceControlList; + parsedBody: SecureScoresList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList & { +export type SecureScoresGetResponse = SecureScoreItem & { /** * The underlying HTTP response. */ @@ -6755,14 +10396,14 @@ export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAs /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceAssessmentList; + parsedBody: SecureScoreItem; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment & { +export type SecureScoresListNextResponse = SecureScoresList & { /** * The underlying HTTP response. */ @@ -6775,14 +10416,14 @@ export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAss /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceAssessment; + parsedBody: SecureScoresList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listBySecureScore operation. */ -export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList & { +export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -6795,14 +10436,14 @@ export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplian /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceAssessmentList; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the listByExtendedResource operation. + * Contains response data for the list operation. */ -export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList & { +export type SecureScoreControlsListResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -6815,14 +10456,14 @@ export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = Server /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessmentsList; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySecureScoreNext operation. */ -export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment & { +export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -6835,14 +10476,14 @@ export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssess /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessment; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment & { +export type SecureScoreControlsListNextResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -6855,14 +10496,14 @@ export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerab /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessment; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the listAll operation. + * Contains response data for the list operation. */ -export type SubAssessmentsListAllResponse = SecuritySubAssessmentList & { +export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -6875,14 +10516,14 @@ export type SubAssessmentsListAllResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listBySubscription operation. */ -export type SubAssessmentsListResponse = SecuritySubAssessmentList & { +export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -6895,14 +10536,14 @@ export type SubAssessmentsListResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type SubAssessmentsGetResponse = SecuritySubAssessment & { +export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -6915,14 +10556,14 @@ export type SubAssessmentsGetResponse = SecuritySubAssessment & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessment; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the listAllNext operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList & { +export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -6935,14 +10576,14 @@ export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type SubAssessmentsListNextResponse = SecuritySubAssessmentList & { +export type SecuritySolutionsListResponse = SecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6955,14 +10596,14 @@ export type SubAssessmentsListNextResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: SecuritySolutionList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type AutomationsListResponse = AutomationList & { +export type SecuritySolutionsGetResponse = SecuritySolution & { /** * The underlying HTTP response. */ @@ -6975,14 +10616,14 @@ export type AutomationsListResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: SecuritySolution; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listNext operation. */ -export type AutomationsListByResourceGroupResponse = AutomationList & { +export type SecuritySolutionsListNextResponse = SecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6995,14 +10636,14 @@ export type AutomationsListByResourceGroupResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: SecuritySolutionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type AutomationsGetResponse = Automation & { +export type ConnectorsListResponse = ConnectorSettingList & { /** * The underlying HTTP response. */ @@ -7015,14 +10656,14 @@ export type AutomationsGetResponse = Automation & { /** * The response body as parsed JSON or XML */ - parsedBody: Automation; + parsedBody: ConnectorSettingList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type AutomationsCreateOrUpdateResponse = Automation & { +export type ConnectorsGetResponse = ConnectorSetting & { /** * The underlying HTTP response. */ @@ -7035,14 +10676,14 @@ export type AutomationsCreateOrUpdateResponse = Automation & { /** * The response body as parsed JSON or XML */ - parsedBody: Automation; + parsedBody: ConnectorSetting; }; }; /** - * Contains response data for the validate operation. + * Contains response data for the createOrUpdate operation. */ -export type AutomationsValidateResponse = AutomationValidationStatus & { +export type ConnectorsCreateOrUpdateResponse = ConnectorSetting & { /** * The underlying HTTP response. */ @@ -7055,14 +10696,14 @@ export type AutomationsValidateResponse = AutomationValidationStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationValidationStatus; + parsedBody: ConnectorSetting; }; }; /** * Contains response data for the listNext operation. */ -export type AutomationsListNextResponse = AutomationList & { +export type ConnectorsListNextResponse = ConnectorSettingList & { /** * The underlying HTTP response. */ @@ -7075,14 +10716,14 @@ export type AutomationsListNextResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: ConnectorSettingList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type AutomationsListByResourceGroupNextResponse = AutomationList & { +export type SqlVulnerabilityAssessmentScansGetResponse = Scan & { /** * The underlying HTTP response. */ @@ -7095,14 +10736,14 @@ export type AutomationsListByResourceGroupNextResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: Scan; }; }; /** * Contains response data for the list operation. */ -export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList & { +export type SqlVulnerabilityAssessmentScansListResponse = Scans & { /** * The underlying HTTP response. */ @@ -7115,14 +10756,14 @@ export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRulesList; + parsedBody: Scans; }; }; /** * Contains response data for the get operation. */ -export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule & { +export type SqlVulnerabilityAssessmentScanResultsGetResponse = ScanResult & { /** * The underlying HTTP response. */ @@ -7135,14 +10776,14 @@ export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRule; + parsedBody: ScanResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule & { +export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults & { /** * The underlying HTTP response. */ @@ -7155,14 +10796,14 @@ export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRule; + parsedBody: ScanResults; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList & { +export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = RuleResults & { /** * The underlying HTTP response. */ @@ -7175,14 +10816,14 @@ export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRulesList; + parsedBody: RuleResults; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { +export type SqlVulnerabilityAssessmentBaselineRulesGetResponse = RuleResults & { /** * The underlying HTTP response. */ @@ -7195,14 +10836,14 @@ export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: RuleResults; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { +export type SqlVulnerabilityAssessmentBaselineRulesListResponse = RulesResults & { /** * The underlying HTTP response. */ @@ -7215,14 +10856,14 @@ export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadata; + parsedBody: RulesResults; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the add operation. */ -export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataList & { +export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults & { /** * The underlying HTTP response. */ @@ -7235,14 +10876,14 @@ export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMe /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: RulesResults; }; }; /** - * Contains response data for the getInSubscription operation. + * Contains response data for the list operation. */ -export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadata & { +export type IotDefenderSettingsListResponse = IotDefenderSettingsList & { /** * The underlying HTTP response. */ @@ -7255,14 +10896,14 @@ export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMet /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadata; + parsedBody: IotDefenderSettingsList; }; }; /** - * Contains response data for the createInSubscription operation. + * Contains response data for the get operation. */ -export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadata & { +export type IotDefenderSettingsGetResponse = IotDefenderSettingsModel & { /** * The underlying HTTP response. */ @@ -7275,14 +10916,14 @@ export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessment /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadata; + parsedBody: IotDefenderSettingsModel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList & { +export type IotDefenderSettingsCreateOrUpdateResponse = IotDefenderSettingsModel & { /** * The underlying HTTP response. */ @@ -7295,14 +10936,14 @@ export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: IotDefenderSettingsModel; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the packageDownloadsMethod operation. */ -export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataList & { +export type IotDefenderSettingsPackageDownloadsMethodResponse = PackageDownloads & { /** * The underlying HTTP response. */ @@ -7315,14 +10956,40 @@ export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessme /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: PackageDownloads; }; }; +/** + * Contains response data for the downloadManagerActivation operation. + */ +export type IotDefenderSettingsDownloadManagerActivationResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + /** * Contains response data for the list operation. */ -export type AssessmentsListResponse = SecurityAssessmentList & { +export type IotSensorsListResponse = IotSensorsList & { /** * The underlying HTTP response. */ @@ -7335,14 +11002,14 @@ export type AssessmentsListResponse = SecurityAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentList; + parsedBody: IotSensorsList; }; }; /** * Contains response data for the get operation. */ -export type AssessmentsGetResponse = SecurityAssessment & { +export type IotSensorsGetResponse = IotSensorsModel & { /** * The underlying HTTP response. */ @@ -7355,14 +11022,14 @@ export type AssessmentsGetResponse = SecurityAssessment & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessment; + parsedBody: IotSensorsModel; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type AssessmentsCreateOrUpdateResponse = SecurityAssessment & { +export type IotSensorsCreateOrUpdateResponse = IotSensorsModel & { /** * The underlying HTTP response. */ @@ -7375,34 +11042,66 @@ export type AssessmentsCreateOrUpdateResponse = SecurityAssessment & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessment; + parsedBody: IotSensorsModel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the downloadActivation operation. */ -export type AssessmentsListNextResponse = SecurityAssessmentList & { +export type IotSensorsDownloadActivationResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** * The underlying HTTP response. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + _response: msRest.HttpResponse; +}; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SecurityAssessmentList; - }; +/** + * Contains response data for the downloadResetPassword operation. + */ +export type IotSensorsDownloadResetPasswordResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; }; /** * Contains response data for the list operation. */ -export type AdaptiveApplicationControlsListResponse = AppWhitelistingGroups & { +export type DevicesForSubscriptionListResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -7415,14 +11114,14 @@ export type AdaptiveApplicationControlsListResponse = AppWhitelistingGroups & { /** * The response body as parsed JSON or XML */ - parsedBody: AppWhitelistingGroups; + parsedBody: DeviceList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type AdaptiveApplicationControlsGetResponse = AppWhitelistingGroup & { +export type DevicesForSubscriptionListNextResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -7435,14 +11134,14 @@ export type AdaptiveApplicationControlsGetResponse = AppWhitelistingGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: AppWhitelistingGroup; + parsedBody: DeviceList; }; }; /** - * Contains response data for the put operation. + * Contains response data for the list operation. */ -export type AdaptiveApplicationControlsPutResponse = AppWhitelistingGroup & { +export type DevicesForHubListResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -7455,14 +11154,14 @@ export type AdaptiveApplicationControlsPutResponse = AppWhitelistingGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: AppWhitelistingGroup; + parsedBody: DeviceList; }; }; /** - * Contains response data for the listByExtendedResource operation. + * Contains response data for the listNext operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList & { +export type DevicesForHubListNextResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -7475,14 +11174,14 @@ export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNe /** * The response body as parsed JSON or XML */ - parsedBody: AdaptiveNetworkHardeningsList; + parsedBody: DeviceList; }; }; /** * Contains response data for the get operation. */ -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { +export type DeviceGetResponse = Device & { /** * The underlying HTTP response. */ @@ -7495,14 +11194,14 @@ export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { /** * The response body as parsed JSON or XML */ - parsedBody: AdaptiveNetworkHardening; + parsedBody: Device; }; }; /** - * Contains response data for the listByExtendedResourceNext operation. + * Contains response data for the list operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList & { +export type OnPremiseIotSensorsListResponse = OnPremiseIotSensorsList & { /** * The underlying HTTP response. */ @@ -7515,14 +11214,14 @@ export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = Adapti /** * The response body as parsed JSON or XML */ - parsedBody: AdaptiveNetworkHardeningsList; + parsedBody: OnPremiseIotSensorsList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type AllowedConnectionsListResponse = AllowedConnectionsList & { +export type OnPremiseIotSensorsGetResponse = OnPremiseIotSensor & { /** * The underlying HTTP response. */ @@ -7535,14 +11234,14 @@ export type AllowedConnectionsListResponse = AllowedConnectionsList & { /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: OnPremiseIotSensor; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the createOrUpdate operation. */ -export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList & { +export type OnPremiseIotSensorsCreateOrUpdateResponse = OnPremiseIotSensor & { /** * The underlying HTTP response. */ @@ -7555,54 +11254,66 @@ export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: OnPremiseIotSensor; }; }; /** - * Contains response data for the get operation. + * Contains response data for the downloadActivation operation. */ -export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { +export type OnPremiseIotSensorsDownloadActivationResponse = { /** - * The underlying HTTP response. + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + blobBody?: Promise; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AllowedConnectionsResource; - }; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; }; /** - * Contains response data for the listNext operation. + * Contains response data for the downloadResetPassword operation. */ -export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { +export type OnPremiseIotSensorsDownloadResetPasswordResponse = { /** - * The underlying HTTP response. + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + blobBody?: Promise; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AllowedConnectionsList; - }; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the list operation. */ -export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList & { +export type IotSitesListResponse = IotSitesList & { /** * The underlying HTTP response. */ @@ -7615,14 +11326,14 @@ export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsL /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: IotSitesList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type TopologyListResponse = TopologyList & { +export type IotSitesGetResponse = IotSitesModel & { /** * The underlying HTTP response. */ @@ -7635,14 +11346,14 @@ export type TopologyListResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: IotSitesModel; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the createOrUpdate operation. */ -export type TopologyListByHomeRegionResponse = TopologyList & { +export type IotSitesCreateOrUpdateResponse = IotSitesModel & { /** * The underlying HTTP response. */ @@ -7655,14 +11366,14 @@ export type TopologyListByHomeRegionResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: IotSitesModel; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type TopologyGetResponse = TopologyResource & { +export type IotAlertsListResponse = IotAlertListModel & { /** * The underlying HTTP response. */ @@ -7675,14 +11386,14 @@ export type TopologyGetResponse = TopologyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyResource; + parsedBody: IotAlertListModel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type TopologyListNextResponse = TopologyList & { +export type IotAlertsGetResponse = IotAlertModel & { /** * The underlying HTTP response. */ @@ -7695,14 +11406,14 @@ export type TopologyListNextResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: IotAlertModel; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listNext operation. */ -export type TopologyListByHomeRegionNextResponse = TopologyList & { +export type IotAlertsListNextResponse = IotAlertListModel & { /** * The underlying HTTP response. */ @@ -7715,14 +11426,14 @@ export type TopologyListByHomeRegionNextResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: IotAlertListModel; }; }; /** * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList & { +export type IotAlertTypesListResponse = IotAlertTypeList & { /** * The underlying HTTP response. */ @@ -7735,14 +11446,14 @@ export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: IotAlertTypeList; }; }; /** - * Contains response data for the listByRegion operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList & { +export type IotAlertTypesGetResponse = IotAlertType & { /** * The underlying HTTP response. */ @@ -7755,14 +11466,14 @@ export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPolic /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: IotAlertType; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList & { +export type IotRecommendationsListResponse = IotRecommendationListModel & { /** * The underlying HTTP response. */ @@ -7775,14 +11486,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAcce /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: IotRecommendationListModel; }; }; /** - * Contains response data for the listByResourceGroupAndRegion operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList & { +export type IotRecommendationsGetResponse = IotRecommendationModel & { /** * The underlying HTTP response. */ @@ -7795,14 +11506,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNe /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: IotRecommendationModel; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { +export type IotRecommendationsListNextResponse = IotRecommendationListModel & { /** * The underlying HTTP response. */ @@ -7815,14 +11526,14 @@ export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPolicy; + parsedBody: IotRecommendationListModel; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy & { +export type IotRecommendationTypesListResponse = IotRecommendationTypeList & { /** * The underlying HTTP response. */ @@ -7835,14 +11546,14 @@ export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPol /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPolicy; + parsedBody: IotRecommendationTypeList; }; }; /** - * Contains response data for the initiate operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & { +export type IotRecommendationTypesGetResponse = IotRecommendationType & { /** * The underlying HTTP response. */ @@ -7855,14 +11566,14 @@ export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessRequest; + parsedBody: IotRecommendationType; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList & { +export type AlertsListResponse = AlertList & { /** * The underlying HTTP response. */ @@ -7875,14 +11586,14 @@ export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesL /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByRegionNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList & { +export type AlertsListByResourceGroupResponse = AlertList & { /** * The underlying HTTP response. */ @@ -7895,14 +11606,14 @@ export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessP /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listSubscriptionLevelByRegion operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList & { +export type AlertsListSubscriptionLevelByRegionResponse = AlertList & { /** * The underlying HTTP response. */ @@ -7915,14 +11626,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetwork /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByResourceGroupAndRegionNext operation. + * Contains response data for the listResourceGroupLevelByRegion operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList & { +export type AlertsListResourceGroupLevelByRegionResponse = AlertList & { /** * The underlying HTTP response. */ @@ -7935,14 +11646,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = J /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: AlertList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getSubscriptionLevel operation. */ -export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList & { +export type AlertsGetSubscriptionLevelResponse = Alert & { /** * The underlying HTTP response. */ @@ -7955,14 +11666,14 @@ export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: Alert; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the getResourceGroupLevel operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList & { +export type AlertsGetResourceGroupLevelResponse = Alert & { /** * The underlying HTTP response. */ @@ -7975,14 +11686,14 @@ export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecu /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: Alert; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution & { +export type AlertsListNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -7995,14 +11706,14 @@ export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolution; + parsedBody: AlertList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList & { +export type AlertsListByResourceGroupNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -8015,14 +11726,14 @@ export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolu /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listSubscriptionLevelByRegionNext operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList & { +export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -8035,14 +11746,14 @@ export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = Discovered /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: AlertList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listResourceGroupLevelByRegionNext operation. */ -export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList & { +export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -8055,14 +11766,14 @@ export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the list operation. */ -export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList & { +export type SettingsListResponse = SettingsList & { /** * The underlying HTTP response. */ @@ -8075,14 +11786,14 @@ export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecurity /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: SettingsList; }; }; /** * Contains response data for the get operation. */ -export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion & { +export type SettingsGetResponse = SettingUnion & { /** * The underlying HTTP response. */ @@ -8095,14 +11806,14 @@ export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionUnion; + parsedBody: SettingUnion; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList & { +export type SettingsUpdateResponse = SettingUnion & { /** * The underlying HTTP response. */ @@ -8115,14 +11826,14 @@ export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: SettingUnion; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listNext operation. */ -export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList & { +export type SettingsListNextResponse = SettingsList & { /** * The underlying HTTP response. */ @@ -8135,14 +11846,14 @@ export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecu /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: SettingsList; }; }; /** * Contains response data for the list operation. */ -export type SecureScoresListResponse = SecureScoresList & { +export type IngestionSettingsListResponse = IngestionSettingList & { /** * The underlying HTTP response. */ @@ -8155,14 +11866,14 @@ export type SecureScoresListResponse = SecureScoresList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoresList; + parsedBody: IngestionSettingList; }; }; /** * Contains response data for the get operation. */ -export type SecureScoresGetResponse = SecureScoreItem & { +export type IngestionSettingsGetResponse = IngestionSetting & { /** * The underlying HTTP response. */ @@ -8175,14 +11886,14 @@ export type SecureScoresGetResponse = SecureScoreItem & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreItem; + parsedBody: IngestionSetting; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the create operation. */ -export type SecureScoresListNextResponse = SecureScoresList & { +export type IngestionSettingsCreateResponse = IngestionSetting & { /** * The underlying HTTP response. */ @@ -8195,14 +11906,14 @@ export type SecureScoresListNextResponse = SecureScoresList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoresList; + parsedBody: IngestionSetting; }; }; /** - * Contains response data for the listBySecureScore operation. + * Contains response data for the listTokens operation. */ -export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList & { +export type IngestionSettingsListTokensResponse = IngestionSettingToken & { /** * The underlying HTTP response. */ @@ -8215,14 +11926,14 @@ export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlLis /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: IngestionSettingToken; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listConnectionStrings operation. */ -export type SecureScoreControlsListResponse = SecureScoreControlList & { +export type IngestionSettingsListConnectionStringsResponse = ConnectionStrings & { /** * The underlying HTTP response. */ @@ -8235,14 +11946,14 @@ export type SecureScoreControlsListResponse = SecureScoreControlList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: ConnectionStrings; }; }; /** - * Contains response data for the listBySecureScoreNext operation. + * Contains response data for the listNext operation. */ -export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList & { +export type IngestionSettingsListNextResponse = IngestionSettingList & { /** * The underlying HTTP response. */ @@ -8255,14 +11966,14 @@ export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreContro /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: IngestionSettingList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByExtendedResource operation. */ -export type SecureScoreControlsListNextResponse = SecureScoreControlList & { +export type SoftwareInventoriesListByExtendedResourceResponse = SoftwaresList & { /** * The underlying HTTP response. */ @@ -8275,14 +11986,14 @@ export type SecureScoreControlsListNextResponse = SecureScoreControlList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: SoftwaresList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listBySubscription operation. */ -export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList & { +export type SoftwareInventoriesListBySubscriptionResponse = SoftwaresList & { /** * The underlying HTTP response. */ @@ -8295,14 +12006,14 @@ export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefini /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: SoftwaresList; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the get operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList & { +export type SoftwareInventoriesGetResponse = Software & { /** * The underlying HTTP response. */ @@ -8315,14 +12026,14 @@ export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScor /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: Software; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByExtendedResourceNext operation. */ -export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList & { +export type SoftwareInventoriesListByExtendedResourceNextResponse = SoftwaresList & { /** * The underlying HTTP response. */ @@ -8335,14 +12046,14 @@ export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDe /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: SoftwaresList; }; }; /** * Contains response data for the listBySubscriptionNext operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList & { +export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList & { /** * The underlying HTTP response. */ @@ -8355,6 +12066,6 @@ export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = Secure /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: SoftwaresList; }; }; diff --git a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts b/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts index 817150abe35f..311426e1e10c 100644 --- a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts +++ b/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationProtectionPolicyList, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/ingestionSettingsMappers.ts b/sdk/security/arm-security/src/models/ingestionSettingsMappers.ts new file mode 100644 index 000000000000..3782812f79e1 --- /dev/null +++ b/sdk/security/arm-security/src/models/ingestionSettingsMappers.ts @@ -0,0 +1,147 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionStrings, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionConnectionString, + IngestionSetting, + IngestionSettingList, + IngestionSettingToken, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotAlertTypesMappers.ts b/sdk/security/arm-security/src/models/iotAlertTypesMappers.ts new file mode 100644 index 000000000000..062f7953b60c --- /dev/null +++ b/sdk/security/arm-security/src/models/iotAlertTypesMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotAlertTypeList, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotAlertsMappers.ts b/sdk/security/arm-security/src/models/iotAlertsMappers.ts new file mode 100644 index 000000000000..c05b8763c45d --- /dev/null +++ b/sdk/security/arm-security/src/models/iotAlertsMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertListModel, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotDefenderSettingsMappers.ts b/sdk/security/arm-security/src/models/iotDefenderSettingsMappers.ts new file mode 100644 index 000000000000..4170abcc4b17 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotDefenderSettingsMappers.ts @@ -0,0 +1,153 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsList, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + PackageDownloadInfo, + PackageDownloads, + PackageDownloadsCentralManager, + PackageDownloadsCentralManagerFull, + PackageDownloadsCentralManagerFullOvf, + PackageDownloadsSensor, + PackageDownloadsSensorFull, + PackageDownloadsSensorFullOvf, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + UpgradePackageDownloadInfo, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotRecommendationTypesMappers.ts b/sdk/security/arm-security/src/models/iotRecommendationTypesMappers.ts new file mode 100644 index 000000000000..89454e2f7d7f --- /dev/null +++ b/sdk/security/arm-security/src/models/iotRecommendationTypesMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IotRecommendationTypeList, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotRecommendationsMappers.ts b/sdk/security/arm-security/src/models/iotRecommendationsMappers.ts new file mode 100644 index 000000000000..ea269f0ce54d --- /dev/null +++ b/sdk/security/arm-security/src/models/iotRecommendationsMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationListModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotSecuritySolutionAnalyticsMappers.ts b/sdk/security/arm-security/src/models/iotSecuritySolutionAnalyticsMappers.ts index fed19cfb3888..b0a2893e6450 100644 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionAnalyticsMappers.ts +++ b/sdk/security/arm-security/src/models/iotSecuritySolutionAnalyticsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelList, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotSecuritySolutionMappers.ts b/sdk/security/arm-security/src/models/iotSecuritySolutionMappers.ts index 82c7cc05a088..674dd3d26dbe 100644 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionMappers.ts +++ b/sdk/security/arm-security/src/models/iotSecuritySolutionMappers.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,10 +8,12 @@ export { discriminators, + AdditionalWorkspacesProperties, CloudError, IoTSecuritySolutionModel, IoTSecuritySolutionsList, RecommendationConfigurationProperties, + SystemData, TagsResource, UpdateIotSecuritySolutionData, UserDefinedResourcesProperties diff --git a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts b/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts index abdd83a924b0..497f5a0a8b0b 100644 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts +++ b/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.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. diff --git a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts b/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts index d0e756980cf6..edc31da8f968 100644 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts +++ b/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.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. diff --git a/sdk/security/arm-security/src/models/iotSensorsMappers.ts b/sdk/security/arm-security/src/models/iotSensorsMappers.ts new file mode 100644 index 000000000000..5376ebbb2d56 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotSensorsMappers.ts @@ -0,0 +1,145 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsList, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + ResetPasswordInput, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotSitesMappers.ts b/sdk/security/arm-security/src/models/iotSitesMappers.ts new file mode 100644 index 000000000000..a4cbe1be32f2 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotSitesMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesList, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts b/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts index 81a91877bca5..b0c4e9907c48 100644 --- a/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts +++ b/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.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. diff --git a/sdk/security/arm-security/src/models/locationsMappers.ts b/sdk/security/arm-security/src/models/locationsMappers.ts index 7b7a015fa4a4..9182a818b048 100644 --- a/sdk/security/arm-security/src/models/locationsMappers.ts +++ b/sdk/security/arm-security/src/models/locationsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -24,53 +24,91 @@ export { AscLocationList, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index 3ef1960d14bf..945c8529f4af 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/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. @@ -106,7 +106,6 @@ export const TrackedResource: msRest.CompositeMapper = { } }, location: { - readOnly: true, serializedName: "location", type: { name: "String" @@ -139,14 +138,13 @@ export const TrackedResource: msRest.CompositeMapper = { } }; -export const Location: msRest.CompositeMapper = { - serializedName: "Location", +export const AzureTrackedResourceLocation: msRest.CompositeMapper = { + serializedName: "AzureTrackedResourceLocation", type: { name: "Composite", - className: "Location", + className: "AzureTrackedResourceLocation", modelProperties: { location: { - readOnly: true, serializedName: "location", type: { name: "String" @@ -209,6 +207,30 @@ export const Tags: msRest.CompositeMapper = { } }; +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + export const Pricing: msRest.CompositeMapper = { serializedName: "Pricing", type: { @@ -257,44 +279,58 @@ export const PricingList: msRest.CompositeMapper = { } }; -export const AlertEntity: msRest.CompositeMapper = { - serializedName: "AlertEntity", +export const AdvancedThreatProtectionSetting: msRest.CompositeMapper = { + serializedName: "AdvancedThreatProtectionSetting", type: { name: "Composite", - className: "AlertEntity", + className: "AdvancedThreatProtectionSetting", modelProperties: { - type: { - readOnly: true, - serializedName: "type", + ...Resource.type.modelProperties, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "String" + name: "Boolean" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const AlertConfidenceReason: msRest.CompositeMapper = { - serializedName: "AlertConfidenceReason", +export const CustomAlertRule: msRest.CompositeMapper = { + serializedName: "CustomAlertRule", type: { name: "Composite", - className: "AlertConfidenceReason", + polymorphicDiscriminator: { + serializedName: "ruleType", + clientName: "ruleType" + }, + uberParent: "CustomAlertRule", + className: "CustomAlertRule", modelProperties: { - type: { + displayName: { readOnly: true, - serializedName: "type", + serializedName: "displayName", type: { name: "String" } }, - reason: { + description: { readOnly: true, - serializedName: "reason", + serializedName: "description", + type: { + name: "String" + } + }, + isEnabled: { + required: true, + serializedName: "isEnabled", + type: { + name: "Boolean" + } + }, + ruleType: { + required: true, + serializedName: "ruleType", type: { name: "String" } @@ -303,587 +339,293 @@ export const AlertConfidenceReason: msRest.CompositeMapper = { } }; -export const Alert: msRest.CompositeMapper = { - serializedName: "Alert", +export const ThresholdCustomAlertRule: msRest.CompositeMapper = { + serializedName: "ThresholdCustomAlertRule", type: { name: "Composite", - className: "Alert", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "ThresholdCustomAlertRule", modelProperties: { - ...Resource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", + ...CustomAlertRule.type.modelProperties, + minThreshold: { + required: true, + serializedName: "minThreshold", type: { - name: "String" + name: "Number" } }, - reportedTimeUtc: { - readOnly: true, - serializedName: "properties.reportedTimeUtc", + maxThreshold: { + required: true, + serializedName: "maxThreshold", type: { - name: "DateTime" + name: "Number" } - }, - vendorName: { - readOnly: true, - serializedName: "properties.vendorName", + } + } + } +}; + +export const TimeWindowCustomAlertRule: msRest.CompositeMapper = { + serializedName: "TimeWindowCustomAlertRule", + type: { + name: "Composite", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "TimeWindowCustomAlertRule", + modelProperties: { + ...ThresholdCustomAlertRule.type.modelProperties, + timeWindowSize: { + required: true, + serializedName: "timeWindowSize", type: { - name: "String" + name: "TimeSpan" } - }, - alertName: { + } + } + } +}; + +export const ListCustomAlertRule: msRest.CompositeMapper = { + serializedName: "ListCustomAlertRule", + type: { + name: "Composite", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "ListCustomAlertRule", + modelProperties: { + ...CustomAlertRule.type.modelProperties, + valueType: { readOnly: true, - serializedName: "properties.alertName", + serializedName: "valueType", type: { name: "String" } - }, - alertDisplayName: { - readOnly: true, - serializedName: "properties.alertDisplayName", + } + } + } +}; + +export const AllowlistCustomAlertRule: msRest.CompositeMapper = { + serializedName: "AllowlistCustomAlertRule", + type: { + name: "Composite", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "AllowlistCustomAlertRule", + modelProperties: { + ...ListCustomAlertRule.type.modelProperties, + allowlistValues: { + required: true, + serializedName: "allowlistValues", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - detectedTimeUtc: { - readOnly: true, - serializedName: "properties.detectedTimeUtc", + } + } + } +}; + +export const DenylistCustomAlertRule: msRest.CompositeMapper = { + serializedName: "DenylistCustomAlertRule", + type: { + name: "Composite", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "DenylistCustomAlertRule", + modelProperties: { + ...ListCustomAlertRule.type.modelProperties, + denylistValues: { + required: true, + serializedName: "denylistValues", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - description: { - readOnly: true, - serializedName: "properties.description", + } + } + } +}; + +export const DeviceSecurityGroup: msRest.CompositeMapper = { + serializedName: "DeviceSecurityGroup", + type: { + name: "Composite", + className: "DeviceSecurityGroup", + modelProperties: { + ...Resource.type.modelProperties, + thresholdRules: { + serializedName: "properties.thresholdRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ThresholdCustomAlertRule" + } + } } }, - remediationSteps: { - readOnly: true, - serializedName: "properties.remediationSteps", + timeWindowRules: { + serializedName: "properties.timeWindowRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimeWindowCustomAlertRule" + } + } } }, - actionTaken: { - readOnly: true, - serializedName: "properties.actionTaken", + allowlistRules: { + serializedName: "properties.allowlistRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AllowlistCustomAlertRule" + } + } } }, - reportedSeverity: { - readOnly: true, - serializedName: "properties.reportedSeverity", + denylistRules: { + serializedName: "properties.denylistRules", type: { - name: "String" - } - }, - compromisedEntity: { - readOnly: true, - serializedName: "properties.compromisedEntity", - type: { - name: "String" - } - }, - associatedResource: { - readOnly: true, - serializedName: "properties.associatedResource", - type: { - name: "String" - } - }, - extendedProperties: { - serializedName: "properties.extendedProperties", - type: { - name: "Dictionary", - value: { - type: { - name: "Object" - } - } - } - }, - systemSource: { - readOnly: true, - serializedName: "properties.systemSource", - type: { - name: "String" - } - }, - canBeInvestigated: { - readOnly: true, - serializedName: "properties.canBeInvestigated", - type: { - name: "Boolean" - } - }, - isIncident: { - readOnly: true, - serializedName: "properties.isIncident", - type: { - name: "Boolean" - } - }, - entities: { - serializedName: "properties.entities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AlertEntity", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } - }, - confidenceScore: { - readOnly: true, - serializedName: "properties.confidenceScore", - constraints: { - InclusiveMaximum: 1, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - confidenceReasons: { - serializedName: "properties.confidenceReasons", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AlertConfidenceReason" - } - } - } - }, - subscriptionId: { - readOnly: true, - serializedName: "properties.subscriptionId", - type: { - name: "String" - } - }, - instanceId: { - readOnly: true, - serializedName: "properties.instanceId", - type: { - name: "String" - } - }, - workspaceArmId: { - readOnly: true, - serializedName: "properties.workspaceArmId", - type: { - name: "String" - } - }, - correlationKey: { - readOnly: true, - serializedName: "properties.correlationKey", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DenylistCustomAlertRule" + } + } } } } } }; -export const SettingResource: msRest.CompositeMapper = { - serializedName: "SettingResource", +export const ConnectionToIpNotAllowed: msRest.CompositeMapper = { + serializedName: "ConnectionToIpNotAllowed", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "BaseResource", - className: "SettingResource", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "ConnectionToIpNotAllowed", modelProperties: { - ...Resource.type.modelProperties, - kind: { - required: true, - serializedName: "kind", - type: { - name: "String" - } - } + ...AllowlistCustomAlertRule.type.modelProperties } } }; -export const Setting: msRest.CompositeMapper = { - serializedName: "Setting", +export const ConnectionFromIpNotAllowed: msRest.CompositeMapper = { + serializedName: "ConnectionFromIpNotAllowed", type: { name: "Composite", - className: "Setting", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "ConnectionFromIpNotAllowed", modelProperties: { - ...SettingResource.type.modelProperties + ...AllowlistCustomAlertRule.type.modelProperties } } }; -export const DataExportSettings: msRest.CompositeMapper = { - serializedName: "DataExportSettings", +export const LocalUserNotAllowed: msRest.CompositeMapper = { + serializedName: "LocalUserNotAllowed", type: { name: "Composite", - className: "DataExportSettings", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "LocalUserNotAllowed", modelProperties: { - ...Setting.type.modelProperties, - enabled: { - required: true, - serializedName: "properties.enabled", - type: { - name: "Boolean" - } - } + ...AllowlistCustomAlertRule.type.modelProperties } } }; -export const AdvancedThreatProtectionSetting: msRest.CompositeMapper = { - serializedName: "AdvancedThreatProtectionSetting", +export const ProcessNotAllowed: msRest.CompositeMapper = { + serializedName: "ProcessNotAllowed", type: { name: "Composite", - className: "AdvancedThreatProtectionSetting", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "ProcessNotAllowed", modelProperties: { - ...Resource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - } + ...AllowlistCustomAlertRule.type.modelProperties } } }; -export const CustomAlertRule: msRest.CompositeMapper = { - serializedName: "CustomAlertRule", +export const ActiveConnectionsNotInAllowedRange: msRest.CompositeMapper = { + serializedName: "ActiveConnectionsNotInAllowedRange", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType" - }, + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "CustomAlertRule", + className: "ActiveConnectionsNotInAllowedRange", modelProperties: { - displayName: { - readOnly: true, - serializedName: "displayName", - type: { - name: "String" - } - }, - description: { - readOnly: true, - serializedName: "description", - type: { - name: "String" - } - }, - isEnabled: { - required: true, - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - ruleType: { - required: true, - serializedName: "ruleType", - type: { - name: "String" - } - } + ...TimeWindowCustomAlertRule.type.modelProperties } } }; -export const ThresholdCustomAlertRule: msRest.CompositeMapper = { - serializedName: "ThresholdCustomAlertRule", +export const AmqpC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { + serializedName: "AmqpC2DMessagesNotInAllowedRange", type: { name: "Composite", polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "ThresholdCustomAlertRule", + className: "AmqpC2DMessagesNotInAllowedRange", modelProperties: { - ...CustomAlertRule.type.modelProperties, - minThreshold: { - required: true, - serializedName: "minThreshold", - type: { - name: "Number" - } - }, - maxThreshold: { - required: true, - serializedName: "maxThreshold", - type: { - name: "Number" - } - } + ...TimeWindowCustomAlertRule.type.modelProperties } } }; -export const TimeWindowCustomAlertRule: msRest.CompositeMapper = { - serializedName: "TimeWindowCustomAlertRule", +export const MqttC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { + serializedName: "MqttC2DMessagesNotInAllowedRange", type: { name: "Composite", polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "TimeWindowCustomAlertRule", + className: "MqttC2DMessagesNotInAllowedRange", modelProperties: { - ...ThresholdCustomAlertRule.type.modelProperties, - timeWindowSize: { - required: true, - serializedName: "timeWindowSize", - type: { - name: "TimeSpan" - } - } + ...TimeWindowCustomAlertRule.type.modelProperties } } }; -export const ListCustomAlertRule: msRest.CompositeMapper = { - serializedName: "ListCustomAlertRule", +export const HttpC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { + serializedName: "HttpC2DMessagesNotInAllowedRange", type: { name: "Composite", polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "ListCustomAlertRule", + className: "HttpC2DMessagesNotInAllowedRange", modelProperties: { - ...CustomAlertRule.type.modelProperties, - valueType: { - readOnly: true, - serializedName: "valueType", - type: { - name: "String" - } - } + ...TimeWindowCustomAlertRule.type.modelProperties } } }; -export const AllowlistCustomAlertRule: msRest.CompositeMapper = { - serializedName: "AllowlistCustomAlertRule", +export const AmqpC2DRejectedMessagesNotInAllowedRange: msRest.CompositeMapper = { + serializedName: "AmqpC2DRejectedMessagesNotInAllowedRange", type: { name: "Composite", polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "AllowlistCustomAlertRule", - modelProperties: { - ...ListCustomAlertRule.type.modelProperties, - allowlistValues: { - required: true, - serializedName: "allowlistValues", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const DenylistCustomAlertRule: msRest.CompositeMapper = { - serializedName: "DenylistCustomAlertRule", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "DenylistCustomAlertRule", - modelProperties: { - ...ListCustomAlertRule.type.modelProperties, - denylistValues: { - required: true, - serializedName: "denylistValues", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const DeviceSecurityGroup: msRest.CompositeMapper = { - serializedName: "DeviceSecurityGroup", - type: { - name: "Composite", - className: "DeviceSecurityGroup", - modelProperties: { - ...Resource.type.modelProperties, - thresholdRules: { - serializedName: "properties.thresholdRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ThresholdCustomAlertRule" - } - } - } - }, - timeWindowRules: { - serializedName: "properties.timeWindowRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TimeWindowCustomAlertRule" - } - } - } - }, - allowlistRules: { - serializedName: "properties.allowlistRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AllowlistCustomAlertRule" - } - } - } - }, - denylistRules: { - serializedName: "properties.denylistRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DenylistCustomAlertRule" - } - } - } - } - } - } -}; - -export const ConnectionToIpNotAllowed: msRest.CompositeMapper = { - serializedName: "ConnectionToIpNotAllowed", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "ConnectionToIpNotAllowed", - modelProperties: { - ...AllowlistCustomAlertRule.type.modelProperties - } - } -}; - -export const LocalUserNotAllowed: msRest.CompositeMapper = { - serializedName: "LocalUserNotAllowed", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "LocalUserNotAllowed", - modelProperties: { - ...AllowlistCustomAlertRule.type.modelProperties - } - } -}; - -export const ProcessNotAllowed: msRest.CompositeMapper = { - serializedName: "ProcessNotAllowed", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "ProcessNotAllowed", - modelProperties: { - ...AllowlistCustomAlertRule.type.modelProperties - } - } -}; - -export const ActiveConnectionsNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "ActiveConnectionsNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "ActiveConnectionsNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const AmqpC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "AmqpC2DMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "AmqpC2DMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const MqttC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "MqttC2DMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "MqttC2DMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const HttpC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "HttpC2DMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "HttpC2DMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const AmqpC2DRejectedMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "AmqpC2DRejectedMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "AmqpC2DRejectedMessagesNotInAllowedRange", + className: "AmqpC2DRejectedMessagesNotInAllowedRange", modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties } @@ -1054,24 +796,2630 @@ export const TagsResource: msRest.CompositeMapper = { } }; -export const UserDefinedResourcesProperties: msRest.CompositeMapper = { - serializedName: "UserDefinedResourcesProperties", +export const UserDefinedResourcesProperties: msRest.CompositeMapper = { + serializedName: "UserDefinedResourcesProperties", + type: { + name: "Composite", + className: "UserDefinedResourcesProperties", + modelProperties: { + query: { + required: true, + nullable: true, + serializedName: "query", + type: { + name: "String" + } + }, + querySubscriptions: { + required: true, + nullable: true, + serializedName: "querySubscriptions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RecommendationConfigurationProperties: msRest.CompositeMapper = { + serializedName: "RecommendationConfigurationProperties", + type: { + name: "Composite", + className: "RecommendationConfigurationProperties", + modelProperties: { + recommendationType: { + required: true, + serializedName: "recommendationType", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + status: { + required: true, + serializedName: "status", + defaultValue: 'Enabled', + type: { + name: "String" + } + } + } + } +}; + +export const AdditionalWorkspacesProperties: msRest.CompositeMapper = { + serializedName: "AdditionalWorkspacesProperties", + type: { + name: "Composite", + className: "AdditionalWorkspacesProperties", + modelProperties: { + workspace: { + serializedName: "workspace", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + defaultValue: 'Sentinel', + type: { + name: "String" + } + }, + dataTypes: { + serializedName: "dataTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const IoTSecuritySolutionModel: msRest.CompositeMapper = { + serializedName: "IoTSecuritySolutionModel", + type: { + name: "Composite", + className: "IoTSecuritySolutionModel", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + workspace: { + serializedName: "properties.workspace", + type: { + name: "String" + } + }, + displayName: { + required: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + exportProperty: { + serializedName: "properties.export", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + disabledDataSources: { + serializedName: "properties.disabledDataSources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + iotHubs: { + required: true, + serializedName: "properties.iotHubs", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + userDefinedResources: { + serializedName: "properties.userDefinedResources", + type: { + name: "Composite", + className: "UserDefinedResourcesProperties" + } + }, + autoDiscoveredResources: { + readOnly: true, + serializedName: "properties.autoDiscoveredResources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + recommendationsConfiguration: { + serializedName: "properties.recommendationsConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendationConfigurationProperties" + } + } + } + }, + unmaskedIpLoggingStatus: { + serializedName: "properties.unmaskedIpLoggingStatus", + defaultValue: 'Disabled', + type: { + name: "String" + } + }, + additionalWorkspaces: { + serializedName: "properties.additionalWorkspaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalWorkspacesProperties" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const UpdateIotSecuritySolutionData: msRest.CompositeMapper = { + serializedName: "UpdateIotSecuritySolutionData", + type: { + name: "Composite", + className: "UpdateIotSecuritySolutionData", + modelProperties: { + ...TagsResource.type.modelProperties, + userDefinedResources: { + serializedName: "properties.userDefinedResources", + type: { + name: "Composite", + className: "UserDefinedResourcesProperties" + } + }, + recommendationsConfiguration: { + serializedName: "properties.recommendationsConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendationConfigurationProperties" + } + } + } + } + } + } +}; + +export const IoTSeverityMetrics: msRest.CompositeMapper = { + serializedName: "IoTSeverityMetrics", + type: { + name: "Composite", + className: "IoTSeverityMetrics", + modelProperties: { + high: { + serializedName: "high", + type: { + name: "Number" + } + }, + medium: { + serializedName: "medium", + type: { + name: "Number" + } + }, + low: { + serializedName: "low", + type: { + name: "Number" + } + } + } + } +}; + +export const IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem: msRest.CompositeMapper = { + serializedName: "IoTSecuritySolutionAnalyticsModelProperties_devicesMetricsItem", + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", + modelProperties: { + date: { + serializedName: "date", + type: { + name: "DateTime" + } + }, + devicesMetrics: { + serializedName: "devicesMetrics", + type: { + name: "Composite", + className: "IoTSeverityMetrics" + } + } + } + } +}; + +export const IoTSecurityAlertedDevice: msRest.CompositeMapper = { + serializedName: "IoTSecurityAlertedDevice", + type: { + name: "Composite", + className: "IoTSecurityAlertedDevice", + modelProperties: { + deviceId: { + readOnly: true, + serializedName: "deviceId", + type: { + name: "String" + } + }, + alertsCount: { + readOnly: true, + serializedName: "alertsCount", + type: { + name: "Number" + } + } + } + } +}; + +export const IoTSecurityDeviceAlert: msRest.CompositeMapper = { + serializedName: "IoTSecurityDeviceAlert", + type: { + name: "Composite", + className: "IoTSecurityDeviceAlert", + modelProperties: { + alertDisplayName: { + readOnly: true, + serializedName: "alertDisplayName", + type: { + name: "String" + } + }, + reportedSeverity: { + readOnly: true, + serializedName: "reportedSeverity", + type: { + name: "String" + } + }, + alertsCount: { + readOnly: true, + serializedName: "alertsCount", + type: { + name: "Number" + } + } + } + } +}; + +export const IoTSecurityDeviceRecommendation: msRest.CompositeMapper = { + serializedName: "IoTSecurityDeviceRecommendation", + type: { + name: "Composite", + className: "IoTSecurityDeviceRecommendation", + modelProperties: { + recommendationDisplayName: { + readOnly: true, + serializedName: "recommendationDisplayName", + type: { + name: "String" + } + }, + reportedSeverity: { + readOnly: true, + serializedName: "reportedSeverity", + type: { + name: "String" + } + }, + devicesCount: { + readOnly: true, + serializedName: "devicesCount", + type: { + name: "Number" + } + } + } + } +}; + +export const IoTSecuritySolutionAnalyticsModel: msRest.CompositeMapper = { + serializedName: "IoTSecuritySolutionAnalyticsModel", + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModel", + modelProperties: { + ...Resource.type.modelProperties, + metrics: { + readOnly: true, + serializedName: "properties.metrics", + type: { + name: "Composite", + className: "IoTSeverityMetrics" + } + }, + unhealthyDeviceCount: { + readOnly: true, + serializedName: "properties.unhealthyDeviceCount", + type: { + name: "Number" + } + }, + devicesMetrics: { + readOnly: true, + serializedName: "properties.devicesMetrics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem" + } + } + } + }, + topAlertedDevices: { + serializedName: "properties.topAlertedDevices", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecurityAlertedDevice" + } + } + } + }, + mostPrevalentDeviceAlerts: { + serializedName: "properties.mostPrevalentDeviceAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecurityDeviceAlert" + } + } + } + }, + mostPrevalentDeviceRecommendations: { + serializedName: "properties.mostPrevalentDeviceRecommendations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecurityDeviceRecommendation" + } + } + } + } + } + } +}; + +export const IoTSecuritySolutionAnalyticsModelList: msRest.CompositeMapper = { + serializedName: "IoTSecuritySolutionAnalyticsModelList", + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModelList", + modelProperties: { + value: { + required: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModel" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: msRest.CompositeMapper = { + serializedName: "IoTSecurityAggregatedAlertProperties_topDevicesListItem", + type: { + name: "Composite", + className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", + modelProperties: { + deviceId: { + readOnly: true, + serializedName: "deviceId", + type: { + name: "String" + } + }, + alertsCount: { + readOnly: true, + serializedName: "alertsCount", + type: { + name: "Number" + } + }, + lastOccurrence: { + readOnly: true, + serializedName: "lastOccurrence", + type: { + name: "String" + } + } + } + } +}; + +export const IoTSecurityAggregatedAlert: msRest.CompositeMapper = { + serializedName: "IoTSecurityAggregatedAlert", + type: { + name: "Composite", + className: "IoTSecurityAggregatedAlert", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + alertType: { + readOnly: true, + serializedName: "properties.alertType", + type: { + name: "String" + } + }, + alertDisplayName: { + readOnly: true, + serializedName: "properties.alertDisplayName", + type: { + name: "String" + } + }, + aggregatedDateUtc: { + readOnly: true, + serializedName: "properties.aggregatedDateUtc", + type: { + name: "Date" + } + }, + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", + type: { + name: "String" + } + }, + reportedSeverity: { + readOnly: true, + serializedName: "properties.reportedSeverity", + type: { + name: "String" + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + count: { + readOnly: true, + serializedName: "properties.count", + type: { + name: "Number" + } + }, + effectedResourceType: { + readOnly: true, + serializedName: "properties.effectedResourceType", + type: { + name: "String" + } + }, + systemSource: { + readOnly: true, + serializedName: "properties.systemSource", + type: { + name: "String" + } + }, + actionTaken: { + readOnly: true, + serializedName: "properties.actionTaken", + type: { + name: "String" + } + }, + logAnalyticsQuery: { + readOnly: true, + serializedName: "properties.logAnalyticsQuery", + type: { + name: "String" + } + }, + topDevicesList: { + readOnly: true, + serializedName: "properties.topDevicesList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem" + } + } + } + } + } + } +}; + +export const IoTSecurityAggregatedRecommendation: msRest.CompositeMapper = { + serializedName: "IoTSecurityAggregatedRecommendation", + type: { + name: "Composite", + className: "IoTSecurityAggregatedRecommendation", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + recommendationName: { + serializedName: "properties.recommendationName", + type: { + name: "String" + } + }, + recommendationDisplayName: { + readOnly: true, + serializedName: "properties.recommendationDisplayName", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + recommendationTypeId: { + readOnly: true, + serializedName: "properties.recommendationTypeId", + type: { + name: "String" + } + }, + detectedBy: { + readOnly: true, + serializedName: "properties.detectedBy", + type: { + name: "String" + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", + type: { + name: "String" + } + }, + reportedSeverity: { + readOnly: true, + serializedName: "properties.reportedSeverity", + type: { + name: "String" + } + }, + healthyDevices: { + readOnly: true, + serializedName: "properties.healthyDevices", + type: { + name: "Number" + } + }, + unhealthyDeviceCount: { + readOnly: true, + serializedName: "properties.unhealthyDeviceCount", + type: { + name: "Number" + } + }, + logAnalyticsQuery: { + readOnly: true, + serializedName: "properties.logAnalyticsQuery", + type: { + name: "String" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "OperationDisplay", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + readOnly: true, + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + readOnly: true, + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + readOnly: true, + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + origin: { + readOnly: true, + serializedName: "origin", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; + +export const SecurityTaskParameters: msRest.CompositeMapper = { + serializedName: "SecurityTaskParameters", + type: { + name: "Composite", + className: "SecurityTaskParameters", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + +export const SecurityTask: msRest.CompositeMapper = { + serializedName: "SecurityTask", + type: { + name: "Composite", + className: "SecurityTask", + modelProperties: { + ...Resource.type.modelProperties, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + creationTimeUtc: { + readOnly: true, + serializedName: "properties.creationTimeUtc", + type: { + name: "DateTime" + } + }, + securityTaskParameters: { + serializedName: "properties.securityTaskParameters", + type: { + name: "Composite", + className: "SecurityTaskParameters", + additionalProperties: { + type: { + name: "Object" + } + } + } + }, + lastStateChangeTimeUtc: { + readOnly: true, + serializedName: "properties.lastStateChangeTimeUtc", + type: { + name: "DateTime" + } + }, + subState: { + readOnly: true, + serializedName: "properties.subState", + type: { + name: "String" + } + } + } + } +}; + +export const AutoProvisioningSetting: msRest.CompositeMapper = { + serializedName: "AutoProvisioningSetting", + type: { + name: "Composite", + className: "AutoProvisioningSetting", + modelProperties: { + ...Resource.type.modelProperties, + autoProvision: { + required: true, + serializedName: "properties.autoProvision", + type: { + name: "String" + } + } + } + } +}; + +export const ComplianceSegment: msRest.CompositeMapper = { + serializedName: "ComplianceSegment", + type: { + name: "Composite", + className: "ComplianceSegment", + modelProperties: { + segmentType: { + readOnly: true, + serializedName: "segmentType", + type: { + name: "String" + } + }, + percentage: { + readOnly: true, + serializedName: "percentage", + type: { + name: "Number" + } + } + } + } +}; + +export const Compliance: msRest.CompositeMapper = { + serializedName: "Compliance", + type: { + name: "Composite", + className: "Compliance", + modelProperties: { + ...Resource.type.modelProperties, + assessmentTimestampUtcDate: { + readOnly: true, + serializedName: "properties.assessmentTimestampUtcDate", + type: { + name: "DateTime" + } + }, + resourceCount: { + readOnly: true, + serializedName: "properties.resourceCount", + type: { + name: "Number" + } + }, + assessmentResult: { + readOnly: true, + serializedName: "properties.assessmentResult", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComplianceSegment" + } + } + } + } + } + } +}; + +export const SensitivityLabel: msRest.CompositeMapper = { + serializedName: "SensitivityLabel", + type: { + name: "Composite", + className: "SensitivityLabel", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + rank: { + serializedName: "rank", + type: { + name: "Enum", + allowedValues: [ + "None", + "Low", + "Medium", + "High", + "Critical" + ] + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const InformationProtectionKeyword: msRest.CompositeMapper = { + serializedName: "InformationProtectionKeyword", + type: { + name: "Composite", + className: "InformationProtectionKeyword", + modelProperties: { + pattern: { + serializedName: "pattern", + type: { + name: "String" + } + }, + custom: { + serializedName: "custom", + type: { + name: "Boolean" + } + }, + canBeNumeric: { + serializedName: "canBeNumeric", + type: { + name: "Boolean" + } + }, + excluded: { + serializedName: "excluded", + type: { + name: "Boolean" + } + } + } + } +}; + +export const InformationType: msRest.CompositeMapper = { + serializedName: "InformationType", + type: { + name: "Composite", + className: "InformationType", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + recommendedLabelId: { + serializedName: "recommendedLabelId", + type: { + name: "Uuid" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + custom: { + serializedName: "custom", + type: { + name: "Boolean" + } + }, + keywords: { + serializedName: "keywords", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InformationProtectionKeyword" + } + } + } + } + } + } +}; + +export const InformationProtectionPolicy: msRest.CompositeMapper = { + serializedName: "InformationProtectionPolicy", + type: { + name: "Composite", + className: "InformationProtectionPolicy", + modelProperties: { + ...Resource.type.modelProperties, + lastModifiedUtc: { + readOnly: true, + serializedName: "properties.lastModifiedUtc", + type: { + name: "DateTime" + } + }, + version: { + readOnly: true, + serializedName: "properties.version", + type: { + name: "String" + } + }, + labels: { + serializedName: "properties.labels", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "SensitivityLabel" + } + } + } + }, + informationTypes: { + serializedName: "properties.informationTypes", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "InformationType" + } + } + } + } + } + } +}; + +export const SecurityContact: msRest.CompositeMapper = { + serializedName: "SecurityContact", + type: { + name: "Composite", + className: "SecurityContact", + modelProperties: { + ...Resource.type.modelProperties, + email: { + required: true, + serializedName: "properties.email", + type: { + name: "String" + } + }, + phone: { + serializedName: "properties.phone", + type: { + name: "String" + } + }, + alertNotifications: { + required: true, + serializedName: "properties.alertNotifications", + type: { + name: "String" + } + }, + alertsToAdmins: { + required: true, + serializedName: "properties.alertsToAdmins", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceSetting: msRest.CompositeMapper = { + serializedName: "WorkspaceSetting", + type: { + name: "Composite", + className: "WorkspaceSetting", + modelProperties: { + ...Resource.type.modelProperties, + workspaceId: { + required: true, + serializedName: "properties.workspaceId", + type: { + name: "String" + } + }, + scope: { + required: true, + serializedName: "properties.scope", + type: { + name: "String" + } + } + } + } +}; + +export const RegulatoryComplianceStandard: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceStandard", + type: { + name: "Composite", + className: "RegulatoryComplianceStandard", + modelProperties: { + ...Resource.type.modelProperties, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + passedControls: { + readOnly: true, + serializedName: "properties.passedControls", + type: { + name: "Number" + } + }, + failedControls: { + readOnly: true, + serializedName: "properties.failedControls", + type: { + name: "Number" + } + }, + skippedControls: { + readOnly: true, + serializedName: "properties.skippedControls", + type: { + name: "Number" + } + }, + unsupportedControls: { + readOnly: true, + serializedName: "properties.unsupportedControls", + type: { + name: "Number" + } + } + } + } +}; + +export const RegulatoryComplianceControl: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceControl", + type: { + name: "Composite", + className: "RegulatoryComplianceControl", + modelProperties: { + ...Resource.type.modelProperties, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + passedAssessments: { + readOnly: true, + serializedName: "properties.passedAssessments", + type: { + name: "Number" + } + }, + failedAssessments: { + readOnly: true, + serializedName: "properties.failedAssessments", + type: { + name: "Number" + } + }, + skippedAssessments: { + readOnly: true, + serializedName: "properties.skippedAssessments", + type: { + name: "Number" + } + } + } + } +}; + +export const RegulatoryComplianceAssessment: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceAssessment", + type: { + name: "Composite", + className: "RegulatoryComplianceAssessment", + modelProperties: { + ...Resource.type.modelProperties, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + assessmentType: { + readOnly: true, + serializedName: "properties.assessmentType", + type: { + name: "String" + } + }, + assessmentDetailsLink: { + readOnly: true, + serializedName: "properties.assessmentDetailsLink", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + passedResources: { + readOnly: true, + serializedName: "properties.passedResources", + type: { + name: "Number" + } + }, + failedResources: { + readOnly: true, + serializedName: "properties.failedResources", + type: { + name: "Number" + } + }, + skippedResources: { + readOnly: true, + serializedName: "properties.skippedResources", + type: { + name: "Number" + } + }, + unsupportedResources: { + readOnly: true, + serializedName: "properties.unsupportedResources", + type: { + name: "Number" + } + } + } + } +}; + +export const SubAssessmentStatus: msRest.CompositeMapper = { + serializedName: "SubAssessmentStatus", + type: { + name: "Composite", + className: "SubAssessmentStatus", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + cause: { + readOnly: true, + serializedName: "cause", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + }, + severity: { + readOnly: true, + serializedName: "severity", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceDetails: msRest.CompositeMapper = { + serializedName: "ResourceDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "source", + clientName: "source" + }, + uberParent: "ResourceDetails", + className: "ResourceDetails", + modelProperties: { + source: { + required: true, + serializedName: "source", + type: { + name: "String" + } + } + } + } +}; + +export const AdditionalData: msRest.CompositeMapper = { + serializedName: "AdditionalData", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "assessedResourceType", + clientName: "assessedResourceType" + }, + uberParent: "AdditionalData", + className: "AdditionalData", + modelProperties: { + assessedResourceType: { + required: true, + serializedName: "assessedResourceType", + type: { + name: "String" + } + } + } + } +}; + +export const SecuritySubAssessment: msRest.CompositeMapper = { + serializedName: "SecuritySubAssessment", + type: { + name: "Composite", + className: "SecuritySubAssessment", + modelProperties: { + ...Resource.type.modelProperties, + securitySubAssessmentId: { + readOnly: true, + serializedName: "properties.id", + type: { + name: "String" + } + }, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "Composite", + className: "SubAssessmentStatus" + } + }, + remediation: { + readOnly: true, + serializedName: "properties.remediation", + type: { + name: "String" + } + }, + impact: { + readOnly: true, + serializedName: "properties.impact", + type: { + name: "String" + } + }, + category: { + readOnly: true, + serializedName: "properties.category", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + timeGenerated: { + readOnly: true, + serializedName: "properties.timeGenerated", + type: { + name: "DateTime" + } + }, + resourceDetails: { + serializedName: "properties.resourceDetails", + type: { + name: "Composite", + className: "ResourceDetails" + } + }, + additionalData: { + serializedName: "properties.additionalData", + type: { + name: "Composite", + className: "AdditionalData" + } + } + } + } +}; + +export const SqlServerVulnerabilityProperties: msRest.CompositeMapper = { + serializedName: "SqlServerVulnerability", + type: { + name: "Composite", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + uberParent: "AdditionalData", + className: "SqlServerVulnerabilityProperties", + modelProperties: { + ...AdditionalData.type.modelProperties, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + query: { + readOnly: true, + serializedName: "query", + type: { + name: "String" + } + } + } + } +}; + +export const CVSS: msRest.CompositeMapper = { + serializedName: "CVSS", + type: { + name: "Composite", + className: "CVSS", + modelProperties: { + base: { + readOnly: true, + serializedName: "base", + type: { + name: "Number" + } + } + } + } +}; + +export const CVE: msRest.CompositeMapper = { + serializedName: "CVE", + type: { + name: "Composite", + className: "CVE", + modelProperties: { + title: { + readOnly: true, + serializedName: "title", + type: { + name: "String" + } + }, + link: { + readOnly: true, + serializedName: "link", + type: { + name: "String" + } + } + } + } +}; + +export const VendorReference: msRest.CompositeMapper = { + serializedName: "VendorReference", + type: { + name: "Composite", + className: "VendorReference", + modelProperties: { + title: { + readOnly: true, + serializedName: "title", + type: { + name: "String" + } + }, + link: { + readOnly: true, + serializedName: "link", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerRegistryVulnerabilityProperties: msRest.CompositeMapper = { + serializedName: "ContainerRegistryVulnerability", + type: { + name: "Composite", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + uberParent: "AdditionalData", + className: "ContainerRegistryVulnerabilityProperties", + modelProperties: { + ...AdditionalData.type.modelProperties, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + cvss: { + readOnly: true, + serializedName: "cvss", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "CVSS" + } + } + } + }, + patchable: { + readOnly: true, + serializedName: "patchable", + type: { + name: "Boolean" + } + }, + cve: { + readOnly: true, + serializedName: "cve", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CVE" + } + } + } + }, + publishedTime: { + readOnly: true, + serializedName: "publishedTime", + type: { + name: "DateTime" + } + }, + vendorReferences: { + readOnly: true, + serializedName: "vendorReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VendorReference" + } + } + } + }, + repositoryName: { + readOnly: true, + serializedName: "repositoryName", + type: { + name: "String" + } + }, + imageDigest: { + readOnly: true, + serializedName: "imageDigest", + type: { + name: "String" + } + } + } + } +}; + +export const ServerVulnerabilityProperties: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessment", + type: { + name: "Composite", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + uberParent: "AdditionalData", + className: "ServerVulnerabilityProperties", + modelProperties: { + ...AdditionalData.type.modelProperties, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + cvss: { + readOnly: true, + serializedName: "cvss", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "CVSS" + } + } + } + }, + patchable: { + readOnly: true, + serializedName: "patchable", + type: { + name: "Boolean" + } + }, + cve: { + readOnly: true, + serializedName: "cve", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CVE" + } + } + } + }, + threat: { + readOnly: true, + serializedName: "threat", + type: { + name: "String" + } + }, + publishedTime: { + readOnly: true, + serializedName: "publishedTime", + type: { + name: "DateTime" + } + }, + vendorReferences: { + readOnly: true, + serializedName: "vendorReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VendorReference" + } + } + } + } + } + } +}; + +export const OnPremiseResourceDetails: msRest.CompositeMapper = { + serializedName: "OnPremise", + type: { + name: "Composite", + polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, + uberParent: "ResourceDetails", + className: "OnPremiseResourceDetails", + modelProperties: { + ...ResourceDetails.type.modelProperties, + workspaceId: { + required: true, + serializedName: "workspaceId", + type: { + name: "String" + } + }, + vmuuid: { + required: true, + serializedName: "vmuuid", + type: { + name: "String" + } + }, + sourceComputerId: { + required: true, + serializedName: "sourceComputerId", + type: { + name: "String" + } + }, + machineName: { + required: true, + serializedName: "machineName", + type: { + name: "String" + } + } + } + } +}; + +export const OnPremiseSqlResourceDetails: msRest.CompositeMapper = { + serializedName: "OnPremiseSql", + type: { + name: "Composite", + polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, + uberParent: "ResourceDetails", + className: "OnPremiseSqlResourceDetails", + modelProperties: { + ...OnPremiseResourceDetails.type.modelProperties, + serverName: { + required: true, + serializedName: "serverName", + type: { + name: "String" + } + }, + databaseName: { + required: true, + serializedName: "databaseName", + type: { + name: "String" + } + } + } + } +}; + +export const AzureResourceDetails: msRest.CompositeMapper = { + serializedName: "Azure", + type: { + name: "Composite", + polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, + uberParent: "ResourceDetails", + className: "AzureResourceDetails", + modelProperties: { + ...ResourceDetails.type.modelProperties, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationScope: msRest.CompositeMapper = { + serializedName: "AutomationScope", + type: { + name: "Composite", + className: "AutomationScope", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + scopePath: { + serializedName: "scopePath", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationTriggeringRule: msRest.CompositeMapper = { + serializedName: "AutomationTriggeringRule", + type: { + name: "Composite", + className: "AutomationTriggeringRule", + modelProperties: { + propertyJPath: { + serializedName: "propertyJPath", + type: { + name: "String" + } + }, + propertyType: { + serializedName: "propertyType", + type: { + name: "String" + } + }, + expectedValue: { + serializedName: "expectedValue", + type: { + name: "String" + } + }, + operator: { + serializedName: "operator", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationRuleSet: msRest.CompositeMapper = { + serializedName: "AutomationRuleSet", + type: { + name: "Composite", + className: "AutomationRuleSet", + modelProperties: { + rules: { + serializedName: "rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationTriggeringRule" + } + } + } + } + } + } +}; + +export const AutomationSource: msRest.CompositeMapper = { + serializedName: "AutomationSource", + type: { + name: "Composite", + className: "AutomationSource", + modelProperties: { + eventSource: { + serializedName: "eventSource", + type: { + name: "String" + } + }, + ruleSets: { + serializedName: "ruleSets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationRuleSet" + } + } + } + } + } + } +}; + +export const AutomationAction: msRest.CompositeMapper = { + serializedName: "AutomationAction", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "actionType", + clientName: "actionType" + }, + uberParent: "AutomationAction", + className: "AutomationAction", + modelProperties: { + actionType: { + required: true, + serializedName: "actionType", + type: { + name: "String" + } + } + } + } +}; + +export const Automation: msRest.CompositeMapper = { + serializedName: "Automation", + type: { + name: "Composite", + className: "Automation", + modelProperties: { + ...TrackedResource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean" + } + }, + scopes: { + serializedName: "properties.scopes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationScope" + } + } + } + }, + sources: { + serializedName: "properties.sources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationSource" + } + } + } + }, + actions: { + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationAction" + } + } + } + } + } + } +}; + +export const AutomationActionLogicApp: msRest.CompositeMapper = { + serializedName: "LogicApp", + type: { + name: "Composite", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + uberParent: "AutomationAction", + className: "AutomationActionLogicApp", + modelProperties: { + ...AutomationAction.type.modelProperties, + logicAppResourceId: { + serializedName: "logicAppResourceId", + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationActionEventHub: msRest.CompositeMapper = { + serializedName: "EventHub", + type: { + name: "Composite", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + uberParent: "AutomationAction", + className: "AutomationActionEventHub", + modelProperties: { + ...AutomationAction.type.modelProperties, + eventHubResourceId: { + serializedName: "eventHubResourceId", + type: { + name: "String" + } + }, + sasPolicyName: { + readOnly: true, + serializedName: "sasPolicyName", + type: { + name: "String" + } + }, + connectionString: { + serializedName: "connectionString", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationActionWorkspace: msRest.CompositeMapper = { + serializedName: "Workspace", + type: { + name: "Composite", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + uberParent: "AutomationAction", + className: "AutomationActionWorkspace", + modelProperties: { + ...AutomationAction.type.modelProperties, + workspaceResourceId: { + serializedName: "workspaceResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationValidationStatus: msRest.CompositeMapper = { + serializedName: "AutomationValidationStatus", + type: { + name: "Composite", + className: "AutomationValidationStatus", + modelProperties: { + isValid: { + serializedName: "isValid", + type: { + name: "Boolean" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ScopeElement: msRest.CompositeMapper = { + serializedName: "ScopeElement", + type: { + name: "Composite", + className: "ScopeElement", + modelProperties: { + field: { + serializedName: "field", + type: { + name: "String" + } + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + +export const SuppressionAlertsScope: msRest.CompositeMapper = { + serializedName: "SuppressionAlertsScope", + type: { + name: "Composite", + className: "SuppressionAlertsScope", + modelProperties: { + allOf: { + required: true, + serializedName: "allOf", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScopeElement", + additionalProperties: { + type: { + name: "Object" + } + } + } + } + } + } + } + } +}; + +export const AlertsSuppressionRule: msRest.CompositeMapper = { + serializedName: "AlertsSuppressionRule", + type: { + name: "Composite", + className: "AlertsSuppressionRule", + modelProperties: { + ...Resource.type.modelProperties, + alertType: { + required: true, + serializedName: "properties.alertType", + type: { + name: "String" + } + }, + lastModifiedUtc: { + readOnly: true, + serializedName: "properties.lastModifiedUtc", + type: { + name: "DateTime" + } + }, + expirationDateUtc: { + serializedName: "properties.expirationDateUtc", + type: { + name: "DateTime" + } + }, + reason: { + required: true, + serializedName: "properties.reason", + type: { + name: "String" + } + }, + state: { + required: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled", + "Expired" + ] + } + }, + comment: { + serializedName: "properties.comment", + type: { + name: "String" + } + }, + suppressionAlertsScope: { + serializedName: "properties.suppressionAlertsScope", + type: { + name: "Composite", + className: "SuppressionAlertsScope" + } + } + } + } +}; + +export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessment", + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const ServerVulnerabilityAssessmentsList: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessmentsList", + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentsList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment" + } + } + } + } + } + } +}; + +export const SecurityAssessmentMetadataPartnerData: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadataPartnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData", + modelProperties: { + partnerName: { + required: true, + serializedName: "partnerName", + type: { + name: "String" + } + }, + productName: { + serializedName: "productName", + type: { + name: "String" + } + }, + secret: { + required: true, + serializedName: "secret", + type: { + name: "String" + } + } + } + } +}; + +export const SecurityAssessmentMetadataProperties: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadataProperties", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataProperties", + modelProperties: { + displayName: { + required: true, + serializedName: "displayName", + type: { + name: "String" + } + }, + policyDefinitionId: { + readOnly: true, + serializedName: "policyDefinitionId", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + remediationDescription: { + serializedName: "remediationDescription", + type: { + name: "String" + } + }, + categories: { + serializedName: "categories", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + severity: { + required: true, + serializedName: "severity", + type: { + name: "String" + } + }, + userImpact: { + serializedName: "userImpact", + type: { + name: "String" + } + }, + implementationEffort: { + serializedName: "implementationEffort", + type: { + name: "String" + } + }, + threats: { + serializedName: "threats", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + preview: { + serializedName: "preview", + type: { + name: "Boolean" + } + }, + assessmentType: { + required: true, + serializedName: "assessmentType", + type: { + name: "String" + } + }, + partnerData: { + serializedName: "partnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData" + } + } + } + } +}; + +export const SecurityAssessmentMetadata: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadata", type: { name: "Composite", - className: "UserDefinedResourcesProperties", + className: "SecurityAssessmentMetadata", modelProperties: { - query: { + ...Resource.type.modelProperties, + displayName: { required: true, - nullable: true, - serializedName: "query", + serializedName: "properties.displayName", type: { name: "String" } }, - querySubscriptions: { + policyDefinitionId: { + readOnly: true, + serializedName: "properties.policyDefinitionId", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + remediationDescription: { + serializedName: "properties.remediationDescription", + type: { + name: "String" + } + }, + categories: { + serializedName: "properties.categories", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + severity: { required: true, - nullable: true, - serializedName: "querySubscriptions", + serializedName: "properties.severity", + type: { + name: "String" + } + }, + userImpact: { + serializedName: "properties.userImpact", + type: { + name: "String" + } + }, + implementationEffort: { + serializedName: "properties.implementationEffort", + type: { + name: "String" + } + }, + threats: { + serializedName: "properties.threats", type: { name: "Sequence", element: { @@ -1080,35 +3428,52 @@ export const UserDefinedResourcesProperties: msRest.CompositeMapper = { } } } + }, + preview: { + serializedName: "properties.preview", + type: { + name: "Boolean" + } + }, + assessmentType: { + required: true, + serializedName: "properties.assessmentType", + type: { + name: "String" + } + }, + partnerData: { + serializedName: "properties.partnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData" + } } } } }; -export const RecommendationConfigurationProperties: msRest.CompositeMapper = { - serializedName: "RecommendationConfigurationProperties", +export const AssessmentStatus: msRest.CompositeMapper = { + serializedName: "AssessmentStatus", type: { name: "Composite", - className: "RecommendationConfigurationProperties", + className: "AssessmentStatus", modelProperties: { - recommendationType: { + code: { required: true, - serializedName: "recommendationType", + serializedName: "code", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + cause: { + serializedName: "cause", type: { name: "String" } }, - status: { - required: true, - serializedName: "status", - defaultValue: 'Enabled', + description: { + serializedName: "description", type: { name: "String" } @@ -1117,139 +3482,139 @@ export const RecommendationConfigurationProperties: msRest.CompositeMapper = { } }; -export const IoTSecuritySolutionModel: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionModel", +export const AssessmentLinks: msRest.CompositeMapper = { + serializedName: "AssessmentLinks", type: { name: "Composite", - className: "IoTSecuritySolutionModel", + className: "AssessmentLinks", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { + azurePortalUri: { readOnly: true, - serializedName: "name", + serializedName: "azurePortalUri", type: { name: "String" } - }, - type: { - readOnly: true, - serializedName: "type", + } + } + } +}; + +export const SecurityAssessmentPartnerData: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentPartnerData", + type: { + name: "Composite", + className: "SecurityAssessmentPartnerData", + modelProperties: { + partnerName: { + required: true, + serializedName: "partnerName", type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - serializedName: "location", + secret: { + required: true, + serializedName: "secret", type: { name: "String" } - }, - workspace: { + } + } + } +}; + +export const SecurityAssessment: msRest.CompositeMapper = { + serializedName: "SecurityAssessment", + type: { + name: "Composite", + className: "SecurityAssessment", + modelProperties: { + ...Resource.type.modelProperties, + resourceDetails: { required: true, - serializedName: "properties.workspace", + serializedName: "properties.resourceDetails", type: { - name: "String" + name: "Composite", + className: "ResourceDetails" } }, displayName: { - required: true, + readOnly: true, serializedName: "properties.displayName", type: { name: "String" } }, status: { + required: true, serializedName: "properties.status", - defaultValue: 'Enabled', type: { - name: "String" + name: "Composite", + className: "AssessmentStatus" } }, - exportProperty: { - serializedName: "properties.export", + additionalData: { + serializedName: "properties.additionalData", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "String" } } } }, - disabledDataSources: { - serializedName: "properties.disabledDataSources", + links: { + serializedName: "properties.links", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "AssessmentLinks" } }, - iotHubs: { - required: true, - serializedName: "properties.iotHubs", + metadata: { + serializedName: "properties.metadata", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SecurityAssessmentMetadataProperties" } }, - userDefinedResources: { - serializedName: "properties.userDefinedResources", + partnersData: { + serializedName: "properties.partnersData", type: { name: "Composite", - className: "UserDefinedResourcesProperties" + className: "SecurityAssessmentPartnerData" + } + } + } + } +}; + +export const ProtectionMode: msRest.CompositeMapper = { + serializedName: "ProtectionMode", + type: { + name: "Composite", + className: "ProtectionMode", + modelProperties: { + exe: { + serializedName: "exe", + type: { + name: "String" } }, - autoDiscoveredResources: { - readOnly: true, - serializedName: "properties.autoDiscoveredResources", + msi: { + serializedName: "msi", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - recommendationsConfiguration: { - serializedName: "properties.recommendationsConfiguration", + script: { + serializedName: "script", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendationConfigurationProperties" - } - } + name: "String" } }, - unmaskedIpLoggingStatus: { - serializedName: "properties.unmaskedIpLoggingStatus", - defaultValue: 'Disabled', + executable: { + serializedName: "executable", type: { name: "String" } @@ -1258,240 +3623,295 @@ export const IoTSecuritySolutionModel: msRest.CompositeMapper = { } }; -export const UpdateIotSecuritySolutionData: msRest.CompositeMapper = { - serializedName: "UpdateIotSecuritySolutionData", +export const AdaptiveApplicationControlIssueSummary: msRest.CompositeMapper = { + serializedName: "AdaptiveApplicationControlIssueSummary", type: { name: "Composite", - className: "UpdateIotSecuritySolutionData", + className: "AdaptiveApplicationControlIssueSummary", modelProperties: { - ...TagsResource.type.modelProperties, - userDefinedResources: { - serializedName: "properties.userDefinedResources", + issue: { + serializedName: "issue", type: { - name: "Composite", - className: "UserDefinedResourcesProperties" + name: "String" } }, - recommendationsConfiguration: { - serializedName: "properties.recommendationsConfiguration", + numberOfVms: { + serializedName: "numberOfVms", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendationConfigurationProperties" - } - } + name: "Number" } } } } }; -export const IoTSeverityMetrics: msRest.CompositeMapper = { - serializedName: "IoTSeverityMetrics", +export const VmRecommendation: msRest.CompositeMapper = { + serializedName: "VmRecommendation", type: { name: "Composite", - className: "IoTSeverityMetrics", + className: "VmRecommendation", modelProperties: { - high: { - serializedName: "high", + configurationStatus: { + serializedName: "configurationStatus", type: { - name: "Number" + name: "String" } }, - medium: { - serializedName: "medium", + recommendationAction: { + serializedName: "recommendationAction", type: { - name: "Number" + name: "String" } }, - low: { - serializedName: "low", + resourceId: { + serializedName: "resourceId", type: { - name: "Number" + name: "String" + } + }, + enforcementSupport: { + serializedName: "enforcementSupport", + type: { + name: "String" } } } } }; -export const IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionAnalyticsModelProperties_devicesMetricsItem", +export const PublisherInfo: msRest.CompositeMapper = { + serializedName: "PublisherInfo", type: { name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", + className: "PublisherInfo", modelProperties: { - date: { - serializedName: "date", + publisherName: { + serializedName: "publisherName", type: { - name: "DateTime" + name: "String" } }, - devicesMetrics: { - serializedName: "devicesMetrics", + productName: { + serializedName: "productName", type: { - name: "Composite", - className: "IoTSeverityMetrics" + name: "String" + } + }, + binaryName: { + serializedName: "binaryName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" } } } } }; -export const IoTSecurityAlertedDevice: msRest.CompositeMapper = { - serializedName: "IoTSecurityAlertedDevice", +export const UserRecommendation: msRest.CompositeMapper = { + serializedName: "UserRecommendation", type: { name: "Composite", - className: "IoTSecurityAlertedDevice", + className: "UserRecommendation", modelProperties: { - deviceId: { - readOnly: true, - serializedName: "deviceId", + username: { + serializedName: "username", type: { name: "String" } }, - alertsCount: { - readOnly: true, - serializedName: "alertsCount", + recommendationAction: { + serializedName: "recommendationAction", type: { - name: "Number" + name: "String" } } } } }; -export const IoTSecurityDeviceAlert: msRest.CompositeMapper = { - serializedName: "IoTSecurityDeviceAlert", +export const PathRecommendation: msRest.CompositeMapper = { + serializedName: "PathRecommendation", type: { name: "Composite", - className: "IoTSecurityDeviceAlert", + className: "PathRecommendation", modelProperties: { - alertDisplayName: { - readOnly: true, - serializedName: "alertDisplayName", + path: { + serializedName: "path", type: { name: "String" } }, - reportedSeverity: { - readOnly: true, - serializedName: "reportedSeverity", + action: { + serializedName: "action", type: { name: "String" } }, - alertsCount: { - readOnly: true, - serializedName: "alertsCount", + type: { + serializedName: "type", type: { - name: "Number" + name: "String" + } + }, + publisherInfo: { + serializedName: "publisherInfo", + type: { + name: "Composite", + className: "PublisherInfo" + } + }, + common: { + serializedName: "common", + type: { + name: "Boolean" + } + }, + userSids: { + serializedName: "userSids", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + usernames: { + serializedName: "usernames", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserRecommendation" + } + } + } + }, + fileType: { + serializedName: "fileType", + type: { + name: "String" + } + }, + configurationStatus: { + serializedName: "configurationStatus", + type: { + name: "String" } } } } }; -export const IoTSecurityDeviceRecommendation: msRest.CompositeMapper = { - serializedName: "IoTSecurityDeviceRecommendation", +export const AdaptiveApplicationControlGroup: msRest.CompositeMapper = { + serializedName: "AdaptiveApplicationControlGroup", type: { name: "Composite", - className: "IoTSecurityDeviceRecommendation", + className: "AdaptiveApplicationControlGroup", modelProperties: { - recommendationDisplayName: { + id: { readOnly: true, - serializedName: "recommendationDisplayName", + serializedName: "id", type: { name: "String" } }, - reportedSeverity: { + name: { readOnly: true, - serializedName: "reportedSeverity", + serializedName: "name", type: { name: "String" } }, - devicesCount: { + type: { readOnly: true, - serializedName: "devicesCount", + serializedName: "type", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const IoTSecuritySolutionAnalyticsModel: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionAnalyticsModel", - type: { - name: "Composite", - className: "IoTSecuritySolutionAnalyticsModel", - modelProperties: { - ...Resource.type.modelProperties, - metrics: { + }, + location: { readOnly: true, - serializedName: "properties.metrics", + serializedName: "location", + type: { + name: "String" + } + }, + enforcementMode: { + serializedName: "properties.enforcementMode", + type: { + name: "String" + } + }, + protectionMode: { + serializedName: "properties.protectionMode", type: { name: "Composite", - className: "IoTSeverityMetrics" + className: "ProtectionMode" } }, - unhealthyDeviceCount: { + configurationStatus: { readOnly: true, - serializedName: "properties.unhealthyDeviceCount", + serializedName: "properties.configurationStatus", type: { - name: "Number" + name: "String" } }, - devicesMetrics: { + recommendationStatus: { readOnly: true, - serializedName: "properties.devicesMetrics", + serializedName: "properties.recommendationStatus", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem" - } - } + name: "String" } }, - topAlertedDevices: { - serializedName: "properties.topAlertedDevices", + issues: { + readOnly: true, + serializedName: "properties.issues", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAlertedDevice" + className: "AdaptiveApplicationControlIssueSummary" } } } }, - mostPrevalentDeviceAlerts: { - serializedName: "properties.mostPrevalentDeviceAlerts", + sourceSystem: { + readOnly: true, + serializedName: "properties.sourceSystem", + type: { + name: "String" + } + }, + vmRecommendations: { + serializedName: "properties.vmRecommendations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityDeviceAlert" + className: "VmRecommendation" } } } }, - mostPrevalentDeviceRecommendations: { - serializedName: "properties.mostPrevalentDeviceRecommendations", + pathRecommendations: { + serializedName: "properties.pathRecommendations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityDeviceRecommendation" + className: "PathRecommendation" } } } @@ -1500,59 +3920,37 @@ export const IoTSecuritySolutionAnalyticsModel: msRest.CompositeMapper = { } }; -export const IoTSecuritySolutionAnalyticsModelList: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionAnalyticsModelList", +export const AdaptiveApplicationControlGroups: msRest.CompositeMapper = { + serializedName: "AdaptiveApplicationControlGroups", type: { name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelList", + className: "AdaptiveApplicationControlGroups", modelProperties: { value: { - required: true, serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecuritySolutionAnalyticsModel" + className: "AdaptiveApplicationControlGroup" } } } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedAlertProperties_topDevicesListItem", +export const Location: msRest.CompositeMapper = { + serializedName: "Location", type: { name: "Composite", - className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", + className: "Location", modelProperties: { - deviceId: { - readOnly: true, - serializedName: "deviceId", - type: { - name: "String" - } - }, - alertsCount: { - readOnly: true, - serializedName: "alertsCount", - type: { - name: "Number" - } - }, - lastOccurrence: { + location: { readOnly: true, - serializedName: "lastOccurrence", + serializedName: "location", type: { name: "String" } @@ -1561,137 +3959,225 @@ export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: msRest.Comp } }; -export const IoTSecurityAggregatedAlert: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedAlert", +export const Rule: msRest.CompositeMapper = { + serializedName: "Rule", type: { name: "Composite", - className: "IoTSecurityAggregatedAlert", + className: "Rule", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + name: { + serializedName: "name", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + direction: { + serializedName: "direction", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + destinationPort: { + serializedName: "destinationPort", type: { - name: "String" + name: "Number" } }, - tags: { - serializedName: "tags", + protocols: { + serializedName: "protocols", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "String" } } } }, - alertType: { - readOnly: true, - serializedName: "properties.alertType", + ipAddresses: { + serializedName: "ipAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - alertDisplayName: { - readOnly: true, - serializedName: "properties.alertDisplayName", + } + } + } +}; + +export const EffectiveNetworkSecurityGroups: msRest.CompositeMapper = { + serializedName: "EffectiveNetworkSecurityGroups", + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroups", + modelProperties: { + networkInterface: { + serializedName: "networkInterface", type: { name: "String" } }, - aggregatedDateUtc: { - readOnly: true, - serializedName: "properties.aggregatedDateUtc", + networkSecurityGroups: { + serializedName: "networkSecurityGroups", type: { - name: "Date" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - vendorName: { - readOnly: true, - serializedName: "properties.vendorName", + } + } + } +}; + +export const AdaptiveNetworkHardening: msRest.CompositeMapper = { + serializedName: "AdaptiveNetworkHardening", + type: { + name: "Composite", + className: "AdaptiveNetworkHardening", + modelProperties: { + ...Resource.type.modelProperties, + rules: { + serializedName: "properties.rules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rule" + } + } } }, - reportedSeverity: { - readOnly: true, - serializedName: "properties.reportedSeverity", + rulesCalculationTime: { + serializedName: "properties.rulesCalculationTime", type: { - name: "String" + name: "DateTime" } }, - remediationSteps: { - readOnly: true, - serializedName: "properties.remediationSteps", + effectiveNetworkSecurityGroups: { + serializedName: "properties.effectiveNetworkSecurityGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroups" + } + } } - }, - description: { - readOnly: true, - serializedName: "properties.description", + } + } + } +}; + +export const AdaptiveNetworkHardeningEnforceRequest: msRest.CompositeMapper = { + serializedName: "AdaptiveNetworkHardeningEnforceRequest", + type: { + name: "Composite", + className: "AdaptiveNetworkHardeningEnforceRequest", + modelProperties: { + rules: { + required: true, + serializedName: "rules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rule" + } + } } }, - count: { + networkSecurityGroups: { + required: true, + serializedName: "networkSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ConnectedResource: msRest.CompositeMapper = { + serializedName: "ConnectedResource", + type: { + name: "Composite", + className: "ConnectedResource", + modelProperties: { + connectedResourceId: { readOnly: true, - serializedName: "properties.count", + serializedName: "connectedResourceId", type: { - name: "Number" + name: "String" } }, - effectedResourceType: { + tcpPorts: { readOnly: true, - serializedName: "properties.effectedResourceType", + serializedName: "tcpPorts", type: { name: "String" } }, - systemSource: { + udpPorts: { readOnly: true, - serializedName: "properties.systemSource", + serializedName: "udpPorts", type: { name: "String" } - }, - actionTaken: { + } + } + } +}; + +export const ConnectableResource: msRest.CompositeMapper = { + serializedName: "ConnectableResource", + type: { + name: "Composite", + className: "ConnectableResource", + modelProperties: { + id: { readOnly: true, - serializedName: "properties.actionTaken", + serializedName: "id", type: { name: "String" } }, - logAnalyticsQuery: { + inboundConnectedResources: { readOnly: true, - serializedName: "properties.logAnalyticsQuery", + serializedName: "inboundConnectedResources", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedResource" + } + } } }, - topDevicesList: { + outboundConnectedResources: { readOnly: true, - serializedName: "properties.topDevicesList", + serializedName: "outboundConnectedResources", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem" + className: "ConnectedResource" } } } @@ -1700,11 +4186,11 @@ export const IoTSecurityAggregatedAlert: msRest.CompositeMapper = { } }; -export const IoTSecurityAggregatedRecommendation: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedRecommendation", +export const AllowedConnectionsResource: msRest.CompositeMapper = { + serializedName: "AllowedConnectionsResource", type: { name: "Composite", - className: "IoTSecurityAggregatedRecommendation", + className: "AllowedConnectionsResource", modelProperties: { id: { readOnly: true, @@ -1727,555 +4213,735 @@ export const IoTSecurityAggregatedRecommendation: msRest.CompositeMapper = { name: "String" } }, - tags: { - serializedName: "tags", + location: { + readOnly: true, + serializedName: "location", type: { - name: "Dictionary", - value: { + name: "String" + } + }, + calculatedDateTime: { + readOnly: true, + serializedName: "properties.calculatedDateTime", + type: { + name: "DateTime" + } + }, + connectableResources: { + readOnly: true, + serializedName: "properties.connectableResources", + type: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "ConnectableResource" } } } - }, - recommendationName: { - serializedName: "properties.recommendationName", + } + } + } +}; + +export const TopologySingleResourceParent: msRest.CompositeMapper = { + serializedName: "TopologySingleResourceParent", + type: { + name: "Composite", + className: "TopologySingleResourceParent", + modelProperties: { + resourceId: { + readOnly: true, + serializedName: "resourceId", type: { name: "String" } - }, - recommendationDisplayName: { + } + } + } +}; + +export const TopologySingleResourceChild: msRest.CompositeMapper = { + serializedName: "TopologySingleResourceChild", + type: { + name: "Composite", + className: "TopologySingleResourceChild", + modelProperties: { + resourceId: { readOnly: true, - serializedName: "properties.recommendationDisplayName", + serializedName: "resourceId", type: { name: "String" } - }, - description: { + } + } + } +}; + +export const TopologySingleResource: msRest.CompositeMapper = { + serializedName: "TopologySingleResource", + type: { + name: "Composite", + className: "TopologySingleResource", + modelProperties: { + resourceId: { readOnly: true, - serializedName: "properties.description", + serializedName: "resourceId", type: { name: "String" } }, - recommendationTypeId: { + severity: { readOnly: true, - serializedName: "properties.recommendationTypeId", + serializedName: "severity", type: { name: "String" } }, - detectedBy: { + recommendationsExist: { readOnly: true, - serializedName: "properties.detectedBy", + serializedName: "recommendationsExist", type: { - name: "String" + name: "Boolean" } }, - remediationSteps: { + networkZones: { readOnly: true, - serializedName: "properties.remediationSteps", + serializedName: "networkZones", type: { name: "String" } }, - reportedSeverity: { + topologyScore: { readOnly: true, - serializedName: "properties.reportedSeverity", + serializedName: "topologyScore", type: { - name: "String" + name: "Number" } }, - healthyDevices: { + location: { readOnly: true, - serializedName: "properties.healthyDevices", + serializedName: "location", type: { - name: "Number" + name: "String" } }, - unhealthyDeviceCount: { + parents: { readOnly: true, - serializedName: "properties.unhealthyDeviceCount", + serializedName: "parents", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResourceParent" + } + } } }, - logAnalyticsQuery: { + children: { readOnly: true, - serializedName: "properties.logAnalyticsQuery", + serializedName: "children", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResourceChild" + } + } } } } } }; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "OperationDisplay", +export const TopologyResource: msRest.CompositeMapper = { + serializedName: "TopologyResource", type: { name: "Composite", - className: "OperationDisplay", + className: "TopologyResource", modelProperties: { - provider: { + id: { readOnly: true, - serializedName: "provider", + serializedName: "id", type: { name: "String" } }, - resource: { + name: { readOnly: true, - serializedName: "resource", + serializedName: "name", type: { name: "String" } }, - operation: { + type: { readOnly: true, - serializedName: "operation", + serializedName: "type", type: { name: "String" } }, - description: { + location: { readOnly: true, - serializedName: "description", + serializedName: "location", type: { name: "String" } + }, + calculatedDateTime: { + readOnly: true, + serializedName: "properties.calculatedDateTime", + type: { + name: "DateTime" + } + }, + topologyResources: { + readOnly: true, + serializedName: "properties.topologyResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResource" + } + } + } } } } }; -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", +export const JitNetworkAccessPortRule: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPortRule", type: { name: "Composite", - className: "Operation", + className: "JitNetworkAccessPortRule", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + number: { + required: true, + serializedName: "number", + type: { + name: "Number" + } + }, + protocol: { + required: true, + serializedName: "protocol", type: { name: "String" } }, - origin: { - readOnly: true, - serializedName: "origin", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String" } }, - display: { - serializedName: "display", + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { - name: "Composite", - className: "OperationDisplay" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + maxRequestAccessDuration: { + required: true, + serializedName: "maxRequestAccessDuration", + type: { + name: "String" } } } } }; -export const SecurityTaskParameters: msRest.CompositeMapper = { - serializedName: "SecurityTaskParameters", +export const JitNetworkAccessPolicyVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyVirtualMachine", type: { name: "Composite", - className: "SecurityTaskParameters", + className: "JitNetworkAccessPolicyVirtualMachine", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + ports: { + required: true, + serializedName: "ports", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPortRule" + } + } + } + }, + publicIpAddress: { + serializedName: "publicIpAddress", type: { name: "String" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const SecurityTask: msRest.CompositeMapper = { - serializedName: "SecurityTask", +export const JitNetworkAccessRequestPort: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequestPort", type: { name: "Composite", - className: "SecurityTask", + className: "JitNetworkAccessRequestPort", modelProperties: { - ...Resource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", + number: { + required: true, + serializedName: "number", type: { - name: "String" + name: "Number" } }, - creationTimeUtc: { - readOnly: true, - serializedName: "properties.creationTimeUtc", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { - name: "DateTime" + name: "String" } }, - securityTaskParameters: { - serializedName: "properties.securityTaskParameters", + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { - name: "Composite", - className: "SecurityTaskParameters", - additionalProperties: { + name: "Sequence", + element: { type: { - name: "Object" + name: "String" } } } }, - lastStateChangeTimeUtc: { - readOnly: true, - serializedName: "properties.lastStateChangeTimeUtc", + endTimeUtc: { + required: true, + serializedName: "endTimeUtc", type: { name: "DateTime" } }, - subState: { - readOnly: true, - serializedName: "properties.subState", + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } + }, + statusReason: { + required: true, + serializedName: "statusReason", type: { name: "String" } + }, + mappedPort: { + serializedName: "mappedPort", + type: { + name: "Number" + } } } } }; -export const AutoProvisioningSetting: msRest.CompositeMapper = { - serializedName: "AutoProvisioningSetting", +export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequestVirtualMachine", type: { name: "Composite", - className: "AutoProvisioningSetting", + className: "JitNetworkAccessRequestVirtualMachine", modelProperties: { - ...Resource.type.modelProperties, - autoProvision: { + id: { required: true, - serializedName: "properties.autoProvision", + serializedName: "id", type: { name: "String" } + }, + ports: { + required: true, + serializedName: "ports", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequestPort" + } + } + } } } } }; -export const ComplianceSegment: msRest.CompositeMapper = { - serializedName: "ComplianceSegment", +export const JitNetworkAccessRequest: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequest", type: { name: "Composite", - className: "ComplianceSegment", + className: "JitNetworkAccessRequest", modelProperties: { - segmentType: { - readOnly: true, - serializedName: "segmentType", + virtualMachines: { + required: true, + serializedName: "virtualMachines", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequestVirtualMachine" + } + } + } + }, + startTimeUtc: { + required: true, + serializedName: "startTimeUtc", + type: { + name: "DateTime" + } + }, + requestor: { + required: true, + serializedName: "requestor", type: { name: "String" } }, - percentage: { - readOnly: true, - serializedName: "percentage", + justification: { + serializedName: "justification", type: { - name: "Number" + name: "String" } } } } }; -export const Compliance: msRest.CompositeMapper = { - serializedName: "Compliance", +export const JitNetworkAccessPolicy: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicy", type: { name: "Composite", - className: "Compliance", + className: "JitNetworkAccessPolicy", modelProperties: { - ...Resource.type.modelProperties, - assessmentTimestampUtcDate: { + id: { readOnly: true, - serializedName: "properties.assessmentTimestampUtcDate", + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - resourceCount: { + name: { readOnly: true, - serializedName: "properties.resourceCount", + serializedName: "name", type: { - name: "Number" + name: "String" } }, - assessmentResult: { + type: { readOnly: true, - serializedName: "properties.assessmentResult", + serializedName: "type", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + virtualMachines: { + required: true, + serializedName: "properties.virtualMachines", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComplianceSegment" + className: "JitNetworkAccessPolicyVirtualMachine" + } + } + } + }, + requests: { + serializedName: "properties.requests", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequest" } } } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } } } } }; -export const SensitivityLabel: msRest.CompositeMapper = { - serializedName: "SensitivityLabel", +export const JitNetworkAccessPolicyInitiatePort: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiatePort", type: { name: "Composite", - className: "SensitivityLabel", + className: "JitNetworkAccessPolicyInitiatePort", modelProperties: { - displayName: { - serializedName: "displayName", + number: { + required: true, + serializedName: "number", type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String" } }, - rank: { - serializedName: "rank", + endTimeUtc: { + required: true, + serializedName: "endTimeUtc", type: { - name: "Enum", - allowedValues: [ - "None", - "Low", - "Medium", - "High", - "Critical" - ] + name: "DateTime" } - }, - order: { - serializedName: "order", + } + } + } +}; + +export const JitNetworkAccessPolicyInitiateVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiateVirtualMachine", + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiateVirtualMachine", + modelProperties: { + id: { + required: true, + serializedName: "id", type: { - name: "Number" + name: "String" } }, - enabled: { - serializedName: "enabled", + ports: { + required: true, + serializedName: "ports", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiatePort" + } + } } } } } }; -export const InformationProtectionKeyword: msRest.CompositeMapper = { - serializedName: "InformationProtectionKeyword", +export const JitNetworkAccessPolicyInitiateRequest: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiateRequest", type: { name: "Composite", - className: "InformationProtectionKeyword", + className: "JitNetworkAccessPolicyInitiateRequest", modelProperties: { - pattern: { - serializedName: "pattern", - type: { - name: "String" - } - }, - custom: { - serializedName: "custom", - type: { - name: "Boolean" - } - }, - canBeNumeric: { - serializedName: "canBeNumeric", + virtualMachines: { + required: true, + serializedName: "virtualMachines", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiateVirtualMachine" + } + } } }, - excluded: { - serializedName: "excluded", + justification: { + serializedName: "justification", type: { - name: "Boolean" + name: "String" } } } } }; -export const InformationType: msRest.CompositeMapper = { - serializedName: "InformationType", +export const DiscoveredSecuritySolution: msRest.CompositeMapper = { + serializedName: "DiscoveredSecuritySolution", type: { name: "Composite", - className: "InformationType", + className: "DiscoveredSecuritySolution", modelProperties: { - displayName: { - serializedName: "displayName", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - description: { - serializedName: "description", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - order: { - serializedName: "order", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Number" + name: "String" } }, - recommendedLabelId: { - serializedName: "recommendedLabelId", + location: { + readOnly: true, + serializedName: "location", type: { - name: "Uuid" + name: "String" } }, - enabled: { - serializedName: "enabled", + securityFamily: { + required: true, + serializedName: "properties.securityFamily", type: { - name: "Boolean" + name: "String" } }, - custom: { - serializedName: "custom", + offer: { + required: true, + serializedName: "properties.offer", type: { - name: "Boolean" + name: "String" } }, - keywords: { - serializedName: "keywords", + publisher: { + required: true, + serializedName: "properties.publisher", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InformationProtectionKeyword" - } - } + name: "String" + } + }, + sku: { + required: true, + serializedName: "properties.sku", + type: { + name: "String" } } } } }; -export const InformationProtectionPolicy: msRest.CompositeMapper = { - serializedName: "InformationProtectionPolicy", +export const SecuritySolutionsReferenceData: msRest.CompositeMapper = { + serializedName: "securitySolutionsReferenceData", type: { name: "Composite", - className: "InformationProtectionPolicy", + className: "SecuritySolutionsReferenceData", modelProperties: { - ...Resource.type.modelProperties, - lastModifiedUtc: { + id: { readOnly: true, - serializedName: "properties.lastModifiedUtc", + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - version: { + name: { readOnly: true, - serializedName: "properties.version", + serializedName: "name", type: { name: "String" } }, - labels: { - serializedName: "properties.labels", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } + name: "String" } }, - informationTypes: { - serializedName: "properties.informationTypes", + location: { + readOnly: true, + serializedName: "location", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "InformationType" - } - } + name: "String" } - } - } - } -}; - -export const SecurityContact: msRest.CompositeMapper = { - serializedName: "SecurityContact", - type: { - name: "Composite", - className: "SecurityContact", - modelProperties: { - ...Resource.type.modelProperties, - email: { + }, + securityFamily: { required: true, - serializedName: "properties.email", + serializedName: "properties.securityFamily", type: { name: "String" } }, - phone: { - serializedName: "properties.phone", + alertVendorName: { + required: true, + serializedName: "properties.alertVendorName", type: { name: "String" } }, - alertNotifications: { + packageInfoUrl: { required: true, - serializedName: "properties.alertNotifications", + serializedName: "properties.packageInfoUrl", type: { name: "String" } }, - alertsToAdmins: { + productName: { required: true, - serializedName: "properties.alertsToAdmins", + serializedName: "properties.productName", type: { name: "String" } - } - } - } -}; - -export const WorkspaceSetting: msRest.CompositeMapper = { - serializedName: "WorkspaceSetting", - type: { - name: "Composite", - className: "WorkspaceSetting", - modelProperties: { - ...Resource.type.modelProperties, - workspaceId: { + }, + publisher: { required: true, - serializedName: "properties.workspaceId", + serializedName: "properties.publisher", type: { name: "String" } }, - scope: { + publisherDisplayName: { required: true, - serializedName: "properties.scope", + serializedName: "properties.publisherDisplayName", + type: { + name: "String" + } + }, + template: { + required: true, + serializedName: "properties.template", type: { name: "String" } @@ -2284,232 +4950,245 @@ export const WorkspaceSetting: msRest.CompositeMapper = { } }; -export const RegulatoryComplianceStandard: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceStandard", +export const SecuritySolutionsReferenceDataList: msRest.CompositeMapper = { + serializedName: "securitySolutionsReferenceDataList", type: { name: "Composite", - className: "RegulatoryComplianceStandard", + className: "SecuritySolutionsReferenceDataList", modelProperties: { - ...Resource.type.modelProperties, - state: { - serializedName: "properties.state", - type: { - name: "String" - } - }, - passedControls: { - readOnly: true, - serializedName: "properties.passedControls", - type: { - name: "Number" - } - }, - failedControls: { - readOnly: true, - serializedName: "properties.failedControls", - type: { - name: "Number" - } - }, - skippedControls: { - readOnly: true, - serializedName: "properties.skippedControls", - type: { - name: "Number" - } - }, - unsupportedControls: { - readOnly: true, - serializedName: "properties.unsupportedControls", + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecuritySolutionsReferenceData" + } + } } } } } }; -export const RegulatoryComplianceControl: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceControl", +export const ExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolution", type: { name: "Composite", - className: "RegulatoryComplianceControl", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "ExternalSecuritySolution", + className: "ExternalSecuritySolution", modelProperties: { - ...Resource.type.modelProperties, - description: { + id: { readOnly: true, - serializedName: "properties.description", + serializedName: "id", type: { name: "String" } - }, - state: { - serializedName: "properties.state", + }, + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - passedAssessments: { + type: { readOnly: true, - serializedName: "properties.passedAssessments", + serializedName: "type", type: { - name: "Number" + name: "String" } }, - failedAssessments: { + location: { readOnly: true, - serializedName: "properties.failedAssessments", + serializedName: "location", type: { - name: "Number" + name: "String" } }, - skippedAssessments: { - readOnly: true, - serializedName: "properties.skippedAssessments", + kind: { + required: true, + serializedName: "kind", type: { - name: "Number" + name: "String" } } } } }; -export const RegulatoryComplianceAssessment: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceAssessment", +export const ExternalSecuritySolutionProperties: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolutionProperties", type: { name: "Composite", - className: "RegulatoryComplianceAssessment", + className: "ExternalSecuritySolutionProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { - readOnly: true, - serializedName: "properties.description", + deviceVendor: { + serializedName: "deviceVendor", type: { name: "String" } }, - assessmentType: { - readOnly: true, - serializedName: "properties.assessmentType", + deviceType: { + serializedName: "deviceType", type: { name: "String" } }, - assessmentDetailsLink: { - readOnly: true, - serializedName: "properties.assessmentDetailsLink", + workspace: { + serializedName: "workspace", type: { - name: "String" + name: "Composite", + className: "ConnectedWorkspace" } - }, - state: { - serializedName: "properties.state", + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + +export const CefSolutionProperties: msRest.CompositeMapper = { + serializedName: "CefSolutionProperties", + type: { + name: "Composite", + className: "CefSolutionProperties", + modelProperties: { + ...ExternalSecuritySolutionProperties.type.modelProperties, + hostname: { + serializedName: "hostname", type: { name: "String" } }, - passedResources: { - readOnly: true, - serializedName: "properties.passedResources", - type: { - name: "Number" - } - }, - failedResources: { - readOnly: true, - serializedName: "properties.failedResources", + agent: { + serializedName: "agent", type: { - name: "Number" + name: "String" } }, - skippedResources: { - readOnly: true, - serializedName: "properties.skippedResources", + lastEventReceived: { + serializedName: "lastEventReceived", type: { - name: "Number" + name: "String" } - }, - unsupportedResources: { - readOnly: true, - serializedName: "properties.unsupportedResources", + } + }, + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + } +}; + +export const CefExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "CEF", + type: { + name: "Composite", + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, + uberParent: "ExternalSecuritySolution", + className: "CefExternalSecuritySolution", + modelProperties: { + ...ExternalSecuritySolution.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "CefSolutionProperties", + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties } } } } }; -export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessment", +export const AtaSolutionProperties: msRest.CompositeMapper = { + serializedName: "AtaSolutionProperties", type: { name: "Composite", - className: "ServerVulnerabilityAssessment", + className: "AtaSolutionProperties", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + ...ExternalSecuritySolutionProperties.type.modelProperties, + lastEventReceived: { + serializedName: "lastEventReceived", type: { name: "String" } } + }, + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + } +}; + +export const AtaExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "ATA", + type: { + name: "Composite", + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, + uberParent: "ExternalSecuritySolution", + className: "AtaExternalSecuritySolution", + modelProperties: { + ...ExternalSecuritySolution.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AtaSolutionProperties", + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + } + } } } }; -export const ServerVulnerabilityAssessmentsList: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessmentsList", +export const ConnectedWorkspace: msRest.CompositeMapper = { + serializedName: "ConnectedWorkspace", type: { name: "Composite", - className: "ServerVulnerabilityAssessmentsList", + className: "ConnectedWorkspace", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment" - } - } + name: "String" } } } } }; -export const SubAssessmentStatus: msRest.CompositeMapper = { - serializedName: "SubAssessmentStatus", +export const AadSolutionProperties: msRest.CompositeMapper = { + serializedName: "AadSolutionProperties", type: { name: "Composite", - className: "SubAssessmentStatus", + className: "AadSolutionProperties", modelProperties: { - code: { - readOnly: true, - serializedName: "code", + deviceVendor: { + serializedName: "deviceVendor", type: { name: "String" } }, - cause: { - readOnly: true, - serializedName: "cause", + deviceType: { + serializedName: "deviceType", type: { name: "String" } }, - description: { - readOnly: true, - serializedName: "description", + workspace: { + serializedName: "workspace", type: { - name: "String" + name: "Composite", + className: "ConnectedWorkspace" } }, - severity: { - readOnly: true, - serializedName: "severity", + connectivityState: { + serializedName: "connectivityState", type: { name: "String" } @@ -2518,42 +5197,34 @@ export const SubAssessmentStatus: msRest.CompositeMapper = { } }; -export const ResourceDetails: msRest.CompositeMapper = { - serializedName: "ResourceDetails", +export const AadExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "AAD", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "source", - clientName: "source" - }, - uberParent: "ResourceDetails", - className: "ResourceDetails", + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, + uberParent: "ExternalSecuritySolution", + className: "AadExternalSecuritySolution", modelProperties: { - source: { - required: true, - serializedName: "source", + ...ExternalSecuritySolution.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "AadSolutionProperties" } } } } }; -export const AdditionalData: msRest.CompositeMapper = { - serializedName: "AdditionalData", +export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolutionKind", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "assessedResourceType", - clientName: "assessedResourceType" - }, - uberParent: "AdditionalData", - className: "AdditionalData", + className: "ExternalSecuritySolutionKind1", modelProperties: { - assessedResourceType: { - required: true, - serializedName: "assessedResourceType", + kind: { + serializedName: "kind", type: { name: "String" } @@ -2562,20 +5233,29 @@ export const AdditionalData: msRest.CompositeMapper = { } }; -export const SecuritySubAssessment: msRest.CompositeMapper = { - serializedName: "SecuritySubAssessment", +export const AadConnectivityState1: msRest.CompositeMapper = { + serializedName: "AadConnectivityState", type: { name: "Composite", - className: "SecuritySubAssessment", + className: "AadConnectivityState1", modelProperties: { - ...Resource.type.modelProperties, - securitySubAssessmentId: { - readOnly: true, - serializedName: "properties.id", + connectivityState: { + serializedName: "connectivityState", type: { name: "String" } - }, + } + } + } +}; + +export const SecureScoreItem: msRest.CompositeMapper = { + serializedName: "SecureScoreItem", + type: { + name: "Composite", + className: "SecureScoreItem", + modelProperties: { + ...Resource.type.modelProperties, displayName: { readOnly: true, serializedName: "properties.displayName", @@ -2583,85 +5263,102 @@ export const SecuritySubAssessment: msRest.CompositeMapper = { name: "String" } }, - status: { - serializedName: "properties.status", - type: { - name: "Composite", - className: "SubAssessmentStatus" - } - }, - remediation: { + max: { readOnly: true, - serializedName: "properties.remediation", + serializedName: "properties.score.max", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - impact: { + current: { readOnly: true, - serializedName: "properties.impact", + serializedName: "properties.score.current", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - category: { + percentage: { readOnly: true, - serializedName: "properties.category", + serializedName: "properties.score.percentage", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - description: { + weight: { readOnly: true, - serializedName: "properties.description", + serializedName: "properties.weight", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } - }, - timeGenerated: { + } + } + } +}; + +export const SecureScoreControlScore: msRest.CompositeMapper = { + serializedName: "SecureScoreControlScore", + type: { + name: "Composite", + className: "SecureScoreControlScore", + modelProperties: { + max: { readOnly: true, - serializedName: "properties.timeGenerated", + serializedName: "max", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, type: { - name: "DateTime" + name: "Number" } }, - resourceDetails: { - serializedName: "properties.resourceDetails", + current: { + readOnly: true, + serializedName: "current", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, type: { - name: "Composite", - className: "ResourceDetails" + name: "Number" } }, - additionalData: { - serializedName: "properties.additionalData", + percentage: { + readOnly: true, + serializedName: "percentage", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, type: { - name: "Composite", - className: "AdditionalData" + name: "Number" } } } } }; -export const SqlServerVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "SqlServerVulnerability", +export const SecureScoreControlDefinitionSource: msRest.CompositeMapper = { + serializedName: "SecureScoreControlDefinitionSource", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "SqlServerVulnerabilityProperties", + className: "SecureScoreControlDefinitionSource", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - query: { - readOnly: true, - serializedName: "query", + sourceType: { + serializedName: "sourceType", type: { name: "String" } @@ -2670,271 +5367,228 @@ export const SqlServerVulnerabilityProperties: msRest.CompositeMapper = { } }; -export const CVSS: msRest.CompositeMapper = { - serializedName: "CVSS", +export const AzureResourceLink: msRest.CompositeMapper = { + serializedName: "AzureResourceLink", type: { name: "Composite", - className: "CVSS", + className: "AzureResourceLink", modelProperties: { - base: { + id: { readOnly: true, - serializedName: "base", + serializedName: "id", type: { - name: "Number" + name: "String" } } } } }; -export const CVE: msRest.CompositeMapper = { - serializedName: "CVE", +export const SecureScoreControlDefinitionItem: msRest.CompositeMapper = { + serializedName: "SecureScoreControlDefinitionItem", type: { name: "Composite", - className: "CVE", + className: "SecureScoreControlDefinitionItem", modelProperties: { - title: { + ...Resource.type.modelProperties, + displayName: { readOnly: true, - serializedName: "title", + serializedName: "properties.displayName", type: { name: "String" } }, - link: { + description: { readOnly: true, - serializedName: "link", + serializedName: "properties.description", + constraints: { + MaxLength: 256 + }, type: { name: "String" } - } - } - } -}; - -export const VendorReference: msRest.CompositeMapper = { - serializedName: "VendorReference", - type: { - name: "Composite", - className: "VendorReference", - modelProperties: { - title: { + }, + maxScore: { readOnly: true, - serializedName: "title", + serializedName: "properties.maxScore", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - link: { + source: { readOnly: true, - serializedName: "link", + serializedName: "properties.source", type: { - name: "String" + name: "Composite", + className: "SecureScoreControlDefinitionSource" + } + }, + assessmentDefinitions: { + readOnly: true, + serializedName: "properties.assessmentDefinitions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureResourceLink" + } + } } } } } }; -export const ContainerRegistryVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "ContainerRegistryVulnerability", +export const SecureScoreControlDetails: msRest.CompositeMapper = { + serializedName: "SecureScoreControlDetails", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "ContainerRegistryVulnerabilityProperties", + className: "SecureScoreControlDetails", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { + ...Resource.type.modelProperties, + displayName: { readOnly: true, - serializedName: "type", + serializedName: "properties.displayName", type: { name: "String" } }, - cvss: { + max: { readOnly: true, - serializedName: "cvss", + serializedName: "properties.score.max", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "CVSS" - } - } + name: "Number" } }, - patchable: { + current: { readOnly: true, - serializedName: "patchable", + serializedName: "properties.score.current", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "Boolean" + name: "Number" } }, - cve: { + percentage: { readOnly: true, - serializedName: "cve", + serializedName: "properties.score.percentage", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CVE" - } - } + name: "Number" } }, - publishedTime: { + healthyResourceCount: { readOnly: true, - serializedName: "publishedTime", + serializedName: "properties.healthyResourceCount", type: { - name: "DateTime" + name: "Number" } }, - vendorReferences: { + unhealthyResourceCount: { readOnly: true, - serializedName: "vendorReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VendorReference" - } - } + serializedName: "properties.unhealthyResourceCount", + type: { + name: "Number" } }, - repositoryName: { + notApplicableResourceCount: { readOnly: true, - serializedName: "repositoryName", + serializedName: "properties.notApplicableResourceCount", type: { - name: "String" + name: "Number" } }, - imageDigest: { + weight: { readOnly: true, - serializedName: "imageDigest", + serializedName: "properties.weight", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" + } + }, + definition: { + serializedName: "properties.definition", + type: { + name: "Composite", + className: "SecureScoreControlDefinitionItem" } } } } }; -export const ServerVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessment", +export const SecuritySolution: msRest.CompositeMapper = { + serializedName: "SecuritySolution", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "ServerVulnerabilityProperties", + className: "SecuritySolution", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { + id: { readOnly: true, - serializedName: "type", + serializedName: "id", type: { name: "String" } }, - cvss: { - readOnly: true, - serializedName: "cvss", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "CVSS" - } - } - } - }, - patchable: { - readOnly: true, - serializedName: "patchable", - type: { - name: "Boolean" - } - }, - cve: { + name: { readOnly: true, - serializedName: "cve", + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CVE" - } - } + name: "String" } }, - threat: { + type: { readOnly: true, - serializedName: "threat", + serializedName: "type", type: { name: "String" } }, - publishedTime: { + location: { readOnly: true, - serializedName: "publishedTime", + serializedName: "location", type: { - name: "DateTime" + name: "String" } }, - vendorReferences: { - readOnly: true, - serializedName: "vendorReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VendorReference" - } - } - } - } - } - } -}; - -export const OnPremiseResourceDetails: msRest.CompositeMapper = { - serializedName: "OnPremise", - type: { - name: "Composite", - polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, - uberParent: "ResourceDetails", - className: "OnPremiseResourceDetails", - modelProperties: { - ...ResourceDetails.type.modelProperties, - workspaceId: { + securityFamily: { required: true, - serializedName: "workspaceId", + serializedName: "properties.securityFamily", type: { name: "String" } }, - vmuuid: { + provisioningState: { required: true, - serializedName: "vmuuid", + serializedName: "properties.provisioningState", type: { name: "String" } }, - sourceComputerId: { + template: { required: true, - serializedName: "sourceComputerId", + serializedName: "properties.template", type: { name: "String" } }, - machineName: { + protectionStatus: { required: true, - serializedName: "machineName", + serializedName: "properties.protectionStatus", type: { name: "String" } @@ -2943,18 +5597,20 @@ export const OnPremiseResourceDetails: msRest.CompositeMapper = { } }; -export const AzureResourceDetails: msRest.CompositeMapper = { - serializedName: "Azure", +export const ProxyServerProperties: msRest.CompositeMapper = { + serializedName: "ProxyServerProperties", type: { name: "Composite", - polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, - uberParent: "ResourceDetails", - className: "AzureResourceDetails", + className: "ProxyServerProperties", modelProperties: { - ...ResourceDetails.type.modelProperties, - id: { - readOnly: true, - serializedName: "id", + ip: { + serializedName: "ip", + type: { + name: "String" + } + }, + port: { + serializedName: "port", type: { name: "String" } @@ -2963,20 +5619,20 @@ export const AzureResourceDetails: msRest.CompositeMapper = { } }; -export const AutomationScope: msRest.CompositeMapper = { - serializedName: "AutomationScope", +export const ServicePrincipalProperties: msRest.CompositeMapper = { + serializedName: "ServicePrincipalProperties", type: { name: "Composite", - className: "AutomationScope", + className: "ServicePrincipalProperties", modelProperties: { - description: { - serializedName: "description", + applicationId: { + serializedName: "applicationId", type: { name: "String" } }, - scopePath: { - serializedName: "scopePath", + secret: { + serializedName: "secret", type: { name: "String" } @@ -2985,220 +5641,148 @@ export const AutomationScope: msRest.CompositeMapper = { } }; -export const AutomationTriggeringRule: msRest.CompositeMapper = { - serializedName: "AutomationTriggeringRule", +export const HybridComputeSettingsProperties: msRest.CompositeMapper = { + serializedName: "HybridComputeSettingsProperties", type: { name: "Composite", - className: "AutomationTriggeringRule", + className: "HybridComputeSettingsProperties", modelProperties: { - propertyJPath: { - serializedName: "propertyJPath", + hybridComputeProvisioningState: { + readOnly: true, + serializedName: "hybridComputeProvisioningState", type: { name: "String" } }, - propertyType: { - serializedName: "propertyType", + autoProvision: { + required: true, + serializedName: "autoProvision", type: { name: "String" } }, - expectedValue: { - serializedName: "expectedValue", + resourceGroupName: { + serializedName: "resourceGroupName", type: { name: "String" } }, - operator: { - serializedName: "operator", + region: { + serializedName: "region", type: { name: "String" } - } - } - } -}; - -export const AutomationRuleSet: msRest.CompositeMapper = { - serializedName: "AutomationRuleSet", - type: { - name: "Composite", - className: "AutomationRuleSet", - modelProperties: { - rules: { - serializedName: "rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationTriggeringRule" - } - } - } - } - } - } -}; - -export const AutomationSource: msRest.CompositeMapper = { - serializedName: "AutomationSource", - type: { - name: "Composite", - className: "AutomationSource", - modelProperties: { - eventSource: { - serializedName: "eventSource", + }, + proxyServer: { + serializedName: "proxyServer", type: { - name: "String" + name: "Composite", + className: "ProxyServerProperties" } }, - ruleSets: { - serializedName: "ruleSets", + servicePrincipal: { + serializedName: "servicePrincipal", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationRuleSet" - } - } + name: "Composite", + className: "ServicePrincipalProperties" } } } } }; -export const AutomationAction: msRest.CompositeMapper = { - serializedName: "AutomationAction", +export const AuthenticationDetailsProperties: msRest.CompositeMapper = { + serializedName: "AuthenticationDetailsProperties", type: { name: "Composite", polymorphicDiscriminator: { - serializedName: "actionType", - clientName: "actionType" + serializedName: "authenticationType", + clientName: "authenticationType" }, - uberParent: "AutomationAction", - className: "AutomationAction", - modelProperties: { - actionType: { - required: true, - serializedName: "actionType", - type: { - name: "String" - } - } - } - } -}; - -export const Automation: msRest.CompositeMapper = { - serializedName: "Automation", - type: { - name: "Composite", - className: "Automation", + uberParent: "AuthenticationDetailsProperties", + className: "AuthenticationDetailsProperties", modelProperties: { - ...TrackedResource.type.modelProperties, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - }, - scopes: { - serializedName: "properties.scopes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationScope" - } - } - } - }, - sources: { - serializedName: "properties.sources", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationSource" - } - } + authenticationProvisioningState: { + readOnly: true, + serializedName: "authenticationProvisioningState", + type: { + name: "String" } }, - actions: { - serializedName: "properties.actions", + grantedPermissions: { + readOnly: true, + serializedName: "grantedPermissions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AutomationAction" + name: "String" } } } + }, + authenticationType: { + required: true, + serializedName: "authenticationType", + type: { + name: "String" + } } } } }; -export const AutomationActionLogicApp: msRest.CompositeMapper = { - serializedName: "LogicApp", +export const ConnectorSetting: msRest.CompositeMapper = { + serializedName: "ConnectorSetting", type: { name: "Composite", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - uberParent: "AutomationAction", - className: "AutomationActionLogicApp", + className: "ConnectorSetting", modelProperties: { - ...AutomationAction.type.modelProperties, - logicAppResourceId: { - serializedName: "logicAppResourceId", + ...Resource.type.modelProperties, + hybridComputeSettings: { + serializedName: "properties.hybridComputeSettings", type: { - name: "String" + name: "Composite", + className: "HybridComputeSettingsProperties" } }, - uri: { - serializedName: "uri", + authenticationDetails: { + serializedName: "properties.authenticationDetails", type: { - name: "String" + name: "Composite", + className: "AuthenticationDetailsProperties" } } } } }; -export const AutomationActionEventHub: msRest.CompositeMapper = { - serializedName: "EventHub", +export const AwsCredsAuthenticationDetailsProperties: msRest.CompositeMapper = { + serializedName: "awsCreds", type: { name: "Composite", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - uberParent: "AutomationAction", - className: "AutomationActionEventHub", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + uberParent: "AuthenticationDetailsProperties", + className: "AwsCredsAuthenticationDetailsProperties", modelProperties: { - ...AutomationAction.type.modelProperties, - eventHubResourceId: { - serializedName: "eventHubResourceId", + ...AuthenticationDetailsProperties.type.modelProperties, + accountId: { + readOnly: true, + serializedName: "accountId", type: { name: "String" } }, - sasPolicyName: { - readOnly: true, - serializedName: "sasPolicyName", + awsAccessKeyId: { + required: true, + serializedName: "awsAccessKeyId", type: { name: "String" } }, - connectionString: { - serializedName: "connectionString", + awsSecretAccessKey: { + required: true, + serializedName: "awsSecretAccessKey", type: { name: "String" } @@ -3207,17 +5791,32 @@ export const AutomationActionEventHub: msRest.CompositeMapper = { } }; -export const AutomationActionWorkspace: msRest.CompositeMapper = { - serializedName: "Workspace", +export const AwAssumeRoleAuthenticationDetailsProperties: msRest.CompositeMapper = { + serializedName: "awsAssumeRole", type: { name: "Composite", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - uberParent: "AutomationAction", - className: "AutomationActionWorkspace", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + uberParent: "AuthenticationDetailsProperties", + className: "AwAssumeRoleAuthenticationDetailsProperties", modelProperties: { - ...AutomationAction.type.modelProperties, - workspaceResourceId: { - serializedName: "workspaceResourceId", + ...AuthenticationDetailsProperties.type.modelProperties, + accountId: { + readOnly: true, + serializedName: "accountId", + type: { + name: "String" + } + }, + awsAssumeRoleArn: { + required: true, + serializedName: "awsAssumeRoleArn", + type: { + name: "String" + } + }, + awsExternalId: { + required: true, + serializedName: "awsExternalId", type: { name: "String" } @@ -3226,20 +5825,88 @@ export const AutomationActionWorkspace: msRest.CompositeMapper = { } }; -export const AutomationValidationStatus: msRest.CompositeMapper = { - serializedName: "AutomationValidationStatus", +export const GcpCredentialsDetailsProperties: msRest.CompositeMapper = { + serializedName: "gcpCredentials", type: { name: "Composite", - className: "AutomationValidationStatus", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + uberParent: "AuthenticationDetailsProperties", + className: "GcpCredentialsDetailsProperties", modelProperties: { - isValid: { - serializedName: "isValid", + ...AuthenticationDetailsProperties.type.modelProperties, + organizationId: { + required: true, + serializedName: "organizationId", type: { - name: "Boolean" + name: "String" } }, - message: { - serializedName: "message", + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + }, + projectId: { + required: true, + serializedName: "projectId", + type: { + name: "String" + } + }, + privateKeyId: { + required: true, + serializedName: "privateKeyId", + type: { + name: "String" + } + }, + privateKey: { + required: true, + serializedName: "privateKey", + type: { + name: "String" + } + }, + clientEmail: { + required: true, + serializedName: "clientEmail", + type: { + name: "String" + } + }, + clientId: { + required: true, + serializedName: "clientId", + type: { + name: "String" + } + }, + authUri: { + required: true, + serializedName: "authUri", + type: { + name: "String" + } + }, + tokenUri: { + required: true, + serializedName: "tokenUri", + type: { + name: "String" + } + }, + authProviderX509CertUrl: { + required: true, + serializedName: "authProviderX509CertUrl", + type: { + name: "String" + } + }, + clientX509CertUrl: { + required: true, + serializedName: "clientX509CertUrl", type: { name: "String" } @@ -3248,47 +5915,132 @@ export const AutomationValidationStatus: msRest.CompositeMapper = { } }; -export const ScopeElement: msRest.CompositeMapper = { - serializedName: "ScopeElement", +export const ScanProperties: msRest.CompositeMapper = { + serializedName: "ScanProperties", type: { name: "Composite", - className: "ScopeElement", + className: "ScanProperties", modelProperties: { - field: { - serializedName: "field", + triggerType: { + serializedName: "triggerType", + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + server: { + serializedName: "server", + type: { + name: "String" + } + }, + database: { + serializedName: "database", + type: { + name: "String" + } + }, + sqlVersion: { + serializedName: "sqlVersion", type: { name: "String" } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + highSeverityFailedRulesCount: { + serializedName: "highSeverityFailedRulesCount", + type: { + name: "Number" + } + }, + mediumSeverityFailedRulesCount: { + serializedName: "mediumSeverityFailedRulesCount", + type: { + name: "Number" + } + }, + lowSeverityFailedRulesCount: { + serializedName: "lowSeverityFailedRulesCount", + type: { + name: "Number" + } + }, + totalPassedRulesCount: { + serializedName: "totalPassedRulesCount", + type: { + name: "Number" + } + }, + totalFailedRulesCount: { + serializedName: "totalFailedRulesCount", + type: { + name: "Number" + } + }, + totalRulesCount: { + serializedName: "totalRulesCount", + type: { + name: "Number" + } + }, + isBaselineApplied: { + serializedName: "isBaselineApplied", + type: { + name: "Boolean" + } } - }, - additionalProperties: { - type: { - name: "Object" + } + } +}; + +export const Scan: msRest.CompositeMapper = { + serializedName: "Scan", + type: { + name: "Composite", + className: "Scan", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScanProperties" + } } } } }; -export const SuppressionAlertsScope: msRest.CompositeMapper = { - serializedName: "SuppressionAlertsScope", +export const Scans: msRest.CompositeMapper = { + serializedName: "Scans", type: { name: "Composite", - className: "SuppressionAlertsScope", + className: "Scans", modelProperties: { - allOf: { - required: true, - serializedName: "allOf", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ScopeElement", - additionalProperties: { - type: { - name: "Object" - } - } + className: "Scan" } } } @@ -3297,163 +6049,162 @@ export const SuppressionAlertsScope: msRest.CompositeMapper = { } }; -export const AlertsSuppressionRule: msRest.CompositeMapper = { - serializedName: "AlertsSuppressionRule", +export const Remediation: msRest.CompositeMapper = { + serializedName: "Remediation", type: { name: "Composite", - className: "AlertsSuppressionRule", + className: "Remediation", modelProperties: { - ...Resource.type.modelProperties, - alertType: { - required: true, - serializedName: "properties.alertType", - type: { - name: "String" - } - }, - lastModifiedUtc: { - readOnly: true, - serializedName: "properties.lastModifiedUtc", - type: { - name: "DateTime" - } - }, - expirationDateUtc: { - serializedName: "properties.expirationDateUtc", - type: { - name: "DateTime" - } - }, - reason: { - required: true, - serializedName: "properties.reason", + description: { + serializedName: "description", type: { name: "String" } }, - state: { - required: true, - serializedName: "properties.state", + scripts: { + serializedName: "scripts", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled", - "Expired" - ] + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - comment: { - serializedName: "properties.comment", + automated: { + serializedName: "automated", type: { - name: "String" + name: "Boolean" } }, - suppressionAlertsScope: { - serializedName: "properties.suppressionAlertsScope", + portalLink: { + serializedName: "portalLink", type: { - name: "Composite", - className: "SuppressionAlertsScope" + name: "String" } } } } }; -export const SecurityAssessmentMetadataPartnerData: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadataPartnerData", +export const Baseline: msRest.CompositeMapper = { + serializedName: "Baseline", type: { name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", + className: "Baseline", modelProperties: { - partnerName: { - required: true, - serializedName: "partnerName", - type: { - name: "String" - } - }, - productName: { - serializedName: "productName", + expectedResults: { + serializedName: "expectedResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } }, - secret: { - required: true, - serializedName: "secret", + updatedTime: { + serializedName: "updatedTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const SecurityAssessmentMetadataProperties: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadataProperties", +export const BaselineAdjustedResult: msRest.CompositeMapper = { + serializedName: "BaselineAdjustedResult", type: { name: "Composite", - className: "SecurityAssessmentMetadataProperties", + className: "BaselineAdjustedResult", modelProperties: { - displayName: { - required: true, - serializedName: "displayName", - type: { - name: "String" - } - }, - policyDefinitionId: { - readOnly: true, - serializedName: "policyDefinitionId", - type: { - name: "String" - } - }, - description: { - serializedName: "description", + baseline: { + serializedName: "baseline", type: { - name: "String" + name: "Composite", + className: "Baseline" } }, - remediationDescription: { - serializedName: "remediationDescription", + status: { + serializedName: "status", type: { name: "String" } }, - category: { - serializedName: "category", + resultsNotInBaseline: { + serializedName: "resultsNotInBaseline", type: { name: "Sequence", element: { type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - severity: { - required: true, - serializedName: "severity", + resultsOnlyInBaseline: { + serializedName: "resultsOnlyInBaseline", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } - }, - userImpact: { - serializedName: "userImpact", + } + } + } +}; + +export const QueryCheck: msRest.CompositeMapper = { + serializedName: "QueryCheck", + type: { + name: "Composite", + className: "QueryCheck", + modelProperties: { + query: { + serializedName: "query", type: { name: "String" } }, - implementationEffort: { - serializedName: "implementationEffort", + expectedResult: { + serializedName: "expectedResult", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } }, - threats: { - serializedName: "threats", + columnNames: { + serializedName: "columnNames", type: { name: "Sequence", element: { @@ -3462,347 +6213,436 @@ export const SecurityAssessmentMetadataProperties: msRest.CompositeMapper = { } } } - }, - preview: { - serializedName: "preview", - type: { - name: "Boolean" - } - }, - assessmentType: { - required: true, - serializedName: "assessmentType", + } + } + } +}; + +export const BenchmarkReference: msRest.CompositeMapper = { + serializedName: "BenchmarkReference", + type: { + name: "Composite", + className: "BenchmarkReference", + modelProperties: { + benchmark: { + serializedName: "benchmark", type: { name: "String" } }, - partnerData: { - serializedName: "partnerData", + reference: { + serializedName: "reference", type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData" + name: "String" } } } } }; -export const SecurityAssessmentMetadata: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadata", +export const VaRule: msRest.CompositeMapper = { + serializedName: "VaRule", type: { name: "Composite", - className: "SecurityAssessmentMetadata", + className: "VaRule", modelProperties: { - ...Resource.type.modelProperties, - displayName: { - required: true, - serializedName: "properties.displayName", + ruleId: { + serializedName: "ruleId", type: { name: "String" } }, - policyDefinitionId: { - readOnly: true, - serializedName: "properties.policyDefinitionId", + severity: { + serializedName: "severity", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + ruleType: { + serializedName: "ruleType", + type: { + name: "String" + } + }, + title: { + serializedName: "title", type: { name: "String" } }, description: { - serializedName: "properties.description", + serializedName: "description", type: { name: "String" } }, - remediationDescription: { - serializedName: "properties.remediationDescription", + rationale: { + serializedName: "rationale", type: { name: "String" } }, - category: { - serializedName: "properties.category", + queryCheck: { + serializedName: "queryCheck", + type: { + name: "Composite", + className: "QueryCheck" + } + }, + benchmarkReferences: { + serializedName: "benchmarkReferences", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "BenchmarkReference" } } } - }, - severity: { - required: true, - serializedName: "properties.severity", + } + } + } +}; + +export const ScanResultProperties: msRest.CompositeMapper = { + serializedName: "ScanResultProperties", + type: { + name: "Composite", + className: "ScanResultProperties", + modelProperties: { + ruleId: { + serializedName: "ruleId", type: { name: "String" } }, - userImpact: { - serializedName: "properties.userImpact", + status: { + serializedName: "status", type: { name: "String" } }, - implementationEffort: { - serializedName: "properties.implementationEffort", + isTrimmed: { + serializedName: "isTrimmed", type: { - name: "String" + name: "Boolean" } }, - threats: { - serializedName: "properties.threats", + queryResults: { + serializedName: "queryResults", type: { name: "Sequence", element: { type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - preview: { - serializedName: "properties.preview", + remediation: { + serializedName: "remediation", type: { - name: "Boolean" + name: "Composite", + className: "Remediation" } }, - assessmentType: { - required: true, - serializedName: "properties.assessmentType", + baselineAdjustedResult: { + serializedName: "baselineAdjustedResult", type: { - name: "String" + name: "Composite", + className: "BaselineAdjustedResult" } }, - partnerData: { - serializedName: "properties.partnerData", + ruleMetadata: { + serializedName: "ruleMetadata", type: { name: "Composite", - className: "SecurityAssessmentMetadataPartnerData" + className: "VaRule" } } } } }; -export const AssessmentStatus: msRest.CompositeMapper = { - serializedName: "AssessmentStatus", +export const ScanResult: msRest.CompositeMapper = { + serializedName: "ScanResult", type: { name: "Composite", - className: "AssessmentStatus", + className: "ScanResult", modelProperties: { - code: { - required: true, - serializedName: "code", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ScanResultProperties" } - }, - cause: { - serializedName: "cause", + } + } + } +}; + +export const ScanResults: msRest.CompositeMapper = { + serializedName: "ScanResults", + type: { + name: "Composite", + className: "ScanResults", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScanResult" + } + } + } + } + } + } +}; + +export const RuleResultsInput: msRest.CompositeMapper = { + serializedName: "RuleResultsInput", + type: { + name: "Composite", + className: "RuleResultsInput", + modelProperties: { + latestScan: { + serializedName: "latestScan", + type: { + name: "Boolean" } }, - description: { - serializedName: "description", + results: { + serializedName: "results", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const AssessmentLinks: msRest.CompositeMapper = { - serializedName: "AssessmentLinks", +export const RuleResultsProperties: msRest.CompositeMapper = { + serializedName: "RuleResultsProperties", type: { name: "Composite", - className: "AssessmentLinks", + className: "RuleResultsProperties", modelProperties: { - azurePortalUri: { - readOnly: true, - serializedName: "azurePortalUri", + results: { + serializedName: "results", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const SecurityAssessmentPartnerData: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentPartnerData", +export const RuleResults: msRest.CompositeMapper = { + serializedName: "RuleResults", type: { name: "Composite", - className: "SecurityAssessmentPartnerData", + className: "RuleResults", modelProperties: { - partnerName: { - required: true, - serializedName: "partnerName", - type: { - name: "String" - } - }, - secret: { - required: true, - serializedName: "secret", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "RuleResultsProperties" } } } } }; -export const SecurityAssessment: msRest.CompositeMapper = { - serializedName: "SecurityAssessment", +export const RulesResults: msRest.CompositeMapper = { + serializedName: "RulesResults", type: { name: "Composite", - className: "SecurityAssessment", + className: "RulesResults", modelProperties: { - ...Resource.type.modelProperties, - resourceDetails: { - required: true, - serializedName: "properties.resourceDetails", - type: { - name: "Composite", - className: "ResourceDetails" - } - }, - displayName: { - readOnly: true, - serializedName: "properties.displayName", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuleResults" + } + } } - }, - status: { - required: true, - serializedName: "properties.status", + } + } + } +}; + +export const RulesResultsInput: msRest.CompositeMapper = { + serializedName: "RulesResultsInput", + type: { + name: "Composite", + className: "RulesResultsInput", + modelProperties: { + latestScan: { + serializedName: "latestScan", type: { - name: "Composite", - className: "AssessmentStatus" + name: "Boolean" } }, - additionalData: { - serializedName: "properties.additionalData", + results: { + serializedName: "results", type: { name: "Dictionary", value: { type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } - }, - links: { - serializedName: "properties.links", - type: { - name: "Composite", - className: "AssessmentLinks" - } - }, - metadata: { - serializedName: "properties.metadata", - type: { - name: "Composite", - className: "SecurityAssessmentMetadataProperties" - } - }, - partnersData: { - serializedName: "properties.partnersData", - type: { - name: "Composite", - className: "SecurityAssessmentPartnerData" - } } } } }; -export const ProtectionMode: msRest.CompositeMapper = { - serializedName: "ProtectionMode", +export const IotDefenderSettingsModel: msRest.CompositeMapper = { + serializedName: "IotDefenderSettingsModel", type: { name: "Composite", - className: "ProtectionMode", + className: "IotDefenderSettingsModel", modelProperties: { - exe: { - serializedName: "exe", + ...Resource.type.modelProperties, + deviceQuota: { + required: true, + serializedName: "properties.deviceQuota", + constraints: { + InclusiveMinimum: 1000 + }, type: { - name: "String" + name: "Number" } }, - msi: { - serializedName: "msi", + sentinelWorkspaceResourceIds: { + required: true, + serializedName: "properties.sentinelWorkspaceResourceIds", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - script: { - serializedName: "script", + onboardingKind: { + required: true, + serializedName: "properties.onboardingKind", type: { name: "String" } }, - executable: { - serializedName: "executable", + evaluationEndTime: { + readOnly: true, + serializedName: "properties.evaluationEndTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const AppWhitelistingIssueSummary: msRest.CompositeMapper = { - serializedName: "AppWhitelistingIssueSummary", +export const IotDefenderSettingsList: msRest.CompositeMapper = { + serializedName: "IotDefenderSettingsList", type: { name: "Composite", - className: "AppWhitelistingIssueSummary", + className: "IotDefenderSettingsList", modelProperties: { - issue: { - serializedName: "issue", - type: { - name: "String" - } - }, - numberOfVms: { - serializedName: "numberOfVms", + value: { + readOnly: true, + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotDefenderSettingsModel" + } + } } } } } }; -export const VmRecommendation: msRest.CompositeMapper = { - serializedName: "VmRecommendation", +export const PackageDownloadInfo: msRest.CompositeMapper = { + serializedName: "PackageDownloadInfo", type: { name: "Composite", - className: "VmRecommendation", + className: "PackageDownloadInfo", modelProperties: { - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String" - } - }, - recommendationAction: { - serializedName: "recommendationAction", + version: { + readOnly: true, + serializedName: "version", type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", + link: { + serializedName: "link", type: { name: "String" } }, - enforcementSupport: { - serializedName: "enforcementSupport", + versionKind: { + readOnly: true, + serializedName: "versionKind", type: { name: "String" } @@ -3811,32 +6651,16 @@ export const VmRecommendation: msRest.CompositeMapper = { } }; -export const PublisherInfo: msRest.CompositeMapper = { - serializedName: "PublisherInfo", +export const UpgradePackageDownloadInfo: msRest.CompositeMapper = { + serializedName: "UpgradePackageDownloadInfo", type: { name: "Composite", - className: "PublisherInfo", + className: "UpgradePackageDownloadInfo", modelProperties: { - publisherName: { - serializedName: "publisherName", - type: { - name: "String" - } - }, - productName: { - serializedName: "productName", - type: { - name: "String" - } - }, - binaryName: { - serializedName: "binaryName", - type: { - name: "String" - } - }, - version: { - serializedName: "version", + ...PackageDownloadInfo.type.modelProperties, + fromVersion: { + readOnly: true, + serializedName: "fromVersion", type: { name: "String" } @@ -3845,227 +6669,322 @@ export const PublisherInfo: msRest.CompositeMapper = { } }; -export const UserRecommendation: msRest.CompositeMapper = { - serializedName: "UserRecommendation", +export const PackageDownloadsSensorFullOvf: msRest.CompositeMapper = { + serializedName: "PackageDownloads_sensor_full_ovf", type: { name: "Composite", - className: "UserRecommendation", + className: "PackageDownloadsSensorFullOvf", modelProperties: { - username: { - serializedName: "username", + enterprise: { + readOnly: true, + serializedName: "enterprise", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - recommendationAction: { - serializedName: "recommendationAction", + medium: { + readOnly: true, + serializedName: "medium", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } + } + }, + line: { + readOnly: true, + serializedName: "line", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } } } } }; -export const PathRecommendation: msRest.CompositeMapper = { - serializedName: "PathRecommendation", +export const PackageDownloadsSensorFull: msRest.CompositeMapper = { + serializedName: "PackageDownloads_sensor_full", type: { name: "Composite", - className: "PathRecommendation", + className: "PackageDownloadsSensorFull", modelProperties: { - path: { - serializedName: "path", - type: { - name: "String" - } - }, - action: { - serializedName: "action", + iso: { + readOnly: true, + serializedName: "iso", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - type: { - serializedName: "type", + ovf: { + serializedName: "ovf", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsSensorFullOvf" } - }, - publisherInfo: { - serializedName: "publisherInfo", + } + } + } +}; + +export const PackageDownloadsSensor: msRest.CompositeMapper = { + serializedName: "PackageDownloads_sensor", + type: { + name: "Composite", + className: "PackageDownloadsSensor", + modelProperties: { + full: { + readOnly: true, + serializedName: "full", type: { name: "Composite", - className: "PublisherInfo" + className: "PackageDownloadsSensorFull" } }, - common: { - serializedName: "common", + upgrade: { + serializedName: "upgrade", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpgradePackageDownloadInfo" + } + } } - }, - userSids: { - serializedName: "userSids", + } + } + } +}; + +export const PackageDownloadsCentralManagerFullOvf: msRest.CompositeMapper = { + serializedName: "PackageDownloads_centralManager_full_ovf", + type: { + name: "Composite", + className: "PackageDownloadsCentralManagerFullOvf", + modelProperties: { + enterprise: { + readOnly: true, + serializedName: "enterprise", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PackageDownloadInfo" } } } }, - usernames: { - serializedName: "usernames", + enterpriseHighAvailability: { + readOnly: true, + serializedName: "enterpriseHighAvailability", type: { name: "Sequence", element: { type: { name: "Composite", - className: "UserRecommendation" + className: "PackageDownloadInfo" } } } }, - fileType: { - serializedName: "fileType", + medium: { + readOnly: true, + serializedName: "medium", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - configurationStatus: { - serializedName: "configurationStatus", + mediumHighAvailability: { + readOnly: true, + serializedName: "mediumHighAvailability", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } } } } }; -export const AppWhitelistingGroup: msRest.CompositeMapper = { - serializedName: "AppWhitelistingGroup", +export const PackageDownloadsCentralManagerFull: msRest.CompositeMapper = { + serializedName: "PackageDownloads_centralManager_full", type: { name: "Composite", - className: "AppWhitelistingGroup", + className: "PackageDownloadsCentralManagerFull", modelProperties: { - id: { + iso: { readOnly: true, - serializedName: "id", + serializedName: "iso", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - name: { + ovf: { readOnly: true, - serializedName: "name", + serializedName: "ovf", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsCentralManagerFullOvf" } - }, - type: { + } + } + } +}; + +export const PackageDownloadsCentralManager: msRest.CompositeMapper = { + serializedName: "PackageDownloads_centralManager", + type: { + name: "Composite", + className: "PackageDownloadsCentralManager", + modelProperties: { + full: { readOnly: true, - serializedName: "type", + serializedName: "full", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsCentralManagerFull" } }, - location: { + upgrade: { readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - enforcementMode: { - serializedName: "properties.enforcementMode", + serializedName: "upgrade", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpgradePackageDownloadInfo" + } + } } - }, - protectionMode: { - serializedName: "properties.protectionMode", + } + } + } +}; + +export const PackageDownloads: msRest.CompositeMapper = { + serializedName: "PackageDownloads", + type: { + name: "Composite", + className: "PackageDownloads", + modelProperties: { + sensor: { + readOnly: true, + serializedName: "sensor", type: { name: "Composite", - className: "ProtectionMode" + className: "PackageDownloadsSensor" } }, - configurationStatus: { + centralManager: { readOnly: true, - serializedName: "properties.configurationStatus", + serializedName: "centralManager", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsCentralManager" } }, - recommendationStatus: { + threatIntelligence: { readOnly: true, - serializedName: "properties.recommendationStatus", + serializedName: "threatIntelligence", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - issues: { + snmp: { readOnly: true, - serializedName: "properties.issues", + serializedName: "snmp", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AppWhitelistingIssueSummary" + className: "PackageDownloadInfo" } } } }, - sourceSystem: { + wmiTool: { readOnly: true, - serializedName: "properties.sourceSystem", - type: { - name: "String" - } - }, - vmRecommendations: { - serializedName: "properties.vmRecommendations", + serializedName: "wmiTool", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VmRecommendation" + className: "PackageDownloadInfo" } } } }, - pathRecommendations: { - serializedName: "properties.pathRecommendations", + authorizedDevicesImportTemplate: { + readOnly: true, + serializedName: "authorizedDevicesImportTemplate", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PathRecommendation" + className: "PackageDownloadInfo" } } } - } - } - } -}; - -export const AppWhitelistingGroups: msRest.CompositeMapper = { - serializedName: "AppWhitelistingGroups", - type: { - name: "Composite", - className: "AppWhitelistingGroups", - modelProperties: { - value: { - serializedName: "value", + }, + deviceInformationUpdateImportTemplate: { + readOnly: true, + serializedName: "deviceInformationUpdateImportTemplate", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AppWhitelistingGroup" + className: "PackageDownloadInfo" } } } @@ -4074,116 +6993,106 @@ export const AppWhitelistingGroups: msRest.CompositeMapper = { } }; -export const Rule: msRest.CompositeMapper = { - serializedName: "Rule", +export const IotSensorsModel: msRest.CompositeMapper = { + serializedName: "IotSensorsModel", type: { name: "Composite", - className: "Rule", + className: "IotSensorsModel", modelProperties: { - name: { - serializedName: "name", + ...Resource.type.modelProperties, + connectivityTime: { + readOnly: true, + serializedName: "properties.connectivityTime", type: { name: "String" } }, - direction: { - serializedName: "direction", + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", type: { name: "String" } }, - destinationPort: { - serializedName: "destinationPort", + dynamicLearning: { + readOnly: true, + serializedName: "properties.dynamicLearning", type: { - name: "Number" + name: "Boolean" } }, - protocols: { - serializedName: "protocols", + learningMode: { + readOnly: true, + serializedName: "properties.learningMode", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - ipAddresses: { - serializedName: "ipAddresses", + sensorStatus: { + readOnly: true, + serializedName: "properties.sensorStatus", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - } - } - } -}; - -export const EffectiveNetworkSecurityGroups: msRest.CompositeMapper = { - serializedName: "EffectiveNetworkSecurityGroups", - type: { - name: "Composite", - className: "EffectiveNetworkSecurityGroups", - modelProperties: { - networkInterface: { - serializedName: "networkInterface", + }, + sensorVersion: { + readOnly: true, + serializedName: "properties.sensorVersion", type: { name: "String" } }, - networkSecurityGroups: { - serializedName: "networkSecurityGroups", + tiAutomaticUpdates: { + serializedName: "properties.tiAutomaticUpdates", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" + } + }, + tiStatus: { + readOnly: true, + serializedName: "properties.tiStatus", + type: { + name: "String" + } + }, + tiVersion: { + readOnly: true, + serializedName: "properties.tiVersion", + type: { + name: "String" + } + }, + zone: { + serializedName: "properties.zone", + type: { + name: "String" + } + }, + sensorType: { + serializedName: "properties.sensorType", + type: { + name: "String" } } } } }; -export const AdaptiveNetworkHardening: msRest.CompositeMapper = { - serializedName: "AdaptiveNetworkHardening", +export const IotSensorsList: msRest.CompositeMapper = { + serializedName: "IotSensorsList", type: { name: "Composite", - className: "AdaptiveNetworkHardening", + className: "IotSensorsList", modelProperties: { - ...Resource.type.modelProperties, - rules: { - serializedName: "properties.rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Rule" - } - } - } - }, - rulesCalculationTime: { - serializedName: "properties.rulesCalculationTime", - type: { - name: "DateTime" - } - }, - effectiveNetworkSecurityGroups: { - serializedName: "properties.effectiveNetworkSecurityGroups", + value: { + readOnly: true, + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EffectiveNetworkSecurityGroups" + className: "IotSensorsModel" } } } @@ -4192,107 +7101,133 @@ export const AdaptiveNetworkHardening: msRest.CompositeMapper = { } }; -export const AdaptiveNetworkHardeningEnforceRequest: msRest.CompositeMapper = { - serializedName: "AdaptiveNetworkHardeningEnforceRequest", +export const ResetPasswordInput: msRest.CompositeMapper = { + serializedName: "ResetPasswordInput", type: { name: "Composite", - className: "AdaptiveNetworkHardeningEnforceRequest", + className: "ResetPasswordInput", modelProperties: { - rules: { - required: true, - serializedName: "rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Rule" - } - } - } - }, - networkSecurityGroups: { - required: true, - serializedName: "networkSecurityGroups", + applianceId: { + serializedName: "applianceId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const ConnectedResource: msRest.CompositeMapper = { - serializedName: "ConnectedResource", +export const IpAddress: msRest.CompositeMapper = { + serializedName: "IpAddress", type: { name: "Composite", - className: "ConnectedResource", + className: "IpAddress", modelProperties: { - connectedResourceId: { + v4Address: { readOnly: true, - serializedName: "connectedResourceId", + serializedName: "v4Address", type: { name: "String" } }, - tcpPorts: { + detectionTime: { readOnly: true, - serializedName: "tcpPorts", + serializedName: "detectionTime", + type: { + name: "DateTime" + } + }, + subnetCidr: { + readOnly: true, + serializedName: "subnetCidr", type: { name: "String" } }, - udpPorts: { + fqdn: { readOnly: true, - serializedName: "udpPorts", + serializedName: "fqdn", type: { name: "String" } + }, + fqdnLastLookupTime: { + readOnly: true, + serializedName: "fqdnLastLookupTime", + type: { + name: "DateTime" + } } } } }; -export const ConnectableResource: msRest.CompositeMapper = { - serializedName: "ConnectableResource", +export const MacAddress: msRest.CompositeMapper = { + serializedName: "MacAddress", type: { name: "Composite", - className: "ConnectableResource", + className: "MacAddress", modelProperties: { - id: { + address: { readOnly: true, - serializedName: "id", + serializedName: "address", type: { name: "String" } }, - inboundConnectedResources: { + detectionTime: { readOnly: true, - serializedName: "inboundConnectedResources", + serializedName: "detectionTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedResource" - } - } + name: "DateTime" } }, - outboundConnectedResources: { + significance: { readOnly: true, - serializedName: "outboundConnectedResources", + serializedName: "significance", + type: { + name: "String" + } + }, + relationToIpStatus: { + readOnly: true, + serializedName: "relationToIpStatus", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterface: msRest.CompositeMapper = { + serializedName: "NetworkInterface", + type: { + name: "Composite", + className: "NetworkInterface", + modelProperties: { + ipAddress: { + serializedName: "ipAddress", + type: { + name: "Composite", + className: "IpAddress" + } + }, + macAddress: { + serializedName: "macAddress", + type: { + name: "Composite", + className: "MacAddress" + } + }, + vlans: { + readOnly: true, + serializedName: "vlans", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ConnectedResource" + name: "String" } } } @@ -4301,73 +7236,104 @@ export const ConnectableResource: msRest.CompositeMapper = { } }; -export const AllowedConnectionsResource: msRest.CompositeMapper = { - serializedName: "AllowedConnectionsResource", +export const Protocol1: msRest.CompositeMapper = { + serializedName: "Protocol", type: { name: "Composite", - className: "AllowedConnectionsResource", + className: "Protocol1", modelProperties: { - id: { + name: { readOnly: true, - serializedName: "id", + serializedName: "name", type: { name: "String" } }, - name: { + identifiers: { + serializedName: "identifiers", + type: { + name: "String" + } + } + } + } +}; + +export const Firmware: msRest.CompositeMapper = { + serializedName: "Firmware", + type: { + name: "Composite", + className: "Firmware", + modelProperties: { + moduleAddress: { readOnly: true, - serializedName: "name", + serializedName: "moduleAddress", type: { name: "String" } }, - type: { + rack: { readOnly: true, - serializedName: "type", + serializedName: "rack", type: { name: "String" } }, - location: { + slot: { readOnly: true, - serializedName: "location", + serializedName: "slot", type: { name: "String" } }, - calculatedDateTime: { + serial: { readOnly: true, - serializedName: "properties.calculatedDateTime", + serializedName: "serial", type: { - name: "DateTime" + name: "String" } }, - connectableResources: { + model: { readOnly: true, - serializedName: "properties.connectableResources", + serializedName: "model", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectableResource" - } - } + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + }, + additionalData: { + readOnly: true, + serializedName: "additionalData", + type: { + name: "Object" } } } } }; -export const TopologySingleResourceParent: msRest.CompositeMapper = { - serializedName: "TopologySingleResourceParent", +export const Sensor: msRest.CompositeMapper = { + serializedName: "Sensor", type: { name: "Composite", - className: "TopologySingleResourceParent", + className: "Sensor", modelProperties: { - resourceId: { + name: { readOnly: true, - serializedName: "resourceId", + serializedName: "name", + type: { + name: "String" + } + }, + zone: { + readOnly: true, + serializedName: "zone", type: { name: "String" } @@ -4376,15 +7342,15 @@ export const TopologySingleResourceParent: msRest.CompositeMapper = { } }; -export const TopologySingleResourceChild: msRest.CompositeMapper = { - serializedName: "TopologySingleResourceChild", +export const Site: msRest.CompositeMapper = { + serializedName: "Site", type: { name: "Composite", - className: "TopologySingleResourceChild", + className: "Site", modelProperties: { - resourceId: { + displayName: { readOnly: true, - serializedName: "resourceId", + serializedName: "displayName", type: { name: "String" } @@ -4393,76 +7359,242 @@ export const TopologySingleResourceChild: msRest.CompositeMapper = { } }; -export const TopologySingleResource: msRest.CompositeMapper = { - serializedName: "TopologySingleResource", +export const Device: msRest.CompositeMapper = { + serializedName: "Device", type: { name: "Composite", - className: "TopologySingleResource", + className: "Device", modelProperties: { - resourceId: { + ...Resource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + deviceType: { + serializedName: "properties.deviceType", + type: { + name: "String" + } + }, + sourceName: { readOnly: true, - serializedName: "resourceId", + serializedName: "properties.sourceName", type: { name: "String" } }, - severity: { + networkInterfaces: { readOnly: true, - serializedName: "severity", + serializedName: "properties.networkInterfaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterface" + } + } + } + }, + vendor: { + readOnly: true, + serializedName: "properties.vendor", + type: { + name: "String" + } + }, + osName: { + serializedName: "properties.osName", + type: { + name: "String" + } + }, + protocols: { + readOnly: true, + serializedName: "properties.protocols", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Protocol1" + } + } + } + }, + lastActiveTime: { + readOnly: true, + serializedName: "properties.lastActiveTime", + type: { + name: "DateTime" + } + }, + lastUpdateTime: { + readOnly: true, + serializedName: "properties.lastUpdateTime", + type: { + name: "DateTime" + } + }, + managementState: { + readOnly: true, + serializedName: "properties.managementState", + type: { + name: "String" + } + }, + authorizationState: { + serializedName: "properties.authorizationState", + defaultValue: 'Unauthorized', + type: { + name: "String" + } + }, + deviceCriticality: { + serializedName: "properties.deviceCriticality", + defaultValue: 'Standard', + type: { + name: "String" + } + }, + purdueLevel: { + serializedName: "properties.purdueLevel", + defaultValue: 'ProcessControl', + type: { + name: "String" + } + }, + notes: { + serializedName: "properties.notes", + type: { + name: "String" + } + }, + firmwares: { + readOnly: true, + serializedName: "properties.firmwares", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Firmware" + } + } + } + }, + discoveryTime: { + readOnly: true, + serializedName: "properties.discoveryTime", + type: { + name: "DateTime" + } + }, + programmingState: { + readOnly: true, + serializedName: "properties.programmingState", type: { name: "String" } }, - recommendationsExist: { + lastProgrammingTime: { readOnly: true, - serializedName: "recommendationsExist", + serializedName: "properties.lastProgrammingTime", type: { - name: "Boolean" + name: "DateTime" } }, - networkZones: { + scanningFunctionality: { readOnly: true, - serializedName: "networkZones", + serializedName: "properties.scanningFunctionality", type: { name: "String" } }, - topologyScore: { + lastScanTime: { readOnly: true, - serializedName: "topologyScore", + serializedName: "properties.lastScanTime", type: { - name: "Number" + name: "DateTime" } }, - location: { + riskScore: { readOnly: true, - serializedName: "location", + serializedName: "properties.riskScore", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - parents: { + sensors: { readOnly: true, - serializedName: "parents", + serializedName: "properties.sensors", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResourceParent" + className: "Sensor" } } } }, - children: { + site: { readOnly: true, - serializedName: "children", + serializedName: "properties.site", + type: { + name: "Composite", + className: "Site" + } + }, + deviceStatus: { + readOnly: true, + serializedName: "properties.deviceStatus", + type: { + name: "String" + } + } + } + } +}; + +export const OnPremiseIotSensor: msRest.CompositeMapper = { + serializedName: "OnPremiseIotSensor", + type: { + name: "Composite", + className: "OnPremiseIotSensor", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const OnPremiseIotSensorsList: msRest.CompositeMapper = { + serializedName: "OnPremiseIotSensorsList", + type: { + name: "Composite", + className: "OnPremiseIotSensorsList", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResourceChild" + className: "OnPremiseIotSensor" } } } @@ -4471,56 +7603,50 @@ export const TopologySingleResource: msRest.CompositeMapper = { } }; -export const TopologyResource: msRest.CompositeMapper = { - serializedName: "TopologyResource", +export const IotSitesModel: msRest.CompositeMapper = { + serializedName: "IotSitesModel", type: { name: "Composite", - className: "TopologyResource", + className: "IotSitesModel", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", + ...Resource.type.modelProperties, + displayName: { + required: true, + serializedName: "properties.displayName", type: { name: "String" } }, - calculatedDateTime: { - readOnly: true, - serializedName: "properties.calculatedDateTime", + tags: { + serializedName: "properties.tags", type: { - name: "DateTime" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } - }, - topologyResources: { + } + } + } +}; + +export const IotSitesList: msRest.CompositeMapper = { + serializedName: "IotSitesList", + type: { + name: "Composite", + className: "IotSitesList", + modelProperties: { + value: { readOnly: true, - serializedName: "properties.topologyResources", + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResource" + className: "IotSitesModel" } } } @@ -4529,173 +7655,140 @@ export const TopologyResource: msRest.CompositeMapper = { } }; -export const JitNetworkAccessPortRule: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPortRule", +export const IotAlertModel: msRest.CompositeMapper = { + serializedName: "IotAlertModel", type: { name: "Composite", - className: "JitNetworkAccessPortRule", + className: "IotAlertModel", modelProperties: { - number: { - required: true, - serializedName: "number", - type: { - name: "Number" - } - }, - protocol: { - required: true, - serializedName: "protocol", + ...Resource.type.modelProperties, + systemAlertId: { + readOnly: true, + serializedName: "properties.systemAlertId", type: { name: "String" } }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + compromisedEntity: { + readOnly: true, + serializedName: "properties.compromisedEntity", type: { name: "String" } }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + alertType: { + readOnly: true, + serializedName: "properties.alertType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - maxRequestAccessDuration: { - required: true, - serializedName: "maxRequestAccessDuration", + startTimeUtc: { + readOnly: true, + serializedName: "properties.startTimeUtc", type: { name: "String" } - } - } - } -}; - -export const JitNetworkAccessPolicyVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyVirtualMachine", - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine", - modelProperties: { - id: { - required: true, - serializedName: "id", + }, + endTimeUtc: { + readOnly: true, + serializedName: "properties.endTimeUtc", type: { name: "String" } }, - ports: { - required: true, - serializedName: "ports", + entities: { + serializedName: "properties.entities", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JitNetworkAccessPortRule" + name: "Object" } } } }, - publicIpAddress: { - serializedName: "publicIpAddress", + extendedProperties: { + serializedName: "properties.extendedProperties", type: { - name: "String" + name: "Object" } } } } }; -export const JitNetworkAccessRequestPort: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequestPort", +export const IotAlertType: msRest.CompositeMapper = { + serializedName: "IotAlertType", type: { name: "Composite", - className: "JitNetworkAccessRequestPort", + className: "IotAlertType", modelProperties: { - number: { - required: true, - serializedName: "number", + ...Resource.type.modelProperties, + alertDisplayName: { + readOnly: true, + serializedName: "properties.alertDisplayName", type: { - name: "Number" + name: "String" } }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + severity: { + readOnly: true, + serializedName: "properties.severity", type: { name: "String" } }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + description: { + readOnly: true, + serializedName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - endTimeUtc: { - required: true, - serializedName: "endTimeUtc", + providerName: { + readOnly: true, + serializedName: "properties.providerName", type: { - name: "DateTime" + name: "String" } }, - status: { - required: true, - serializedName: "status", + productName: { + readOnly: true, + serializedName: "properties.productName", type: { name: "String" } }, - statusReason: { - required: true, - serializedName: "statusReason", + productComponentName: { + readOnly: true, + serializedName: "properties.productComponentName", type: { name: "String" } }, - mappedPort: { - serializedName: "mappedPort", + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequestVirtualMachine", - type: { - name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine", - modelProperties: { - id: { - required: true, - serializedName: "id", + }, + intent: { + readOnly: true, + serializedName: "properties.intent", type: { name: "String" } }, - ports: { - required: true, - serializedName: "ports", + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JitNetworkAccessRequestPort" + name: "String" } } } @@ -4704,117 +7797,137 @@ export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { } }; -export const JitNetworkAccessRequest: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequest", +export const IotAlertTypeList: msRest.CompositeMapper = { + serializedName: "IotAlertTypeList", type: { name: "Composite", - className: "JitNetworkAccessRequest", + className: "IotAlertTypeList", modelProperties: { - virtualMachines: { - required: true, - serializedName: "virtualMachines", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine" + className: "IotAlertType" } } } - }, - startTimeUtc: { - required: true, - serializedName: "startTimeUtc", + } + } + } +}; + +export const IotRecommendationModel: msRest.CompositeMapper = { + serializedName: "IotRecommendationModel", + type: { + name: "Composite", + className: "IotRecommendationModel", + modelProperties: { + ...Resource.type.modelProperties, + deviceId: { + readOnly: true, + serializedName: "properties.deviceId", type: { - name: "DateTime" + name: "String" } }, - requestor: { - required: true, - serializedName: "requestor", + recommendationType: { + readOnly: true, + serializedName: "properties.recommendationType", type: { name: "String" } }, - justification: { - serializedName: "justification", + discoveredTimeUtc: { + readOnly: true, + serializedName: "properties.discoveredTimeUtc", type: { name: "String" } + }, + recommendationAdditionalData: { + serializedName: "properties.recommendationAdditionalData", + type: { + name: "Object" + } } } } }; -export const JitNetworkAccessPolicy: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicy", +export const IotRecommendationType: msRest.CompositeMapper = { + serializedName: "IotRecommendationType", type: { name: "Composite", - className: "JitNetworkAccessPolicy", + className: "IotRecommendationType", modelProperties: { - id: { + ...Resource.type.modelProperties, + recommendationDisplayName: { readOnly: true, - serializedName: "id", + serializedName: "properties.recommendationDisplayName", type: { name: "String" } }, - name: { + severity: { readOnly: true, - serializedName: "name", + serializedName: "properties.severity", type: { name: "String" } }, - type: { + description: { readOnly: true, - serializedName: "type", + serializedName: "properties.description", type: { name: "String" } }, - kind: { - serializedName: "kind", + productName: { + readOnly: true, + serializedName: "properties.productName", type: { name: "String" } }, - location: { + productComponentName: { readOnly: true, - serializedName: "location", + serializedName: "properties.productComponentName", type: { name: "String" } }, - virtualMachines: { - required: true, - serializedName: "properties.virtualMachines", + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine" - } - } + name: "String" } }, - requests: { - serializedName: "properties.requests", + control: { + readOnly: true, + serializedName: "properties.control", + type: { + name: "String" + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JitNetworkAccessRequest" + name: "String" } } } }, - provisioningState: { + dataSource: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "properties.dataSource", type: { name: "String" } @@ -4823,203 +7936,272 @@ export const JitNetworkAccessPolicy: msRest.CompositeMapper = { } }; -export const JitNetworkAccessPolicyInitiatePort: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiatePort", +export const IotRecommendationTypeList: msRest.CompositeMapper = { + serializedName: "IotRecommendationTypeList", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", + className: "IotRecommendationTypeList", modelProperties: { - number: { - required: true, - serializedName: "number", - type: { - name: "Number" - } - }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", - type: { - name: "String" - } - }, - endTimeUtc: { - required: true, - serializedName: "endTimeUtc", + value: { + serializedName: "value", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotRecommendationType" + } + } } } } } }; -export const JitNetworkAccessPolicyInitiateVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiateVirtualMachine", +export const ResourceIdentifier: msRest.CompositeMapper = { + serializedName: "ResourceIdentifier", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "ResourceIdentifier", + className: "ResourceIdentifier", modelProperties: { - id: { + type: { required: true, - serializedName: "id", + serializedName: "type", type: { name: "String" } - }, - ports: { - required: true, - serializedName: "ports", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort" - } - } - } } } } }; -export const JitNetworkAccessPolicyInitiateRequest: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiateRequest", +export const AlertEntity: msRest.CompositeMapper = { + serializedName: "AlertEntity", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateRequest", + className: "AlertEntity", modelProperties: { - virtualMachines: { - required: true, - serializedName: "virtualMachines", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine" - } - } - } - }, - justification: { - serializedName: "justification", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } } + }, + additionalProperties: { + type: { + name: "Object" + } } } }; -export const DiscoveredSecuritySolution: msRest.CompositeMapper = { - serializedName: "DiscoveredSecuritySolution", +export const Alert: msRest.CompositeMapper = { + serializedName: "Alert", type: { name: "Composite", - className: "DiscoveredSecuritySolution", + className: "Alert", modelProperties: { - id: { + ...Resource.type.modelProperties, + alertType: { readOnly: true, - serializedName: "id", + serializedName: "properties.alertType", type: { name: "String" } }, - name: { + systemAlertId: { readOnly: true, - serializedName: "name", + serializedName: "properties.systemAlertId", type: { name: "String" } }, - type: { + productComponentName: { readOnly: true, - serializedName: "type", + serializedName: "properties.productComponentName", + type: { + name: "String" + } + }, + alertDisplayName: { + readOnly: true, + serializedName: "properties.alertDisplayName", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + severity: { + readOnly: true, + serializedName: "properties.severity", + type: { + name: "String" + } + }, + intent: { + readOnly: true, + serializedName: "properties.intent", + type: { + name: "String" + } + }, + startTimeUtc: { + readOnly: true, + serializedName: "properties.startTimeUtc", + type: { + name: "DateTime" + } + }, + endTimeUtc: { + readOnly: true, + serializedName: "properties.endTimeUtc", + type: { + name: "DateTime" + } + }, + resourceIdentifiers: { + readOnly: true, + serializedName: "properties.resourceIdentifiers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceIdentifier" + } + } + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", type: { name: "String" } }, - location: { + extendedLinks: { readOnly: true, - serializedName: "location", + serializedName: "properties.extendedLinks", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } } }, - securityFamily: { - required: true, - serializedName: "properties.securityFamily", + alertUri: { + readOnly: true, + serializedName: "properties.alertUri", type: { name: "String" } }, - offer: { - required: true, - serializedName: "properties.offer", + timeGeneratedUtc: { + readOnly: true, + serializedName: "properties.timeGeneratedUtc", type: { - name: "String" + name: "DateTime" } }, - publisher: { - required: true, - serializedName: "properties.publisher", + productName: { + readOnly: true, + serializedName: "properties.productName", type: { name: "String" } }, - sku: { - required: true, - serializedName: "properties.sku", + processingEndTimeUtc: { + readOnly: true, + serializedName: "properties.processingEndTimeUtc", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const ExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolution", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "ExternalSecuritySolution", - className: "ExternalSecuritySolution", - modelProperties: { - id: { + }, + entities: { readOnly: true, - serializedName: "id", + serializedName: "properties.entities", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlertEntity", + additionalProperties: { + type: { + name: "Object" + } + } + } + } } }, - name: { + isIncident: { readOnly: true, - serializedName: "name", + serializedName: "properties.isIncident", type: { - name: "String" + name: "Boolean" } }, - type: { + correlationKey: { readOnly: true, - serializedName: "type", + serializedName: "properties.correlationKey", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + extendedProperties: { + serializedName: "properties.extendedProperties", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - kind: { - required: true, - serializedName: "kind", + compromisedEntity: { + readOnly: true, + serializedName: "properties.compromisedEntity", type: { name: "String" } @@ -5028,225 +8210,159 @@ export const ExternalSecuritySolution: msRest.CompositeMapper = { } }; -export const ExternalSecuritySolutionProperties: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionProperties", +export const AzureResourceIdentifier: msRest.CompositeMapper = { + serializedName: "AzureResource", type: { name: "Composite", - className: "ExternalSecuritySolutionProperties", + polymorphicDiscriminator: ResourceIdentifier.type.polymorphicDiscriminator, + uberParent: "ResourceIdentifier", + className: "AzureResourceIdentifier", modelProperties: { - deviceVendor: { - serializedName: "deviceVendor", - type: { - name: "String" - } - }, - deviceType: { - serializedName: "deviceType", + ...ResourceIdentifier.type.modelProperties, + azureResourceId: { + readOnly: true, + serializedName: "azureResourceId", type: { name: "String" } - }, - workspace: { - serializedName: "workspace", - type: { - name: "Composite", - className: "ConnectedWorkspace" - } - } - }, - additionalProperties: { - type: { - name: "Object" } } } }; -export const CefSolutionProperties: msRest.CompositeMapper = { - serializedName: "CefSolutionProperties", +export const LogAnalyticsIdentifier: msRest.CompositeMapper = { + serializedName: "LogAnalytics", type: { name: "Composite", - className: "CefSolutionProperties", + polymorphicDiscriminator: ResourceIdentifier.type.polymorphicDiscriminator, + uberParent: "ResourceIdentifier", + className: "LogAnalyticsIdentifier", modelProperties: { - ...ExternalSecuritySolutionProperties.type.modelProperties, - hostname: { - serializedName: "hostname", + ...ResourceIdentifier.type.modelProperties, + workspaceId: { + readOnly: true, + serializedName: "workspaceId", type: { name: "String" } }, - agent: { - serializedName: "agent", + workspaceSubscriptionId: { + readOnly: true, + serializedName: "workspaceSubscriptionId", + constraints: { + Pattern: /^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$/ + }, type: { name: "String" } }, - lastEventReceived: { - serializedName: "lastEventReceived", + workspaceResourceGroup: { + readOnly: true, + serializedName: "workspaceResourceGroup", type: { name: "String" } - } - }, - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties - } -}; - -export const CefExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "CEF", - type: { - name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "CefExternalSecuritySolution", - modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "CefSolutionProperties", - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties - } - } - } - } -}; - -export const AtaSolutionProperties: msRest.CompositeMapper = { - serializedName: "AtaSolutionProperties", - type: { - name: "Composite", - className: "AtaSolutionProperties", - modelProperties: { - ...ExternalSecuritySolutionProperties.type.modelProperties, - lastEventReceived: { - serializedName: "lastEventReceived", + }, + agentId: { + readOnly: true, + serializedName: "agentId", type: { name: "String" } } - }, - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties - } -}; - -export const AtaExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "ATA", - type: { - name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "AtaExternalSecuritySolution", - modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AtaSolutionProperties", - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties - } - } } } }; -export const ConnectedWorkspace: msRest.CompositeMapper = { - serializedName: "ConnectedWorkspace", +export const AlertSimulatorRequestProperties: msRest.CompositeMapper = { + serializedName: "AlertSimulatorRequestProperties", type: { name: "Composite", - className: "ConnectedWorkspace", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "AlertSimulatorRequestProperties", + className: "AlertSimulatorRequestProperties", modelProperties: { - id: { - serializedName: "id", + kind: { + required: true, + serializedName: "kind", type: { name: "String" } } - } - } -}; - -export const AadSolutionProperties: msRest.CompositeMapper = { - serializedName: "AadSolutionProperties", - type: { - name: "Composite", - className: "AadSolutionProperties", - modelProperties: { - deviceVendor: { - serializedName: "deviceVendor", - type: { - name: "String" - } - }, - deviceType: { - serializedName: "deviceType", - type: { - name: "String" - } - }, - workspace: { - serializedName: "workspace", - type: { - name: "Composite", - className: "ConnectedWorkspace" - } - }, - connectivityState: { - serializedName: "connectivityState", - type: { - name: "String" - } + }, + additionalProperties: { + type: { + name: "Object" } } } }; -export const AadExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "AAD", +export const AlertSimulatorRequestBody: msRest.CompositeMapper = { + serializedName: "AlertSimulatorRequestBody", type: { name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "AadExternalSecuritySolution", + className: "AlertSimulatorRequestBody", modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "AadSolutionProperties" + className: "AlertSimulatorRequestProperties", + additionalProperties: { + type: { + name: "Object" + } + } } } } } }; -export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionKind", +export const AlertSimulatorBundlesRequestProperties: msRest.CompositeMapper = { + serializedName: "Bundles", type: { name: "Composite", - className: "ExternalSecuritySolutionKind1", + polymorphicDiscriminator: AlertSimulatorRequestProperties.type.polymorphicDiscriminator, + uberParent: "AlertSimulatorRequestProperties", + className: "AlertSimulatorBundlesRequestProperties", modelProperties: { - kind: { - serializedName: "kind", + ...AlertSimulatorRequestProperties.type.modelProperties, + bundles: { + serializedName: "bundles", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } - } + }, + additionalProperties: AlertSimulatorRequestProperties.type.additionalProperties } }; -export const AadConnectivityState1: msRest.CompositeMapper = { - serializedName: "AadConnectivityState", +export const Setting: msRest.CompositeMapper = { + serializedName: "Setting", type: { name: "Composite", - className: "AadConnectivityState1", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "Setting", + className: "Setting", modelProperties: { - connectivityState: { - serializedName: "connectivityState", + ...Resource.type.modelProperties, + kind: { + required: true, + serializedName: "kind", type: { name: "String" } @@ -5255,101 +8371,72 @@ export const AadConnectivityState1: msRest.CompositeMapper = { } }; -export const SecureScoreItem: msRest.CompositeMapper = { - serializedName: "SecureScoreItem", +export const DataExportSettings: msRest.CompositeMapper = { + serializedName: "DataExportSettings", type: { name: "Composite", - className: "SecureScoreItem", + polymorphicDiscriminator: Setting.type.polymorphicDiscriminator, + uberParent: "Setting", + className: "DataExportSettings", modelProperties: { - ...Resource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - max: { - readOnly: true, - serializedName: "properties.score.max", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - current: { - readOnly: true, - serializedName: "properties.score.current", - constraints: { - InclusiveMinimum: 0 - }, + ...Setting.type.modelProperties, + enabled: { + required: true, + serializedName: "properties.enabled", type: { - name: "Number" + name: "Boolean" } } } } }; -export const SecureScoreControlScore: msRest.CompositeMapper = { - serializedName: "SecureScoreControlScore", +export const AlertSyncSettings: msRest.CompositeMapper = { + serializedName: "AlertSyncSettings", type: { name: "Composite", - className: "SecureScoreControlScore", + polymorphicDiscriminator: Setting.type.polymorphicDiscriminator, + uberParent: "Setting", + className: "AlertSyncSettings", modelProperties: { - max: { - readOnly: true, - serializedName: "max", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - current: { - readOnly: true, - serializedName: "current", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, + ...Setting.type.modelProperties, + enabled: { + required: true, + serializedName: "properties.enabled", type: { - name: "Number" + name: "Boolean" } } } } }; -export const SecureScoreControlDefinitionSource: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDefinitionSource", +export const IngestionSetting: msRest.CompositeMapper = { + serializedName: "IngestionSetting", type: { name: "Composite", - className: "SecureScoreControlDefinitionSource", + className: "IngestionSetting", modelProperties: { - sourceType: { - serializedName: "sourceType", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Object" } } } } }; -export const AzureResourceLink: msRest.CompositeMapper = { - serializedName: "AzureResourceLink", +export const IngestionSettingToken: msRest.CompositeMapper = { + serializedName: "IngestionSettingToken", type: { name: "Composite", - className: "AzureResourceLink", + className: "IngestionSettingToken", modelProperties: { - id: { + token: { readOnly: true, - serializedName: "id", + serializedName: "token", type: { name: "String" } @@ -5358,58 +8445,45 @@ export const AzureResourceLink: msRest.CompositeMapper = { } }; -export const SecureScoreControlDefinitionItem: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDefinitionItem", +export const IngestionConnectionString: msRest.CompositeMapper = { + serializedName: "IngestionConnectionString", type: { name: "Composite", - className: "SecureScoreControlDefinitionItem", + className: "IngestionConnectionString", modelProperties: { - ...Resource.type.modelProperties, - displayName: { + location: { readOnly: true, - serializedName: "properties.displayName", + serializedName: "location", type: { name: "String" } }, - description: { + value: { readOnly: true, - serializedName: "properties.description", - constraints: { - MaxLength: 256 - }, + serializedName: "value", type: { name: "String" } - }, - maxScore: { - readOnly: true, - serializedName: "properties.maxScore", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - source: { - readOnly: true, - serializedName: "properties.source", - type: { - name: "Composite", - className: "SecureScoreControlDefinitionSource" - } - }, - assessmentDefinitions: { - readOnly: true, - serializedName: "properties.assessmentDefinitions", + } + } + } +}; + +export const ConnectionStrings: msRest.CompositeMapper = { + serializedName: "ConnectionStrings", + type: { + name: "Composite", + className: "ConnectionStrings", + modelProperties: { + value: { + required: true, + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureResourceLink" + className: "IngestionConnectionString" } } } @@ -5418,123 +8492,63 @@ export const SecureScoreControlDefinitionItem: msRest.CompositeMapper = { } }; -export const SecureScoreControlDetails: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDetails", +export const Software: msRest.CompositeMapper = { + serializedName: "Software", type: { name: "Composite", - className: "SecureScoreControlDetails", + className: "Software", modelProperties: { ...Resource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", + deviceId: { + serializedName: "properties.deviceId", type: { name: "String" } }, - max: { - readOnly: true, - serializedName: "properties.score.max", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - current: { - readOnly: true, - serializedName: "properties.score.current", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - healthyResourceCount: { - readOnly: true, - serializedName: "properties.healthyResourceCount", + osPlatform: { + serializedName: "properties.osPlatform", type: { - name: "Number" + name: "String" } }, - unhealthyResourceCount: { - readOnly: true, - serializedName: "properties.unhealthyResourceCount", + vendor: { + serializedName: "properties.vendor", type: { - name: "Number" + name: "String" } }, - notApplicableResourceCount: { - readOnly: true, - serializedName: "properties.notApplicableResourceCount", + softwareName: { + serializedName: "properties.softwareName", type: { - name: "Number" + name: "String" } }, - definition: { - serializedName: "properties.definition", - type: { - name: "Composite", - className: "SecureScoreControlDefinitionItem" - } - } - } - } -}; - -export const ComplianceResultList: msRest.CompositeMapper = { - serializedName: "ComplianceResultList", - type: { - name: "Composite", - className: "ComplianceResultList", - modelProperties: { - value: { - required: true, - serializedName: "", + version: { + serializedName: "properties.version", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComplianceResult" - } - } + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + endOfSupportStatus: { + serializedName: "properties.endOfSupportStatus", type: { name: "String" } - } - } - } -}; - -export const AlertList: msRest.CompositeMapper = { - serializedName: "AlertList", - type: { - name: "Composite", - className: "AlertList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Alert" - } - } + }, + endOfSupportDate: { + serializedName: "properties.endOfSupportDate", + type: { + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + numberOfKnownVulnerabilities: { + serializedName: "properties.numberOfKnownVulnerabilities", + type: { + name: "Number" + } + }, + firstSeenAt: { + serializedName: "properties.firstSeenAt", type: { name: "String" } @@ -5543,20 +8557,21 @@ export const AlertList: msRest.CompositeMapper = { } }; -export const SettingsList: msRest.CompositeMapper = { - serializedName: "SettingsList", +export const ComplianceResultList: msRest.CompositeMapper = { + serializedName: "ComplianceResultList", type: { name: "Composite", - className: "SettingsList", + className: "ComplianceResultList", modelProperties: { value: { + required: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Setting" + className: "ComplianceResult" } } } @@ -6432,10 +9447,272 @@ export const SecureScoreControlDefinitionList: msRest.CompositeMapper = { } }; +export const SecuritySolutionList: msRest.CompositeMapper = { + serializedName: "SecuritySolutionList", + type: { + name: "Composite", + className: "SecuritySolutionList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecuritySolution" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectorSettingList: msRest.CompositeMapper = { + serializedName: "ConnectorSettingList", + type: { + name: "Composite", + className: "ConnectorSettingList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectorSetting" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DeviceList: msRest.CompositeMapper = { + serializedName: "DeviceList", + type: { + name: "Composite", + className: "DeviceList", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Device" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IotAlertListModel: msRest.CompositeMapper = { + serializedName: "IotAlertListModel", + type: { + name: "Composite", + className: "IotAlertListModel", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotAlertModel" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IotRecommendationListModel: msRest.CompositeMapper = { + serializedName: "IotRecommendationListModel", + type: { + name: "Composite", + className: "IotRecommendationListModel", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotRecommendationModel" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AlertList: msRest.CompositeMapper = { + serializedName: "AlertList", + type: { + name: "Composite", + className: "AlertList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Alert" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SettingsList: msRest.CompositeMapper = { + serializedName: "SettingsList", + type: { + name: "Composite", + className: "SettingsList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Setting" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IngestionSettingList: msRest.CompositeMapper = { + serializedName: "IngestionSettingList", + type: { + name: "Composite", + className: "IngestionSettingList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IngestionSetting" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SoftwaresList: msRest.CompositeMapper = { + serializedName: "SoftwaresList", + type: { + name: "Composite", + className: "SoftwaresList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Software" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const discriminators = { - 'BaseResource.Setting' : Setting, - 'BaseResource.DataExportSettings' : DataExportSettings, - 'BaseResource.SettingResource' : SettingResource, 'CustomAlertRule.ThresholdCustomAlertRule' : ThresholdCustomAlertRule, 'CustomAlertRule.TimeWindowCustomAlertRule' : TimeWindowCustomAlertRule, 'CustomAlertRule.AllowlistCustomAlertRule' : AllowlistCustomAlertRule, @@ -6443,6 +9720,7 @@ export const discriminators = { 'CustomAlertRule' : CustomAlertRule, 'CustomAlertRule.ListCustomAlertRule' : ListCustomAlertRule, 'CustomAlertRule.ConnectionToIpNotAllowed' : ConnectionToIpNotAllowed, + 'CustomAlertRule.ConnectionFromIpNotAllowed' : ConnectionFromIpNotAllowed, 'CustomAlertRule.LocalUserNotAllowed' : LocalUserNotAllowed, 'CustomAlertRule.ProcessNotAllowed' : ProcessNotAllowed, 'CustomAlertRule.ActiveConnectionsNotInAllowedRange' : ActiveConnectionsNotInAllowedRange, @@ -6466,6 +9744,7 @@ export const discriminators = { 'AdditionalData.SqlServerVulnerability' : SqlServerVulnerabilityProperties, 'AdditionalData.ContainerRegistryVulnerability' : ContainerRegistryVulnerabilityProperties, 'AdditionalData.ServerVulnerabilityAssessment' : ServerVulnerabilityProperties, + 'ResourceDetails.OnPremiseSql' : OnPremiseSqlResourceDetails, 'ResourceDetails.OnPremise' : OnPremiseResourceDetails, 'ResourceDetails.Azure' : AzureResourceDetails, 'AutomationAction' : AutomationAction, @@ -6475,6 +9754,18 @@ export const discriminators = { 'ExternalSecuritySolution' : ExternalSecuritySolution, 'ExternalSecuritySolution.CEF' : CefExternalSecuritySolution, 'ExternalSecuritySolution.ATA' : AtaExternalSecuritySolution, - 'ExternalSecuritySolution.AAD' : AadExternalSecuritySolution + 'ExternalSecuritySolution.AAD' : AadExternalSecuritySolution, + 'AuthenticationDetailsProperties' : AuthenticationDetailsProperties, + 'AuthenticationDetailsProperties.awsCreds' : AwsCredsAuthenticationDetailsProperties, + 'AuthenticationDetailsProperties.awsAssumeRole' : AwAssumeRoleAuthenticationDetailsProperties, + 'AuthenticationDetailsProperties.gcpCredentials' : GcpCredentialsDetailsProperties, + 'ResourceIdentifier' : ResourceIdentifier, + 'ResourceIdentifier.AzureResource' : AzureResourceIdentifier, + 'ResourceIdentifier.LogAnalytics' : LogAnalyticsIdentifier, + 'AlertSimulatorRequestProperties' : AlertSimulatorRequestProperties, + 'AlertSimulatorRequestProperties.Bundles' : AlertSimulatorBundlesRequestProperties, + 'Setting' : Setting, + 'Setting.DataExportSettings' : DataExportSettings, + 'Setting.AlertSyncSettings' : AlertSyncSettings }; diff --git a/sdk/security/arm-security/src/models/onPremiseIotSensorsMappers.ts b/sdk/security/arm-security/src/models/onPremiseIotSensorsMappers.ts new file mode 100644 index 000000000000..7e62c67c18c6 --- /dev/null +++ b/sdk/security/arm-security/src/models/onPremiseIotSensorsMappers.ts @@ -0,0 +1,145 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseIotSensorsList, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + ResetPasswordInput, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/operationsMappers.ts b/sdk/security/arm-security/src/models/operationsMappers.ts index 786d9130f59f..583dd59bc975 100644 --- a/sdk/security/arm-security/src/models/operationsMappers.ts +++ b/sdk/security/arm-security/src/models/operationsMappers.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. diff --git a/sdk/security/arm-security/src/models/parameters.ts b/sdk/security/arm-security/src/models/parameters.ts index f9b159e02557..a22ff0f8d0db 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/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 @@ -82,7 +81,7 @@ export const alertsSuppressionRuleName: msRest.OperationURLParameter = { } } }; -export const alertType: msRest.OperationQueryParameter = { +export const alertType0: msRest.OperationQueryParameter = { parameterPath: [ "options", "alertType" @@ -94,6 +93,18 @@ export const alertType: msRest.OperationQueryParameter = { } } }; +export const alertType1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "alertType" + ], + mapper: { + serializedName: "alertType", + type: { + name: "String" + } + } +}; export const apiVersion0: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -118,6 +129,66 @@ export const apiVersion1: msRest.OperationQueryParameter = { } } }; +export const apiVersion10: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2020-08-06-preview', + type: { + name: "String" + } + } +}; +export const apiVersion11: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2021-01-01', + type: { + name: "String" + } + } +}; +export const apiVersion12: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2021-06-01', + type: { + name: "String" + } + } +}; +export const apiVersion13: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2021-01-15-preview', + type: { + name: "String" + } + } +}; +export const apiVersion14: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2021-05-01-preview', + type: { + name: "String" + } + } +}; export const apiVersion2: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -202,6 +273,16 @@ export const apiVersion8: msRest.OperationQueryParameter = { } } }; +export const apiVersion9: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; export const ascLocation: msRest.OperationURLParameter = { parameterPath: "ascLocation", mapper: { @@ -232,18 +313,6 @@ export const assessmentName: msRest.OperationURLParameter = { } } }; -export const autoDismissRuleName: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "autoDismissRuleName" - ], - mapper: { - serializedName: "autoDismissRuleName", - type: { - name: "String" - } - } -}; export const automationName: msRest.OperationURLParameter = { parameterPath: "automationName", mapper: { @@ -274,6 +343,18 @@ export const complianceResultName: msRest.OperationURLParameter = { } } }; +export const compromisedEntity: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "compromisedEntity" + ], + mapper: { + serializedName: "compromisedEntity", + type: { + name: "String" + } + } +}; export const connectionType: msRest.OperationURLParameter = { parameterPath: "connectionType", mapper: { @@ -284,6 +365,50 @@ export const connectionType: msRest.OperationURLParameter = { } } }; +export const connectorName: msRest.OperationURLParameter = { + parameterPath: "connectorName", + mapper: { + required: true, + serializedName: "connectorName", + type: { + name: "String" + } + } +}; +export const deviceId0: msRest.OperationURLParameter = { + parameterPath: "deviceId", + mapper: { + required: true, + serializedName: "deviceId", + type: { + name: "String" + } + } +}; +export const deviceId1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deviceId" + ], + mapper: { + serializedName: "deviceId", + type: { + name: "String" + } + } +}; +export const deviceManagementType: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deviceManagementType" + ], + mapper: { + serializedName: "deviceManagementType", + type: { + name: "String" + } + } +}; export const deviceSecurityGroupName: msRest.OperationURLParameter = { parameterPath: "deviceSecurityGroupName", mapper: { @@ -370,6 +495,66 @@ export const informationProtectionPolicyName: msRest.OperationURLParameter = { } } }; +export const ingestionSettingName: msRest.OperationURLParameter = { + parameterPath: "ingestionSettingName", + mapper: { + required: true, + serializedName: "ingestionSettingName", + type: { + name: "String" + } + } +}; +export const iotAlertId: msRest.OperationURLParameter = { + parameterPath: "iotAlertId", + mapper: { + required: true, + serializedName: "iotAlertId", + type: { + name: "String" + } + } +}; +export const iotAlertTypeName: msRest.OperationURLParameter = { + parameterPath: "iotAlertTypeName", + mapper: { + required: true, + serializedName: "iotAlertTypeName", + type: { + name: "String" + } + } +}; +export const iotRecommendationId: msRest.OperationURLParameter = { + parameterPath: "iotRecommendationId", + mapper: { + required: true, + serializedName: "iotRecommendationId", + type: { + name: "String" + } + } +}; +export const iotRecommendationTypeName: msRest.OperationURLParameter = { + parameterPath: "iotRecommendationTypeName", + mapper: { + required: true, + serializedName: "iotRecommendationTypeName", + type: { + name: "String" + } + } +}; +export const iotSensorName: msRest.OperationURLParameter = { + parameterPath: "iotSensorName", + mapper: { + required: true, + serializedName: "iotSensorName", + type: { + name: "String" + } + } +}; export const jitNetworkAccessPolicyInitiateType: msRest.OperationURLParameter = { parameterPath: "jitNetworkAccessPolicyInitiateType", mapper: { @@ -392,6 +577,42 @@ export const jitNetworkAccessPolicyName: msRest.OperationURLParameter = { } } }; +export const limit: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "limit" + ], + mapper: { + serializedName: "$limit", + type: { + name: "Number" + } + } +}; +export const maxStartTimeUtc: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "maxStartTimeUtc" + ], + mapper: { + serializedName: "startTimeUtc<", + type: { + name: "String" + } + } +}; +export const minStartTimeUtc: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "minStartTimeUtc" + ], + mapper: { + serializedName: "startTimeUtc>", + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { @@ -403,6 +624,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const onPremiseIotSensorName: msRest.OperationURLParameter = { + parameterPath: "onPremiseIotSensorName", + mapper: { + required: true, + serializedName: "onPremiseIotSensorName", + type: { + name: "String" + } + } +}; export const pricingName: msRest.OperationURLParameter = { parameterPath: "pricingName", mapper: { @@ -413,6 +644,18 @@ export const pricingName: msRest.OperationURLParameter = { } } }; +export const recommendationType: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "recommendationType" + ], + mapper: { + serializedName: "recommendationType", + type: { + name: "String" + } + } +}; export const regulatoryComplianceAssessmentName: msRest.OperationURLParameter = { parameterPath: "regulatoryComplianceAssessmentName", mapper: { @@ -466,7 +709,8 @@ export const resourceId: msRest.OperationURLParameter = { type: { name: "String" } - } + }, + skipEncoding: true }; export const resourceName: msRest.OperationURLParameter = { parameterPath: "resourceName", @@ -498,6 +742,36 @@ export const resourceType: msRest.OperationURLParameter = { } } }; +export const ruleId: msRest.OperationURLParameter = { + parameterPath: "ruleId", + mapper: { + required: true, + serializedName: "ruleId", + type: { + name: "String" + } + } +}; +export const scanId: msRest.OperationURLParameter = { + parameterPath: "scanId", + mapper: { + required: true, + serializedName: "scanId", + type: { + name: "String" + } + } +}; +export const scanResultId: msRest.OperationURLParameter = { + parameterPath: "scanResultId", + mapper: { + required: true, + serializedName: "scanResultId", + type: { + name: "String" + } + } +}; export const scope: msRest.OperationURLParameter = { parameterPath: "scope", mapper: { @@ -506,7 +780,8 @@ export const scope: msRest.OperationURLParameter = { type: { name: "String" } - } + }, + skipEncoding: true }; export const secureScoreName: msRest.OperationURLParameter = { parameterPath: "secureScoreName", @@ -528,13 +803,11 @@ export const securityContactName: msRest.OperationURLParameter = { } } }; -export const select: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "select" - ], +export const securitySolutionName: msRest.OperationURLParameter = { + parameterPath: "securitySolutionName", mapper: { - serializedName: "$select", + required: true, + serializedName: "securitySolutionName", type: { name: "String" } @@ -556,7 +829,9 @@ export const settingName0: msRest.OperationURLParameter = { parameterPath: "settingName", mapper: { required: true, + isConstant: true, serializedName: "settingName", + defaultValue: 'current', type: { name: "String" } @@ -566,9 +841,29 @@ export const settingName1: msRest.OperationURLParameter = { parameterPath: "settingName", mapper: { required: true, - isConstant: true, serializedName: "settingName", - defaultValue: 'current', + type: { + name: "String" + } + } +}; +export const skipToken: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skipToken" + ], + mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; +export const softwareName: msRest.OperationURLParameter = { + parameterPath: "softwareName", + mapper: { + required: true, + serializedName: "softwareName", type: { name: "String" } @@ -661,6 +956,16 @@ export const topologyResourceName: msRest.OperationURLParameter = { } } }; +export const workspaceId: msRest.OperationQueryParameter = { + parameterPath: "workspaceId", + mapper: { + required: true, + serializedName: "workspaceId", + type: { + name: "String" + } + } +}; export const workspaceSettingName: msRest.OperationURLParameter = { parameterPath: "workspaceSettingName", mapper: { diff --git a/sdk/security/arm-security/src/models/pricingsMappers.ts b/sdk/security/arm-security/src/models/pricingsMappers.ts index 8c0b7e2f63d0..cd5b9ba52653 100644 --- a/sdk/security/arm-security/src/models/pricingsMappers.ts +++ b/sdk/security/arm-security/src/models/pricingsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, PricingList, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts index e7b0eb8c1f54..2aa52938afb9 100644 --- a/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts +++ b/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceAssessmentList, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts index 4317808f4caa..9b546318a0fb 100644 --- a/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts +++ b/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceControlList, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts index 55f0fb2e32a0..f71c9be427e1 100644 --- a/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts +++ b/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, RegulatoryComplianceStandardList, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.ts b/sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.ts index be7137baa179..ccfb073559a9 100644 --- a/sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.ts +++ b/sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionList, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/secureScoreControlsMappers.ts b/sdk/security/arm-security/src/models/secureScoreControlsMappers.ts index 95ef07ed4ed6..18831f247670 100644 --- a/sdk/security/arm-security/src/models/secureScoreControlsMappers.ts +++ b/sdk/security/arm-security/src/models/secureScoreControlsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/secureScoresMappers.ts b/sdk/security/arm-security/src/models/secureScoresMappers.ts index fad75d0ee288..7a8e2e4fe3e6 100644 --- a/sdk/security/arm-security/src/models/secureScoresMappers.ts +++ b/sdk/security/arm-security/src/models/secureScoresMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/securityContactsMappers.ts b/sdk/security/arm-security/src/models/securityContactsMappers.ts index c55eb989a1e5..d65ed7c3ecf5 100644 --- a/sdk/security/arm-security/src/models/securityContactsMappers.ts +++ b/sdk/security/arm-security/src/models/securityContactsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/securitySolutionsMappers.ts b/sdk/security/arm-security/src/models/securitySolutionsMappers.ts new file mode 100644 index 000000000000..fd2d20d72cfd --- /dev/null +++ b/sdk/security/arm-security/src/models/securitySolutionsMappers.ts @@ -0,0 +1,14 @@ +/* + * 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 { + discriminators, + CloudError, + SecuritySolution, + SecuritySolutionList +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/securitySolutionsReferenceDataOperationsMappers.ts b/sdk/security/arm-security/src/models/securitySolutionsReferenceDataOperationsMappers.ts new file mode 100644 index 000000000000..67198c4e8267 --- /dev/null +++ b/sdk/security/arm-security/src/models/securitySolutionsReferenceDataOperationsMappers.ts @@ -0,0 +1,14 @@ +/* + * 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 { + discriminators, + CloudError, + SecuritySolutionsReferenceData, + SecuritySolutionsReferenceDataList +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts b/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts index 6b1483809d9b..3c9889a7549e 100644 --- a/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts +++ b/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -85,11 +123,14 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityAssessmentsList, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/settingsMappers.ts b/sdk/security/arm-security/src/models/settingsMappers.ts index 9f1dbb8616d5..01ab7cffadc7 100644 --- a/sdk/security/arm-security/src/models/settingsMappers.ts +++ b/sdk/security/arm-security/src/models/settingsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -85,11 +123,14 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, SettingsList, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/softwareInventoriesMappers.ts b/sdk/security/arm-security/src/models/softwareInventoriesMappers.ts new file mode 100644 index 000000000000..16d53638fabd --- /dev/null +++ b/sdk/security/arm-security/src/models/softwareInventoriesMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SoftwaresList, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentBaselineRulesMappers.ts b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentBaselineRulesMappers.ts new file mode 100644 index 000000000000..ffa9771f7eb8 --- /dev/null +++ b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentBaselineRulesMappers.ts @@ -0,0 +1,146 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsInput, + RuleResultsProperties, + RulesResults, + RulesResultsInput, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScanResultsMappers.ts b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScanResultsMappers.ts new file mode 100644 index 000000000000..e410464eff2a --- /dev/null +++ b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScanResultsMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScanResults, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScansMappers.ts b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScansMappers.ts new file mode 100644 index 000000000000..ffc403e3625a --- /dev/null +++ b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScansMappers.ts @@ -0,0 +1,144 @@ +/* + * 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 { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + Scans, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/subAssessmentsMappers.ts b/sdk/security/arm-security/src/models/subAssessmentsMappers.ts index fb7d8ae47902..5e4c6901a101 100644 --- a/sdk/security/arm-security/src/models/subAssessmentsMappers.ts +++ b/sdk/security/arm-security/src/models/subAssessmentsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/tasksMappers.ts b/sdk/security/arm-security/src/models/tasksMappers.ts index b286ef7f5251..1f079e13f684 100644 --- a/sdk/security/arm-security/src/models/tasksMappers.ts +++ b/sdk/security/arm-security/src/models/tasksMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,13 @@ export { SecurityTaskList, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/topologyMappers.ts b/sdk/security/arm-security/src/models/topologyMappers.ts index 80804dc1264b..e4d48be2f7d0 100644 --- a/sdk/security/arm-security/src/models/topologyMappers.ts +++ b/sdk/security/arm-security/src/models/topologyMappers.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. diff --git a/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts b/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts index 7073a31098ee..15b4b89f160c 100644 --- a/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts +++ b/sdk/security/arm-security/src/models/workspaceSettingsMappers.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. @@ -13,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -85,10 +123,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -96,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting, WorkspaceSettingList diff --git a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts b/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts index 8260930d328a..14a11210a0fc 100644 --- a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts +++ b/sdk/security/arm-security/src/operations/adaptiveApplicationControls.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 @@ -27,7 +26,7 @@ export class AdaptiveApplicationControls { } /** - * Gets a list of application control VM/server groups for the subscription. + * Gets a list of application control machine groups for the subscription. * @param [options] The optional parameters * @returns Promise */ @@ -35,13 +34,13 @@ export class AdaptiveApplicationControls { /** * @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: Models.AdaptiveApplicationControlsListOptionalParams, callback: msRest.ServiceCallback): void; - list(options?: Models.AdaptiveApplicationControlsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options: Models.AdaptiveApplicationControlsListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.AdaptiveApplicationControlsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -52,23 +51,23 @@ export class AdaptiveApplicationControls { /** * Gets an application control VM/server group. - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param [options] The optional parameters * @returns Promise */ get(groupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param callback The callback */ - get(groupName: string, callback: msRest.ServiceCallback): void; + get(groupName: string, callback: msRest.ServiceCallback): void; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param options The optional parameters * @param callback The callback */ - get(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -79,27 +78,27 @@ export class AdaptiveApplicationControls { } /** - * Update an application control VM/server group - * @param groupName Name of an application control VM/server group + * Update an application control machine group + * @param groupName Name of an application control machine group * @param body * @param [options] The optional parameters * @returns Promise */ - put(groupName: string, body: Models.AppWhitelistingGroup, options?: msRest.RequestOptionsBase): Promise; + put(groupName: string, body: Models.AdaptiveApplicationControlGroup, options?: msRest.RequestOptionsBase): Promise; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param body * @param callback The callback */ - put(groupName: string, body: Models.AppWhitelistingGroup, callback: msRest.ServiceCallback): void; + put(groupName: string, body: Models.AdaptiveApplicationControlGroup, callback: msRest.ServiceCallback): void; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param body * @param options The optional parameters * @param callback The callback */ - put(groupName: string, body: Models.AppWhitelistingGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - put(groupName: string, body: Models.AppWhitelistingGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + put(groupName: string, body: Models.AdaptiveApplicationControlGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + put(groupName: string, body: Models.AdaptiveApplicationControlGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -111,19 +110,19 @@ export class AdaptiveApplicationControls { } /** - * Delete an application control VM/server group - * @param groupName Name of an application control VM/server group + * Delete an application control machine group + * @param groupName Name of an application control machine group * @param [options] The optional parameters * @returns Promise */ deleteMethod(groupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param callback The callback */ deleteMethod(groupName: string, callback: msRest.ServiceCallback): void; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param options The optional parameters * @param callback The callback */ @@ -157,7 +156,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.AppWhitelistingGroups + bodyMapper: Mappers.AdaptiveApplicationControlGroups }, default: { bodyMapper: Mappers.CloudError @@ -182,7 +181,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.AppWhitelistingGroup + bodyMapper: Mappers.AdaptiveApplicationControlGroup }, default: { bodyMapper: Mappers.CloudError @@ -208,13 +207,13 @@ const putOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "body", mapper: { - ...Mappers.AppWhitelistingGroup, + ...Mappers.AdaptiveApplicationControlGroup, required: true } }, responses: { 200: { - bodyMapper: Mappers.AppWhitelistingGroup + bodyMapper: Mappers.AdaptiveApplicationControlGroup }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts b/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts index c46277aaafee..c4878b87fbf7 100644 --- a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts +++ b/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.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 @@ -289,6 +288,9 @@ const listByExtendedResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts b/sdk/security/arm-security/src/operations/advancedThreatProtection.ts index e46de5f02a25..085123332b48 100644 --- a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts +++ b/sdk/security/arm-security/src/operations/advancedThreatProtection.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 @@ -94,7 +93,7 @@ const getOperationSpec: msRest.OperationSpec = { path: "{resourceId}/providers/Microsoft.Security/advancedThreatProtectionSettings/{settingName}", urlParameters: [ Parameters.resourceId, - Parameters.settingName1 + Parameters.settingName0 ], queryParameters: [ Parameters.apiVersion2 @@ -118,7 +117,7 @@ const createOperationSpec: msRest.OperationSpec = { path: "{resourceId}/providers/Microsoft.Security/advancedThreatProtectionSettings/{settingName}", urlParameters: [ Parameters.resourceId, - Parameters.settingName1 + Parameters.settingName0 ], queryParameters: [ Parameters.apiVersion2 diff --git a/sdk/security/arm-security/src/operations/alerts.ts b/sdk/security/arm-security/src/operations/alerts.ts index cff6bc8b0bd5..12abd12e522a 100644 --- a/sdk/security/arm-security/src/operations/alerts.ts +++ b/sdk/security/arm-security/src/operations/alerts.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/alertsMappers"; import * as Parameters from "../models/parameters"; @@ -31,7 +31,7 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - list(options?: Models.AlertsListOptionalParams): Promise; + list(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ @@ -40,8 +40,8 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - list(options: Models.AlertsListOptionalParams, callback: msRest.ServiceCallback): void; - list(options?: Models.AlertsListOptionalParams | 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 @@ -57,7 +57,7 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup(resourceGroupName: string, options?: Models.AlertsListByResourceGroupOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. @@ -70,8 +70,8 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: Models.AlertsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: Models.AlertsListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -85,25 +85,25 @@ export class Alerts { * List all the alerts that are associated with the subscription that are stored in a specific * location * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listSubscriptionLevelAlertsByRegion(options?: Models.AlertsListSubscriptionLevelAlertsByRegionOptionalParams): Promise; + listSubscriptionLevelByRegion(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ - listSubscriptionLevelAlertsByRegion(callback: msRest.ServiceCallback): void; + listSubscriptionLevelByRegion(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - listSubscriptionLevelAlertsByRegion(options: Models.AlertsListSubscriptionLevelAlertsByRegionOptionalParams, callback: msRest.ServiceCallback): void; - listSubscriptionLevelAlertsByRegion(options?: Models.AlertsListSubscriptionLevelAlertsByRegionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSubscriptionLevelByRegion(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSubscriptionLevelByRegion(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, - listSubscriptionLevelAlertsByRegionOperationSpec, - callback) as Promise; + listSubscriptionLevelByRegionOperationSpec, + callback) as Promise; } /** @@ -112,58 +112,58 @@ export class Alerts { * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options?: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams): Promise; + listResourceGroupLevelByRegion(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param callback The callback */ - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, callback: msRest.ServiceCallback): void; + listResourceGroupLevelByRegion(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param options The optional parameters * @param callback The callback */ - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams, callback: msRest.ServiceCallback): void; - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options?: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listResourceGroupLevelByRegion(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listResourceGroupLevelByRegion(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listResourceGroupLevelAlertsByRegionOperationSpec, - callback) as Promise; + listResourceGroupLevelByRegionOperationSpec, + callback) as Promise; } /** * Get an alert that is associated with a subscription * @param alertName Name of the alert object * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getSubscriptionLevelAlert(alertName: string, options?: msRest.RequestOptionsBase): Promise; + getSubscriptionLevel(alertName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param alertName Name of the alert object * @param callback The callback */ - getSubscriptionLevelAlert(alertName: string, callback: msRest.ServiceCallback): void; + getSubscriptionLevel(alertName: string, callback: msRest.ServiceCallback): void; /** * @param alertName Name of the alert object * @param options The optional parameters * @param callback The callback */ - getSubscriptionLevelAlert(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getSubscriptionLevelAlert(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getSubscriptionLevel(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSubscriptionLevel(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, options }, - getSubscriptionLevelAlertOperationSpec, - callback) as Promise; + getSubscriptionLevelOperationSpec, + callback) as Promise; } /** @@ -172,16 +172,16 @@ export class Alerts { * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + getResourceGroupLevel(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param alertName Name of the alert object * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param callback The callback */ - getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + getResourceGroupLevel(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param alertName Name of the alert object * @param resourceGroupName The name of the resource group within the user's subscription. The name @@ -189,16 +189,16 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getResourceGroupLevel(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getResourceGroupLevel(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, resourceGroupName, options }, - getResourceGroupLevelAlertsOperationSpec, - callback) as Promise; + getResourceGroupLevelOperationSpec, + callback) as Promise; } /** @@ -207,25 +207,25 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - updateSubscriptionLevelAlertStateToDismiss(alertName: string, options?: msRest.RequestOptionsBase): Promise; + updateSubscriptionLevelStateToDismiss(alertName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param alertName Name of the alert object * @param callback The callback */ - updateSubscriptionLevelAlertStateToDismiss(alertName: string, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelStateToDismiss(alertName: string, callback: msRest.ServiceCallback): void; /** * @param alertName Name of the alert object * @param options The optional parameters * @param callback The callback */ - updateSubscriptionLevelAlertStateToDismiss(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateSubscriptionLevelAlertStateToDismiss(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateSubscriptionLevelStateToDismiss(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelStateToDismiss(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, options }, - updateSubscriptionLevelAlertStateToDismissOperationSpec, + updateSubscriptionLevelStateToDismissOperationSpec, callback); } @@ -235,25 +235,88 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - updateSubscriptionLevelAlertStateToReactivate(alertName: string, options?: msRest.RequestOptionsBase): Promise; + updateSubscriptionLevelStateToResolve(alertName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param alertName Name of the alert object * @param callback The callback */ - updateSubscriptionLevelAlertStateToReactivate(alertName: string, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelStateToResolve(alertName: string, callback: msRest.ServiceCallback): void; /** * @param alertName Name of the alert object * @param options The optional parameters * @param callback The callback */ - updateSubscriptionLevelAlertStateToReactivate(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateSubscriptionLevelAlertStateToReactivate(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateSubscriptionLevelStateToResolve(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelStateToResolve(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, options }, - updateSubscriptionLevelAlertStateToReactivateOperationSpec, + updateSubscriptionLevelStateToResolveOperationSpec, + callback); + } + + /** + * Update the alert's state + * @param alertName Name of the alert object + * @param [options] The optional parameters + * @returns Promise + */ + updateSubscriptionLevelStateToActivate(alertName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param alertName Name of the alert object + * @param callback The callback + */ + updateSubscriptionLevelStateToActivate(alertName: string, callback: msRest.ServiceCallback): void; + /** + * @param alertName Name of the alert object + * @param options The optional parameters + * @param callback The callback + */ + updateSubscriptionLevelStateToActivate(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelStateToActivate(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + alertName, + options + }, + updateSubscriptionLevelStateToActivateOperationSpec, + callback); + } + + /** + * Update the alert's state + * @param alertName Name of the alert object + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + updateResourceGroupLevelStateToResolve(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param alertName Name of the alert object + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param callback The callback + */ + updateResourceGroupLevelStateToResolve(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param alertName Name of the alert object + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + updateResourceGroupLevelStateToResolve(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelStateToResolve(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + alertName, + resourceGroupName, + options + }, + updateResourceGroupLevelStateToResolveOperationSpec, callback); } @@ -265,14 +328,14 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - updateResourceGroupLevelAlertStateToDismiss(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + updateResourceGroupLevelStateToDismiss(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param alertName Name of the alert object * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param callback The callback */ - updateResourceGroupLevelAlertStateToDismiss(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelStateToDismiss(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param alertName Name of the alert object * @param resourceGroupName The name of the resource group within the user's subscription. The name @@ -280,15 +343,15 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - updateResourceGroupLevelAlertStateToDismiss(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateResourceGroupLevelAlertStateToDismiss(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateResourceGroupLevelStateToDismiss(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelStateToDismiss(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, resourceGroupName, options }, - updateResourceGroupLevelAlertStateToDismissOperationSpec, + updateResourceGroupLevelStateToDismissOperationSpec, callback); } @@ -300,14 +363,14 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - updateResourceGroupLevelAlertStateToReactivate(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + updateResourceGroupLevelStateToActivate(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param alertName Name of the alert object * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param callback The callback */ - updateResourceGroupLevelAlertStateToReactivate(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelStateToActivate(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param alertName Name of the alert object * @param resourceGroupName The name of the resource group within the user's subscription. The name @@ -315,18 +378,45 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - updateResourceGroupLevelAlertStateToReactivate(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateResourceGroupLevelAlertStateToReactivate(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateResourceGroupLevelStateToActivate(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelStateToActivate(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, resourceGroupName, options }, - updateResourceGroupLevelAlertStateToReactivateOperationSpec, + updateResourceGroupLevelStateToActivateOperationSpec, callback); } + /** + * Simulate security alerts + * @param alertSimulatorRequestBody Alert Simulator Request Properties + * @param [options] The optional parameters + * @returns Promise + */ + simulate(alertSimulatorRequestBody: Models.AlertSimulatorRequestBody, options?: msRest.RequestOptionsBase): Promise { + return this.beginSimulate(alertSimulatorRequestBody,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Simulate security alerts + * @param alertSimulatorRequestBody Alert Simulator Request Properties + * @param [options] The optional parameters + * @returns Promise + */ + beginSimulate(alertSimulatorRequestBody: Models.AlertSimulatorRequestBody, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + alertSimulatorRequestBody, + options + }, + beginSimulateOperationSpec, + options); + } + /** * List all the alerts that are associated with the subscription * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -388,28 +478,28 @@ export class Alerts { * location * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listSubscriptionLevelByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listSubscriptionLevelByRegionNext(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 */ - listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSubscriptionLevelByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSubscriptionLevelByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listSubscriptionLevelAlertsByRegionNextOperationSpec, - callback) as Promise; + listSubscriptionLevelByRegionNextOperationSpec, + callback) as Promise; } /** @@ -417,28 +507,28 @@ export class Alerts { * location * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listResourceGroupLevelByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listResourceGroupLevelByRegionNext(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 */ - listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listResourceGroupLevelByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listResourceGroupLevelByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listResourceGroupLevelAlertsByRegionNextOperationSpec, - callback) as Promise; + listResourceGroupLevelByRegionNextOperationSpec, + callback) as Promise; } } @@ -451,11 +541,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -479,11 +565,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -499,7 +581,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { serializer }; -const listSubscriptionLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { +const listSubscriptionLevelByRegionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts", urlParameters: [ @@ -507,11 +589,7 @@ const listSubscriptionLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -527,7 +605,7 @@ const listSubscriptionLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { serializer }; -const listResourceGroupLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { +const listResourceGroupLevelByRegionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts", urlParameters: [ @@ -536,11 +614,7 @@ const listResourceGroupLevelAlertsByRegionOperationSpec: msRest.OperationSpec = Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -556,7 +630,7 @@ const listResourceGroupLevelAlertsByRegionOperationSpec: msRest.OperationSpec = serializer }; -const getSubscriptionLevelAlertOperationSpec: msRest.OperationSpec = { +const getSubscriptionLevelOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}", urlParameters: [ @@ -565,7 +639,7 @@ const getSubscriptionLevelAlertOperationSpec: msRest.OperationSpec = { Parameters.alertName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -581,7 +655,7 @@ const getSubscriptionLevelAlertOperationSpec: msRest.OperationSpec = { serializer }; -const getResourceGroupLevelAlertsOperationSpec: msRest.OperationSpec = { +const getResourceGroupLevelOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}", urlParameters: [ @@ -591,7 +665,7 @@ const getResourceGroupLevelAlertsOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -607,7 +681,7 @@ const getResourceGroupLevelAlertsOperationSpec: msRest.OperationSpec = { serializer }; -const updateSubscriptionLevelAlertStateToDismissOperationSpec: msRest.OperationSpec = { +const updateSubscriptionLevelStateToDismissOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", urlParameters: [ @@ -616,7 +690,30 @@ const updateSubscriptionLevelAlertStateToDismissOperationSpec: msRest.OperationS Parameters.alertName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateSubscriptionLevelStateToResolveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName + ], + queryParameters: [ + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -630,16 +727,40 @@ const updateSubscriptionLevelAlertStateToDismissOperationSpec: msRest.OperationS serializer }; -const updateSubscriptionLevelAlertStateToReactivateOperationSpec: msRest.OperationSpec = { +const updateSubscriptionLevelStateToActivateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/reactivate", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", urlParameters: [ Parameters.subscriptionId, Parameters.ascLocation, Parameters.alertName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateResourceGroupLevelStateToResolveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -653,7 +774,7 @@ const updateSubscriptionLevelAlertStateToReactivateOperationSpec: msRest.Operati serializer }; -const updateResourceGroupLevelAlertStateToDismissOperationSpec: msRest.OperationSpec = { +const updateResourceGroupLevelStateToDismissOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", urlParameters: [ @@ -663,7 +784,7 @@ const updateResourceGroupLevelAlertStateToDismissOperationSpec: msRest.Operation Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -677,9 +798,9 @@ const updateResourceGroupLevelAlertStateToDismissOperationSpec: msRest.Operation serializer }; -const updateResourceGroupLevelAlertStateToReactivateOperationSpec: msRest.OperationSpec = { +const updateResourceGroupLevelStateToActivateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/reactivate", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", urlParameters: [ Parameters.subscriptionId, Parameters.ascLocation, @@ -687,7 +808,7 @@ const updateResourceGroupLevelAlertStateToReactivateOperationSpec: msRest.Operat Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -701,6 +822,35 @@ const updateResourceGroupLevelAlertStateToReactivateOperationSpec: msRest.Operat serializer }; +const beginSimulateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/default/simulate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation + ], + queryParameters: [ + Parameters.apiVersion11 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "alertSimulatorRequestBody", + mapper: { + ...Mappers.AlertSimulatorRequestBody, + required: true + } + }, + responses: { + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -708,6 +858,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion11 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -729,6 +882,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion11 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -743,13 +899,16 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { serializer }; -const listSubscriptionLevelAlertsByRegionNextOperationSpec: msRest.OperationSpec = { +const listSubscriptionLevelByRegionNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion11 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -764,13 +923,16 @@ const listSubscriptionLevelAlertsByRegionNextOperationSpec: msRest.OperationSpec serializer }; -const listResourceGroupLevelAlertsByRegionNextOperationSpec: msRest.OperationSpec = { +const listResourceGroupLevelByRegionNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion11 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts b/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts index edd98341ab97..ddf94725c6ab 100644 --- a/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts +++ b/sdk/security/arm-security/src/operations/alertsSuppressionRules.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 @@ -144,7 +143,7 @@ export class AlertsSuppressionRules { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.AlertsSuppressionRulesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -155,8 +154,8 @@ export class AlertsSuppressionRules { * @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.AlertsSuppressionRulesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.AlertsSuppressionRulesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -177,7 +176,7 @@ const listOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion6, - Parameters.alertType + Parameters.alertType0 ], headerParameters: [ Parameters.acceptLanguage @@ -277,6 +276,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6, + Parameters.alertType0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/allowedConnections.ts b/sdk/security/arm-security/src/operations/allowedConnections.ts index 3c24f44ef537..8fdcb9047656 100644 --- a/sdk/security/arm-security/src/operations/allowedConnections.ts +++ b/sdk/security/arm-security/src/operations/allowedConnections.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 @@ -252,6 +251,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -273,6 +275,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/assessments.ts b/sdk/security/arm-security/src/operations/assessments.ts index f189faf56043..fc98748d377d 100644 --- a/sdk/security/arm-security/src/operations/assessments.ts +++ b/sdk/security/arm-security/src/operations/assessments.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 @@ -305,6 +304,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts b/sdk/security/arm-security/src/operations/assessmentsMetadata.ts index 2413fa98e36f..94c0216a7bbc 100644 --- a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts +++ b/sdk/security/arm-security/src/operations/assessmentsMetadata.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 @@ -400,6 +399,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -421,6 +423,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts b/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts index 352f1989c6d3..4047123752c2 100644 --- a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts +++ b/sdk/security/arm-security/src/operations/autoProvisioningSettings.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 @@ -169,7 +168,7 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/autoProvisioningSettings/{settingName}", urlParameters: [ Parameters.subscriptionId, - Parameters.settingName0 + Parameters.settingName1 ], queryParameters: [ Parameters.apiVersion5 @@ -193,7 +192,7 @@ const createOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/autoProvisioningSettings/{settingName}", urlParameters: [ Parameters.subscriptionId, - Parameters.settingName0 + Parameters.settingName1 ], queryParameters: [ Parameters.apiVersion5 @@ -226,6 +225,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/automations.ts b/sdk/security/arm-security/src/operations/automations.ts index 087e3abb5def..7efe058ef121 100644 --- a/sdk/security/arm-security/src/operations/automations.ts +++ b/sdk/security/arm-security/src/operations/automations.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 @@ -463,6 +462,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -484,6 +486,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/complianceResults.ts b/sdk/security/arm-security/src/operations/complianceResults.ts index 66c2d16295d4..66b2c70beaf6 100644 --- a/sdk/security/arm-security/src/operations/complianceResults.ts +++ b/sdk/security/arm-security/src/operations/complianceResults.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 @@ -177,6 +176,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/compliances.ts b/sdk/security/arm-security/src/operations/compliances.ts index 951f8b8f7abb..03142366fd78 100644 --- a/sdk/security/arm-security/src/operations/compliances.ts +++ b/sdk/security/arm-security/src/operations/compliances.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 @@ -183,6 +182,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/connectors.ts b/sdk/security/arm-security/src/operations/connectors.ts new file mode 100644 index 000000000000..c54625cfcef6 --- /dev/null +++ b/sdk/security/arm-security/src/operations/connectors.ts @@ -0,0 +1,296 @@ +/* + * 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/connectorsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a Connectors. */ +export class Connectors { + private readonly client: SecurityCenterContext; + + /** + * Create a Connectors. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Cloud accounts connectors of a subscription + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Details of a specific cloud account connector + * @param connectorName Name of the cloud account connector + * @param [options] The optional parameters + * @returns Promise + */ + get(connectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param connectorName Name of the cloud account connector + * @param callback The callback + */ + get(connectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param connectorName Name of the cloud account connector + * @param options The optional parameters + * @param callback The callback + */ + get(connectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(connectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + connectorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a cloud account connector or update an existing one. Connect to your cloud account. For + * AWS, use either account credentials or role-based authentication. For GCP, use account + * organization credentials. + * @param connectorName Name of the cloud account connector + * @param connectorSetting Settings for the cloud account connector + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(connectorName: string, connectorSetting: Models.ConnectorSetting, options?: msRest.RequestOptionsBase): Promise; + /** + * @param connectorName Name of the cloud account connector + * @param connectorSetting Settings for the cloud account connector + * @param callback The callback + */ + createOrUpdate(connectorName: string, connectorSetting: Models.ConnectorSetting, callback: msRest.ServiceCallback): void; + /** + * @param connectorName Name of the cloud account connector + * @param connectorSetting Settings for the cloud account connector + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(connectorName: string, connectorSetting: Models.ConnectorSetting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(connectorName: string, connectorSetting: Models.ConnectorSetting, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + connectorName, + connectorSetting, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete a cloud account connector from a subscription + * @param connectorName Name of the cloud account connector + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(connectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param connectorName Name of the cloud account connector + * @param callback The callback + */ + deleteMethod(connectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param connectorName Name of the cloud account connector + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(connectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(connectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + connectorName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Cloud accounts connectors of a subscription + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectorSettingList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.connectorName + ], + queryParameters: [ + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectorSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.connectorName + ], + queryParameters: [ + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectorSetting", + mapper: { + ...Mappers.ConnectorSetting, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConnectorSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.connectorName + ], + queryParameters: [ + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectorSettingList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/deviceOperations.ts b/sdk/security/arm-security/src/operations/deviceOperations.ts new file mode 100644 index 000000000000..d0bb106a779a --- /dev/null +++ b/sdk/security/arm-security/src/operations/deviceOperations.ts @@ -0,0 +1,85 @@ +/* + * 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/deviceOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a DeviceOperations. */ +export class DeviceOperations { + private readonly client: SecurityCenterContext; + + /** + * Create a DeviceOperations. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Get device. + * @param resourceId The identifier of the resource. + * @param deviceId Identifier of the device. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceId: string, deviceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceId The identifier of the resource. + * @param deviceId Identifier of the device. + * @param callback The callback + */ + get(resourceId: string, deviceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceId The identifier of the resource. + * @param deviceId Identifier of the device. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceId: string, deviceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceId: string, deviceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceId, + deviceId, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/devices/{deviceId}", + urlParameters: [ + Parameters.resourceId, + Parameters.deviceId0 + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Device + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts b/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts index 8906c9565522..d4260ab33cdd 100644 --- a/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts +++ b/sdk/security/arm-security/src/operations/deviceSecurityGroups.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 @@ -305,6 +304,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/devicesForHub.ts b/sdk/security/arm-security/src/operations/devicesForHub.ts new file mode 100644 index 000000000000..d065ae684345 --- /dev/null +++ b/sdk/security/arm-security/src/operations/devicesForHub.ts @@ -0,0 +1,138 @@ +/* + * 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/devicesForHubMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a DevicesForHub. */ +export class DevicesForHub { + private readonly client: SecurityCenterContext; + + /** + * Create a DevicesForHub. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Get list of the devices for the specified IoT Hub resource. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceId: string, options?: Models.DevicesForHubListOptionalParams): Promise; + /** + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + list(resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceId: string, options: Models.DevicesForHubListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceId: string, options?: Models.DevicesForHubListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get list of the devices for the specified IoT Hub resource. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.DevicesForHubListNextOptionalParams): 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.DevicesForHubListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DevicesForHubListNextOptionalParams | 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: "{resourceId}/providers/Microsoft.Security/devices", + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.apiVersion10, + Parameters.limit, + Parameters.skipToken, + Parameters.deviceManagementType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion10, + Parameters.limit, + Parameters.skipToken, + Parameters.deviceManagementType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/devicesForSubscription.ts b/sdk/security/arm-security/src/operations/devicesForSubscription.ts new file mode 100644 index 000000000000..171c91d18082 --- /dev/null +++ b/sdk/security/arm-security/src/operations/devicesForSubscription.ts @@ -0,0 +1,134 @@ +/* + * 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/devicesForSubscriptionMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a DevicesForSubscription. */ +export class DevicesForSubscription { + private readonly client: SecurityCenterContext; + + /** + * Create a DevicesForSubscription. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Get list of the devices by their subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: Models.DevicesForSubscriptionListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: Models.DevicesForSubscriptionListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.DevicesForSubscriptionListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get list of the devices by their subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.DevicesForSubscriptionListNextOptionalParams): 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.DevicesForSubscriptionListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DevicesForSubscriptionListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/devices", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10, + Parameters.limit, + Parameters.skipToken, + Parameters.deviceManagementType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion10, + Parameters.limit, + Parameters.skipToken, + Parameters.deviceManagementType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts b/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts index fee408b7fe91..12b10b2963b5 100644 --- a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts +++ b/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.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 @@ -248,6 +247,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -269,6 +271,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts b/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts index dcf849fd1092..b6b9b9bd6de1 100644 --- a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts +++ b/sdk/security/arm-security/src/operations/externalSecuritySolutions.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 @@ -248,6 +247,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -269,6 +271,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index 49b74e193742..68ed9bed7f43 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/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,8 +9,6 @@ export * from "./complianceResults"; export * from "./pricings"; -export * from "./alerts"; -export * from "./settings"; export * from "./advancedThreatProtection"; export * from "./deviceSecurityGroups"; export * from "./iotSecuritySolution"; @@ -29,10 +26,10 @@ export * from "./workspaceSettings"; export * from "./regulatoryComplianceStandards"; export * from "./regulatoryComplianceControls"; export * from "./regulatoryComplianceAssessments"; -export * from "./serverVulnerabilityAssessmentOperations"; export * from "./subAssessments"; export * from "./automations"; export * from "./alertsSuppressionRules"; +export * from "./serverVulnerabilityAssessmentOperations"; export * from "./assessmentsMetadata"; export * from "./assessments"; export * from "./adaptiveApplicationControls"; @@ -41,7 +38,28 @@ export * from "./allowedConnections"; export * from "./topology"; export * from "./jitNetworkAccessPolicies"; export * from "./discoveredSecuritySolutions"; +export * from "./securitySolutionsReferenceDataOperations"; export * from "./externalSecuritySolutions"; export * from "./secureScores"; export * from "./secureScoreControls"; export * from "./secureScoreControlDefinitions"; +export * from "./securitySolutions"; +export * from "./connectors"; +export * from "./sqlVulnerabilityAssessmentScans"; +export * from "./sqlVulnerabilityAssessmentScanResults"; +export * from "./sqlVulnerabilityAssessmentBaselineRules"; +export * from "./iotDefenderSettings"; +export * from "./iotSensors"; +export * from "./devicesForSubscription"; +export * from "./devicesForHub"; +export * from "./deviceOperations"; +export * from "./onPremiseIotSensors"; +export * from "./iotSites"; +export * from "./iotAlerts"; +export * from "./iotAlertTypes"; +export * from "./iotRecommendations"; +export * from "./iotRecommendationTypes"; +export * from "./alerts"; +export * from "./settings"; +export * from "./ingestionSettings"; +export * from "./softwareInventories"; diff --git a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts index 4bcf11236eda..5c5cf260383a 100644 --- a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts +++ b/sdk/security/arm-security/src/operations/informationProtectionPolicies.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 @@ -265,6 +264,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/ingestionSettings.ts b/sdk/security/arm-security/src/operations/ingestionSettings.ts new file mode 100644 index 000000000000..a4d734204199 --- /dev/null +++ b/sdk/security/arm-security/src/operations/ingestionSettings.ts @@ -0,0 +1,403 @@ +/* + * 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/ingestionSettingsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IngestionSettings. */ +export class IngestionSettings { + private readonly client: SecurityCenterContext; + + /** + * Create a IngestionSettings. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Settings for ingesting security data and logs to correlate with resources associated with the + * subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Settings for ingesting security data and logs to correlate with resources associated with the + * subscription. + * @param ingestionSettingName Name of the ingestion setting + * @param [options] The optional parameters + * @returns Promise + */ + get(ingestionSettingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param callback The callback + */ + get(ingestionSettingName: string, callback: msRest.ServiceCallback): void; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param options The optional parameters + * @param callback The callback + */ + get(ingestionSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(ingestionSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ingestionSettingName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create setting for ingesting security data and logs to correlate with resources associated with + * the subscription. + * @param ingestionSettingName Name of the ingestion setting + * @param ingestionSetting Ingestion setting object + * @param [options] The optional parameters + * @returns Promise + */ + create(ingestionSettingName: string, ingestionSetting: Models.IngestionSetting, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param ingestionSetting Ingestion setting object + * @param callback The callback + */ + create(ingestionSettingName: string, ingestionSetting: Models.IngestionSetting, callback: msRest.ServiceCallback): void; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param ingestionSetting Ingestion setting object + * @param options The optional parameters + * @param callback The callback + */ + create(ingestionSettingName: string, ingestionSetting: Models.IngestionSetting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(ingestionSettingName: string, ingestionSetting: Models.IngestionSetting, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ingestionSettingName, + ingestionSetting, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Deletes the ingestion settings for this subscription. + * @param ingestionSettingName Name of the ingestion setting + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(ingestionSettingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param callback The callback + */ + deleteMethod(ingestionSettingName: string, callback: msRest.ServiceCallback): void; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(ingestionSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(ingestionSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ingestionSettingName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Returns the token that is used for correlating ingested telemetry with the resources in the + * subscription. + * @param ingestionSettingName Name of the ingestion setting + * @param [options] The optional parameters + * @returns Promise + */ + listTokens(ingestionSettingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param callback The callback + */ + listTokens(ingestionSettingName: string, callback: msRest.ServiceCallback): void; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param options The optional parameters + * @param callback The callback + */ + listTokens(ingestionSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTokens(ingestionSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ingestionSettingName, + options + }, + listTokensOperationSpec, + callback) as Promise; + } + + /** + * Connection strings for ingesting security scan logs and data. + * @param ingestionSettingName Name of the ingestion setting + * @param [options] The optional parameters + * @returns Promise + */ + listConnectionStrings(ingestionSettingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param callback The callback + */ + listConnectionStrings(ingestionSettingName: string, callback: msRest.ServiceCallback): void; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param options The optional parameters + * @param callback The callback + */ + listConnectionStrings(ingestionSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConnectionStrings(ingestionSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ingestionSettingName, + options + }, + listConnectionStringsOperationSpec, + callback) as Promise; + } + + /** + * Settings for ingesting security data and logs to correlate with resources associated with the + * subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IngestionSettingList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ingestionSettingName + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IngestionSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ingestionSettingName + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "ingestionSetting", + mapper: { + ...Mappers.IngestionSetting, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IngestionSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ingestionSettingName + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listTokensOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}/listTokens", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ingestionSettingName + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IngestionSettingToken + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listConnectionStringsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}/listConnectionStrings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ingestionSettingName + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectionStrings + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IngestionSettingList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotAlertTypes.ts b/sdk/security/arm-security/src/operations/iotAlertTypes.ts new file mode 100644 index 000000000000..9ceecb1b073f --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotAlertTypes.ts @@ -0,0 +1,128 @@ +/* + * 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/iotAlertTypesMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotAlertTypes. */ +export class IotAlertTypes { + private readonly client: SecurityCenterContext; + + /** + * Create a IotAlertTypes. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT alert types + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT alert type + * @param iotAlertTypeName Name of the alert type + * @param [options] The optional parameters + * @returns Promise + */ + get(iotAlertTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param iotAlertTypeName Name of the alert type + * @param callback The callback + */ + get(iotAlertTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param iotAlertTypeName Name of the alert type + * @param options The optional parameters + * @param callback The callback + */ + get(iotAlertTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(iotAlertTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + iotAlertTypeName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotAlertTypes", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertTypeList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotAlertTypes/{iotAlertTypeName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.iotAlertTypeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertType + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotAlerts.ts b/sdk/security/arm-security/src/operations/iotAlerts.ts new file mode 100644 index 000000000000..16d9fddfdb19 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotAlerts.ts @@ -0,0 +1,214 @@ +/* + * 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/iotAlertsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotAlerts. */ +export class IotAlerts { + private readonly client: SecurityCenterContext; + + /** + * Create a IotAlerts. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT alerts + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param [options] The optional parameters + * @returns Promise + */ + list(scope: string, options?: Models.IotAlertsListOptionalParams): Promise; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param callback The callback + */ + list(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param options The optional parameters + * @param callback The callback + */ + list(scope: string, options: Models.IotAlertsListOptionalParams, callback: msRest.ServiceCallback): void; + list(scope: string, options?: Models.IotAlertsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT alert + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotAlertId Id of the alert + * @param [options] The optional parameters + * @returns Promise + */ + get(scope: string, iotAlertId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotAlertId Id of the alert + * @param callback The callback + */ + get(scope: string, iotAlertId: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotAlertId Id of the alert + * @param options The optional parameters + * @param callback The callback + */ + get(scope: string, iotAlertId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scope: string, iotAlertId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotAlertId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List IoT alerts + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.IotAlertsListNextOptionalParams): 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.IotAlertsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.IotAlertsListNextOptionalParams | 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: "{scope}/providers/Microsoft.Security/iotAlerts", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion10, + Parameters.minStartTimeUtc, + Parameters.maxStartTimeUtc, + Parameters.alertType1, + Parameters.deviceManagementType, + Parameters.compromisedEntity, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertListModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotAlerts/{iotAlertId}", + urlParameters: [ + Parameters.scope, + Parameters.iotAlertId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion10, + Parameters.minStartTimeUtc, + Parameters.maxStartTimeUtc, + Parameters.alertType1, + Parameters.deviceManagementType, + Parameters.compromisedEntity, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertListModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotDefenderSettings.ts b/sdk/security/arm-security/src/operations/iotDefenderSettings.ts new file mode 100644 index 000000000000..6cb21509dddd --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotDefenderSettings.ts @@ -0,0 +1,329 @@ +/* + * 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/iotDefenderSettingsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotDefenderSettings. */ +export class IotDefenderSettings { + private readonly client: SecurityCenterContext; + + /** + * Create a IotDefenderSettings. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT Defender Settings + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT Defender Settings + * @param [options] The optional parameters + * @returns Promise + */ + get(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + get(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + get(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update IoT Defender settings + * @param iotDefenderSettingsModel The IoT defender settings model + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(iotDefenderSettingsModel: Models.IotDefenderSettingsModel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param iotDefenderSettingsModel The IoT defender settings model + * @param callback The callback + */ + createOrUpdate(iotDefenderSettingsModel: Models.IotDefenderSettingsModel, callback: msRest.ServiceCallback): void; + /** + * @param iotDefenderSettingsModel The IoT defender settings model + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(iotDefenderSettingsModel: Models.IotDefenderSettingsModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(iotDefenderSettingsModel: Models.IotDefenderSettingsModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + iotDefenderSettingsModel, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete IoT Defender settings + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + deleteMethod(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Information about downloadable packages + * @param [options] The optional parameters + * @returns Promise + */ + packageDownloadsMethod(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + packageDownloadsMethod(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + packageDownloadsMethod(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + packageDownloadsMethod(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + packageDownloadsMethodOperationSpec, + callback) as Promise; + } + + /** + * Download manager activation data defined for this subscription + * @param [options] The optional parameters + * @returns Promise + */ + downloadManagerActivation(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + downloadManagerActivation(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + downloadManagerActivation(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadManagerActivation(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + downloadManagerActivationOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotDefenderSettingsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotDefenderSettingsModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "iotDefenderSettingsModel", + mapper: { + ...Mappers.IotDefenderSettingsModel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IotDefenderSettingsModel + }, + 201: { + bodyMapper: Mappers.IotDefenderSettingsModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const packageDownloadsMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/packageDownloads", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PackageDownloads + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const downloadManagerActivationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/downloadManagerActivation", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotRecommendationTypes.ts b/sdk/security/arm-security/src/operations/iotRecommendationTypes.ts new file mode 100644 index 000000000000..74b977b0a508 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotRecommendationTypes.ts @@ -0,0 +1,128 @@ +/* + * 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/iotRecommendationTypesMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotRecommendationTypes. */ +export class IotRecommendationTypes { + private readonly client: SecurityCenterContext; + + /** + * Create a IotRecommendationTypes. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT recommendation types + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT recommendation type + * @param iotRecommendationTypeName Name of the recommendation type + * @param [options] The optional parameters + * @returns Promise + */ + get(iotRecommendationTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param iotRecommendationTypeName Name of the recommendation type + * @param callback The callback + */ + get(iotRecommendationTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param iotRecommendationTypeName Name of the recommendation type + * @param options The optional parameters + * @param callback The callback + */ + get(iotRecommendationTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(iotRecommendationTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + iotRecommendationTypeName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotRecommendationTypes", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationTypeList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotRecommendationTypes/{iotRecommendationTypeName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.iotRecommendationTypeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationType + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotRecommendations.ts b/sdk/security/arm-security/src/operations/iotRecommendations.ts new file mode 100644 index 000000000000..dd5889cf0b89 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotRecommendations.ts @@ -0,0 +1,208 @@ +/* + * 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/iotRecommendationsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotRecommendations. */ +export class IotRecommendations { + private readonly client: SecurityCenterContext; + + /** + * Create a IotRecommendations. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT recommendations + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param [options] The optional parameters + * @returns Promise + */ + list(scope: string, options?: Models.IotRecommendationsListOptionalParams): Promise; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param callback The callback + */ + list(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param options The optional parameters + * @param callback The callback + */ + list(scope: string, options: Models.IotRecommendationsListOptionalParams, callback: msRest.ServiceCallback): void; + list(scope: string, options?: Models.IotRecommendationsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT recommendation + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotRecommendationId Id of the recommendation + * @param [options] The optional parameters + * @returns Promise + */ + get(scope: string, iotRecommendationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotRecommendationId Id of the recommendation + * @param callback The callback + */ + get(scope: string, iotRecommendationId: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotRecommendationId Id of the recommendation + * @param options The optional parameters + * @param callback The callback + */ + get(scope: string, iotRecommendationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scope: string, iotRecommendationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotRecommendationId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List IoT recommendations + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.IotRecommendationsListNextOptionalParams): 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.IotRecommendationsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.IotRecommendationsListNextOptionalParams | 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: "{scope}/providers/Microsoft.Security/iotRecommendations", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion10, + Parameters.recommendationType, + Parameters.deviceId1, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationListModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotRecommendations/{iotRecommendationId}", + urlParameters: [ + Parameters.scope, + Parameters.iotRecommendationId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion10, + Parameters.recommendationType, + Parameters.deviceId1, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationListModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolution.ts b/sdk/security/arm-security/src/operations/iotSecuritySolution.ts index 8584de5ac36e..518f7a04a3d4 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolution.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolution.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 @@ -236,7 +235,7 @@ export class IotSecuritySolution { * @param [options] The optional parameters * @returns Promise */ - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySubscriptionNext(nextPageLink: string, options?: Models.IotSecuritySolutionListBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -247,8 +246,8 @@ export class IotSecuritySolution { * @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.IotSecuritySolutionListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.IotSecuritySolutionListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -264,7 +263,7 @@ export class IotSecuritySolution { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.IotSecuritySolutionListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -275,8 +274,8 @@ export class IotSecuritySolution { * @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.IotSecuritySolutionListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.IotSecuritySolutionListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -461,6 +460,10 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -482,6 +485,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts index e66f18882294..cbf20304731d 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.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 diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts index 914c656d760d..b1b6e7eb8ed4 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.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 @@ -146,7 +145,7 @@ export class IotSecuritySolutionsAnalyticsAggregatedAlert { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -157,8 +156,8 @@ export class IotSecuritySolutionsAnalyticsAggregatedAlert { * @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.IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -254,6 +253,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts index 2801c7369e88..ca0efaadd443 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.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 @@ -109,7 +108,7 @@ export class IotSecuritySolutionsAnalyticsRecommendation { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -120,8 +119,8 @@ export class IotSecuritySolutionsAnalyticsRecommendation { * @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.IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -193,6 +192,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/iotSensors.ts b/sdk/security/arm-security/src/operations/iotSensors.ts new file mode 100644 index 000000000000..c53e96964ac8 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotSensors.ts @@ -0,0 +1,448 @@ +/* + * 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/iotSensorsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotSensors. */ +export class IotSensors { + private readonly client: SecurityCenterContext; + + /** + * Create a IotSensors. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT sensors + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param [options] The optional parameters + * @returns Promise + */ + list(scope: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param callback The callback + */ + list(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param options The optional parameters + * @param callback The callback + */ + list(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT sensor + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + get(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param callback The callback + */ + get(scope: string, iotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + get(scope: string, iotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update IoT sensor + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param iotSensorsModel The IoT sensor model + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(scope: string, iotSensorName: string, iotSensorsModel: Models.IotSensorsModel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param iotSensorsModel The IoT sensor model + * @param callback The callback + */ + createOrUpdate(scope: string, iotSensorName: string, iotSensorsModel: Models.IotSensorsModel, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param iotSensorsModel The IoT sensor model + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(scope: string, iotSensorName: string, iotSensorsModel: Models.IotSensorsModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(scope: string, iotSensorName: string, iotSensorsModel: Models.IotSensorsModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + iotSensorsModel, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete IoT sensor + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param callback The callback + */ + deleteMethod(scope: string, iotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(scope: string, iotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Download sensor activation file + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + downloadActivation(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param callback The callback + */ + downloadActivation(scope: string, iotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + downloadActivation(scope: string, iotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadActivation(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + options + }, + downloadActivationOperationSpec, + callback) as Promise; + } + + /** + * Download file for reset password of the sensor + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param body The reset password input. + * @param [options] The optional parameters + * @returns Promise + */ + downloadResetPassword(scope: string, iotSensorName: string, body: Models.ResetPasswordInput, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param body The reset password input. + * @param callback The callback + */ + downloadResetPassword(scope: string, iotSensorName: string, body: Models.ResetPasswordInput, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param body The reset password input. + * @param options The optional parameters + * @param callback The callback + */ + downloadResetPassword(scope: string, iotSensorName: string, body: Models.ResetPasswordInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadResetPassword(scope: string, iotSensorName: string, body: Models.ResetPasswordInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + body, + options + }, + downloadResetPasswordOperationSpec, + callback) as Promise; + } + + /** + * Trigger threat intelligence package update + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + triggerTiPackageUpdate(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param callback The callback + */ + triggerTiPackageUpdate(scope: string, iotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + triggerTiPackageUpdate(scope: string, iotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + triggerTiPackageUpdate(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + options + }, + triggerTiPackageUpdateOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotSensors", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotSensorsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotSensorsModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "iotSensorsModel", + mapper: { + ...Mappers.IotSensorsModel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IotSensorsModel + }, + 201: { + bodyMapper: Mappers.IotSensorsModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const downloadActivationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/downloadActivation", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const downloadResetPasswordOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/downloadResetPassword", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ResetPasswordInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const triggerTiPackageUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/triggerTiPackageUpdate", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotSites.ts b/sdk/security/arm-security/src/operations/iotSites.ts new file mode 100644 index 000000000000..de634105c550 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotSites.ts @@ -0,0 +1,246 @@ +/* + * 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/iotSitesMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotSites. */ +export class IotSites { + private readonly client: SecurityCenterContext; + + /** + * Create a IotSites. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT sites + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param [options] The optional parameters + * @returns Promise + */ + list(scope: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param callback The callback + */ + list(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param options The optional parameters + * @param callback The callback + */ + list(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT site + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param [options] The optional parameters + * @returns Promise + */ + get(scope: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param callback The callback + */ + get(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param options The optional parameters + * @param callback The callback + */ + get(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update IoT site + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSitesModel The IoT sites model + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(scope: string, iotSitesModel: Models.IotSitesModel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSitesModel The IoT sites model + * @param callback The callback + */ + createOrUpdate(scope: string, iotSitesModel: Models.IotSitesModel, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSitesModel The IoT sites model + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(scope: string, iotSitesModel: Models.IotSitesModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(scope: string, iotSitesModel: Models.IotSitesModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSitesModel, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete IoT site + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(scope: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param callback The callback + */ + deleteMethod(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotSites", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotSitesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotSites/default", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotSitesModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "{scope}/providers/Microsoft.Security/iotSites/default", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "iotSitesModel", + mapper: { + ...Mappers.IotSitesModel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IotSitesModel + }, + 201: { + bodyMapper: Mappers.IotSitesModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "{scope}/providers/Microsoft.Security/iotSites/default", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts index 9659d3beb32d..391c6a53858c 100644 --- a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts +++ b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.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 @@ -627,6 +626,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -648,6 +650,9 @@ const listByRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -669,6 +674,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -690,6 +698,9 @@ const listByResourceGroupAndRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/locations.ts b/sdk/security/arm-security/src/operations/locations.ts index 6fddbae9fa18..a6af884c815b 100644 --- a/sdk/security/arm-security/src/operations/locations.ts +++ b/sdk/security/arm-security/src/operations/locations.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 @@ -163,6 +162,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/onPremiseIotSensors.ts b/sdk/security/arm-security/src/operations/onPremiseIotSensors.ts new file mode 100644 index 000000000000..16b1b5b901df --- /dev/null +++ b/sdk/security/arm-security/src/operations/onPremiseIotSensors.ts @@ -0,0 +1,359 @@ +/* + * 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/onPremiseIotSensorsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a OnPremiseIotSensors. */ +export class OnPremiseIotSensors { + private readonly client: SecurityCenterContext; + + /** + * Create a OnPremiseIotSensors. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List on-premise IoT sensors + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get on-premise IoT sensor + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + get(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param callback The callback + */ + get(onPremiseIotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + get(onPremiseIotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + onPremiseIotSensorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update on-premise IoT sensor + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param callback The callback + */ + createOrUpdate(onPremiseIotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(onPremiseIotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + onPremiseIotSensorName, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete on-premise IoT sensor + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param callback The callback + */ + deleteMethod(onPremiseIotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(onPremiseIotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + onPremiseIotSensorName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Download sensor activation file + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + downloadActivation(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param callback The callback + */ + downloadActivation(onPremiseIotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + downloadActivation(onPremiseIotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadActivation(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + onPremiseIotSensorName, + options + }, + downloadActivationOperationSpec, + callback) as Promise; + } + + /** + * Download file for reset password of the sensor + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param body Input for reset password. + * @param [options] The optional parameters + * @returns Promise + */ + downloadResetPassword(onPremiseIotSensorName: string, body: Models.ResetPasswordInput, options?: msRest.RequestOptionsBase): Promise; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param body Input for reset password. + * @param callback The callback + */ + downloadResetPassword(onPremiseIotSensorName: string, body: Models.ResetPasswordInput, callback: msRest.ServiceCallback): void; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param body Input for reset password. + * @param options The optional parameters + * @param callback The callback + */ + downloadResetPassword(onPremiseIotSensorName: string, body: Models.ResetPasswordInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadResetPassword(onPremiseIotSensorName: string, body: Models.ResetPasswordInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + onPremiseIotSensorName, + body, + options + }, + downloadResetPasswordOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnPremiseIotSensorsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.onPremiseIotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnPremiseIotSensor + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.onPremiseIotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnPremiseIotSensor + }, + 201: { + bodyMapper: Mappers.OnPremiseIotSensor + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.onPremiseIotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const downloadActivationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}/downloadActivation", + urlParameters: [ + Parameters.subscriptionId, + Parameters.onPremiseIotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const downloadResetPasswordOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}/downloadResetPassword", + urlParameters: [ + Parameters.subscriptionId, + Parameters.onPremiseIotSensorName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ResetPasswordInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/operations.ts b/sdk/security/arm-security/src/operations/operations.ts index 15d396b057d3..a1966ba046d4 100644 --- a/sdk/security/arm-security/src/operations/operations.ts +++ b/sdk/security/arm-security/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 @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/pricings.ts b/sdk/security/arm-security/src/operations/pricings.ts index e604f40d8222..aabe04271f0d 100644 --- a/sdk/security/arm-security/src/operations/pricings.ts +++ b/sdk/security/arm-security/src/operations/pricings.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 diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts index d9e7f429a94d..fed64431d821 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.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 @@ -100,7 +99,7 @@ export class RegulatoryComplianceAssessments { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceAssessmentsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -111,8 +110,8 @@ export class RegulatoryComplianceAssessments { * @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.RegulatoryComplianceAssessmentsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceAssessmentsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -184,6 +183,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts index 5d40b5b0688b..8ee0e81f5f8d 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceControls.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 @@ -92,7 +91,7 @@ export class RegulatoryComplianceControls { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceControlsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -103,8 +102,8 @@ export class RegulatoryComplianceControls { * @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.RegulatoryComplianceControlsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceControlsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -174,6 +173,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts index 07b2a60f5258..c845ff4b7386 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.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 @@ -84,7 +83,7 @@ export class RegulatoryComplianceStandards { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceStandardsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -95,8 +94,8 @@ export class RegulatoryComplianceStandards { * @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.RegulatoryComplianceStandardsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceStandardsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -164,6 +163,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts b/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts index 8f276006fba3..2d91f5faaa02 100644 --- a/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts +++ b/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.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 @@ -27,7 +26,7 @@ export class SecureScoreControlDefinitions { } /** - * Get definition information on all secure score controls + * List the available security controls, their assessments, and the max score * @param [options] The optional parameters * @returns Promise */ @@ -51,7 +50,8 @@ export class SecureScoreControlDefinitions { } /** - * Get definition information on all secure score controls in subscription level + * For a specified subscription, list the available security controls, their assessments, and the + * max score * @param [options] The optional parameters * @returns Promise */ @@ -75,7 +75,7 @@ export class SecureScoreControlDefinitions { } /** - * Get definition information on all secure score controls + * List the available security controls, their assessments, and the max score * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -103,7 +103,8 @@ export class SecureScoreControlDefinitions { } /** - * Get definition information on all secure score controls in subscription level + * For a specified subscription, list the available security controls, their assessments, and the + * max score * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -137,7 +138,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Security/secureScoreControlDefinitions", queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -160,7 +161,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -183,6 +184,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -204,6 +208,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/secureScoreControls.ts b/sdk/security/arm-security/src/operations/secureScoreControls.ts index 28c52529053a..de40813934f9 100644 --- a/sdk/security/arm-security/src/operations/secureScoreControls.ts +++ b/sdk/security/arm-security/src/operations/secureScoreControls.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 @@ -27,19 +26,22 @@ export class SecureScoreControls { } /** - * Get all secure score controls on specific initiatives inside a scope - * @param secureScoreName The secure score initiative name + * Get all security controls for a specific initiative within a scope + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param [options] The optional parameters * @returns Promise */ listBySecureScore(secureScoreName: string, options?: Models.SecureScoreControlsListBySecureScoreOptionalParams): Promise; /** - * @param secureScoreName The secure score initiative name + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param callback The callback */ listBySecureScore(secureScoreName: string, callback: msRest.ServiceCallback): void; /** - * @param secureScoreName The secure score initiative name + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param options The optional parameters * @param callback The callback */ @@ -55,7 +57,7 @@ export class SecureScoreControls { } /** - * Get all secure score controls on specific initiatives inside a scope + * Get all security controls within a scope * @param [options] The optional parameters * @returns Promise */ @@ -79,12 +81,12 @@ export class SecureScoreControls { } /** - * Get all secure score controls on specific initiatives inside a scope + * Get all security controls for a specific initiative within a scope * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise */ - listBySecureScoreNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySecureScoreNext(nextPageLink: string, options?: Models.SecureScoreControlsListBySecureScoreNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -95,8 +97,8 @@ export class SecureScoreControls { * @param options The optional parameters * @param callback The callback */ - listBySecureScoreNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySecureScoreNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySecureScoreNext(nextPageLink: string, options: Models.SecureScoreControlsListBySecureScoreNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySecureScoreNext(nextPageLink: string, options?: Models.SecureScoreControlsListBySecureScoreNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -107,12 +109,12 @@ export class SecureScoreControls { } /** - * Get all secure score controls on specific initiatives inside a scope + * Get all security controls within a scope * @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.SecureScoreControlsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -123,8 +125,8 @@ export class SecureScoreControls { * @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.SecureScoreControlsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SecureScoreControlsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -145,7 +147,7 @@ const listBySecureScoreOperationSpec: msRest.OperationSpec = { Parameters.secureScoreName ], queryParameters: [ - Parameters.apiVersion8, + Parameters.apiVersion7, Parameters.expand ], headerParameters: [ @@ -169,7 +171,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion8, + Parameters.apiVersion7, Parameters.expand ], headerParameters: [ @@ -193,6 +195,10 @@ const listBySecureScoreNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], @@ -214,6 +220,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/secureScores.ts b/sdk/security/arm-security/src/operations/secureScores.ts index e873d1617bda..015ea88e0dfb 100644 --- a/sdk/security/arm-security/src/operations/secureScores.ts +++ b/sdk/security/arm-security/src/operations/secureScores.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 @@ -27,7 +26,7 @@ export class SecureScores { } /** - * Get secure scores on all your initiatives inside a scope + * List secure scores for all your Security Center initiatives within your current scope. * @param [options] The optional parameters * @returns Promise */ @@ -51,19 +50,23 @@ export class SecureScores { } /** - * Get secure score for a specific initiatives inside a scope - * @param secureScoreName The secure score initiative name + * Get secure score for a specific Security Center initiative within your current scope. For the + * ASC Default initiative, use 'ascScore'. + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param [options] The optional parameters * @returns Promise */ get(secureScoreName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param secureScoreName The secure score initiative name + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param callback The callback */ get(secureScoreName: string, callback: msRest.ServiceCallback): void; /** - * @param secureScoreName The secure score initiative name + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param options The optional parameters * @param callback The callback */ @@ -79,7 +82,7 @@ export class SecureScores { } /** - * Get secure scores on all your initiatives inside a scope + * List secure scores for all your Security Center initiatives within your current scope. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -116,7 +119,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -140,7 +143,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.secureScoreName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -163,6 +166,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/securityContacts.ts b/sdk/security/arm-security/src/operations/securityContacts.ts index e368e7b7cf1f..9a27de7bfaf3 100644 --- a/sdk/security/arm-security/src/operations/securityContacts.ts +++ b/sdk/security/arm-security/src/operations/securityContacts.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 @@ -339,6 +338,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/securitySolutions.ts b/sdk/security/arm-security/src/operations/securitySolutions.ts new file mode 100644 index 000000000000..4d7313ebbc35 --- /dev/null +++ b/sdk/security/arm-security/src/operations/securitySolutions.ts @@ -0,0 +1,189 @@ +/* + * 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/securitySolutionsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SecuritySolutions. */ +export class SecuritySolutions { + private readonly client: SecurityCenterContext; + + /** + * Create a SecuritySolutions. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Gets a list of Security Solutions for the subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a specific Security Solution. + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param securitySolutionName Name of security solution. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, securitySolutionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param securitySolutionName Name of security solution. + * @param callback The callback + */ + get(resourceGroupName: string, securitySolutionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param securitySolutionName Name of security solution. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, securitySolutionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, securitySolutionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securitySolutionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of Security Solutions for the subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/securitySolutions", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion7 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecuritySolutionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/securitySolutions/{securitySolutionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.ascLocation, + Parameters.securitySolutionName + ], + queryParameters: [ + Parameters.apiVersion7 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecuritySolution + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion7 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecuritySolutionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts b/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts new file mode 100644 index 000000000000..04dafd6d92f0 --- /dev/null +++ b/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts @@ -0,0 +1,124 @@ +/* + * 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/securitySolutionsReferenceDataOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SecuritySolutionsReferenceDataOperations. */ +export class SecuritySolutionsReferenceDataOperations { + private readonly client: SecurityCenterContext; + + /** + * Create a SecuritySolutionsReferenceDataOperations. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Gets a list of all supported Security Solutions for the subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets list of all supported Security Solutions for subscription and location. + * @param [options] The optional parameters + * @returns Promise + */ + listByHomeRegion(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listByHomeRegion(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listByHomeRegion(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByHomeRegion(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listByHomeRegionOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/securitySolutionsReferenceData", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion7 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecuritySolutionsReferenceDataList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByHomeRegionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/securitySolutionsReferenceData", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation + ], + queryParameters: [ + Parameters.apiVersion7 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecuritySolutionsReferenceDataList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts index 660a35067e2d..9307ec957067 100644 --- a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts +++ b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.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/serverVulnerabilityAssessmentOperationsMappers"; import * as Parameters from "../models/parameters"; @@ -166,28 +166,23 @@ export class ServerVulnerabilityAssessmentOperations { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,resourceNamespace,resourceType,resourceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** + * Removing server vulnerability assessment from a resource. * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param options The optional parameters - * @param callback The callback + * @param [options] The optional parameters + * @returns Promise */ - deleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + beginDeleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( { resourceGroupName, resourceNamespace, @@ -195,8 +190,8 @@ export class ServerVulnerabilityAssessmentOperations { resourceName, options }, - deleteMethodOperationSpec, - callback); + beginDeleteMethodOperationSpec, + options); } } @@ -213,7 +208,7 @@ const listByExtendedResourceOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -241,7 +236,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.serverVulnerabilityAssessment ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -269,7 +264,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.serverVulnerabilityAssessment ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -285,7 +280,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments/{serverVulnerabilityAssessment}", urlParameters: [ @@ -297,13 +292,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.serverVulnerabilityAssessment ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: {}, + 202: {}, 204: {}, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/security/arm-security/src/operations/settings.ts b/sdk/security/arm-security/src/operations/settings.ts index dfe07c34cb90..d07565cb45c1 100644 --- a/sdk/security/arm-security/src/operations/settings.ts +++ b/sdk/security/arm-security/src/operations/settings.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 @@ -52,18 +51,18 @@ export class Settings { /** * Settings of different configurations in security center - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param [options] The optional parameters * @returns Promise */ get(settingName: Models.SettingName, options?: msRest.RequestOptionsBase): Promise; /** - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param callback The callback */ get(settingName: Models.SettingName, callback: msRest.ServiceCallback): void; /** - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param options The optional parameters * @param callback The callback */ @@ -80,20 +79,20 @@ export class Settings { /** * updating settings about different configurations in security center - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param setting Setting object * @param [options] The optional parameters * @returns Promise */ update(settingName: Models.SettingName1, setting: Models.SettingUnion, options?: msRest.RequestOptionsBase): Promise; /** - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param setting Setting object * @param callback The callback */ update(settingName: Models.SettingName1, setting: Models.SettingUnion, callback: msRest.ServiceCallback): void; /** - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param setting Setting object * @param options The optional parameters * @param callback The callback @@ -148,7 +147,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion12 ], headerParameters: [ Parameters.acceptLanguage @@ -169,10 +168,10 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/settings/{settingName}", urlParameters: [ Parameters.subscriptionId, - Parameters.settingName0 + Parameters.settingName1 ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion12 ], headerParameters: [ Parameters.acceptLanguage @@ -193,10 +192,10 @@ const updateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/settings/{settingName}", urlParameters: [ Parameters.subscriptionId, - Parameters.settingName0 + Parameters.settingName1 ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion12 ], headerParameters: [ Parameters.acceptLanguage @@ -226,6 +225,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion12 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/softwareInventories.ts b/sdk/security/arm-security/src/operations/softwareInventories.ts new file mode 100644 index 000000000000..e532a81d71dd --- /dev/null +++ b/sdk/security/arm-security/src/operations/softwareInventories.ts @@ -0,0 +1,325 @@ +/* + * 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/softwareInventoriesMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SoftwareInventories. */ +export class SoftwareInventories { + private readonly client: SecurityCenterContext; + + /** + * Create a SoftwareInventories. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Gets the software inventory of the virtual machine. + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param callback The callback + */ + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param options The optional parameters + * @param callback The callback + */ + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceNamespace, + resourceType, + resourceName, + options + }, + listByExtendedResourceOperationSpec, + callback) as Promise; + } + + /** + * Gets the software inventory of all virtual machines in the subscriptions. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Gets a single software data of the virtual machine. + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param softwareName Name of the installed software. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, softwareName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param softwareName Name of the installed software. + * @param callback The callback + */ + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, softwareName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param softwareName Name of the installed software. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, softwareName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, softwareName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceNamespace, + resourceType, + resourceName, + softwareName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets the software inventory of the virtual machine. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByExtendedResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByExtendedResourceNext(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 + */ + listByExtendedResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByExtendedResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByExtendedResourceNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the software inventory of all virtual machines in the subscriptions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByExtendedResourceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceNamespace, + Parameters.resourceType, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion14 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwaresList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/softwareInventories", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion14 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwaresList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories/{softwareName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceNamespace, + Parameters.resourceType, + Parameters.resourceName, + Parameters.softwareName + ], + queryParameters: [ + Parameters.apiVersion14 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Software + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByExtendedResourceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion14 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwaresList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion14 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwaresList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts new file mode 100644 index 000000000000..a2407e00d3f8 --- /dev/null +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts @@ -0,0 +1,359 @@ +/* + * 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/sqlVulnerabilityAssessmentBaselineRulesMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SqlVulnerabilityAssessmentBaselineRules. */ +export class SqlVulnerabilityAssessmentBaselineRules { + private readonly client: SecurityCenterContext; + + /** + * Create a SqlVulnerabilityAssessmentBaselineRules. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * @summary Creates a Baseline for a rule in a database. Will overwrite any previously existing + * results. + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: Models.SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams): Promise; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + createOrUpdate(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options: Models.SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: Models.SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ruleId, + workspaceId, + apiVersion, + resourceId, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets the results for a given rule in the Baseline. + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + get(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + get(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ruleId, + workspaceId, + apiVersion, + resourceId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Deletes a rule from the Baseline of a given database. + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + deleteMethod(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ruleId, + workspaceId, + apiVersion, + resourceId, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary Gets the results for all rules in the Baseline. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + list(workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + list(workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceId, + apiVersion, + resourceId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Add a list of baseline rules. Will overwrite any previously existing results (for all + * rules). + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + add(workspaceId: string, apiVersion: string, resourceId: string, options?: Models.SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams): Promise; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + add(workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + add(workspaceId: string, apiVersion: string, resourceId: string, options: Models.SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams, callback: msRest.ServiceCallback): void; + add(workspaceId: string, apiVersion: string, resourceId: string, options?: Models.SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceId, + apiVersion, + resourceId, + options + }, + addOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}", + urlParameters: [ + Parameters.ruleId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "body" + ], + mapper: Mappers.RuleResultsInput + }, + responses: { + 200: { + bodyMapper: Mappers.RuleResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}", + urlParameters: [ + Parameters.ruleId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RuleResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}", + urlParameters: [ + Parameters.ruleId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules", + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RulesResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const addOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules", + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "body" + ], + mapper: Mappers.RulesResultsInput + }, + responses: { + 200: { + bodyMapper: Mappers.RulesResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts new file mode 100644 index 000000000000..89a736a9a27a --- /dev/null +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts @@ -0,0 +1,164 @@ +/* + * 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/sqlVulnerabilityAssessmentScanResultsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SqlVulnerabilityAssessmentScanResults. */ +export class SqlVulnerabilityAssessmentScanResults { + private readonly client: SecurityCenterContext; + + /** + * Create a SqlVulnerabilityAssessmentScanResults. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * @summary Gets the scan results of a single rule in a scan record. + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param scanResultId The rule Id of the results. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(scanId: string, scanResultId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param scanResultId The rule Id of the results. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + get(scanId: string, scanResultId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param scanResultId The rule Id of the results. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + get(scanId: string, scanResultId: string, workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scanId: string, scanResultId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scanId, + scanResultId, + workspaceId, + apiVersion, + resourceId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets a list of scan results for a single scan record. + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + list(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + list(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scanId, + workspaceId, + apiVersion, + resourceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}/scanResults/{scanResultId}", + urlParameters: [ + Parameters.scanId, + Parameters.scanResultId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScanResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}/scanResults", + urlParameters: [ + Parameters.scanId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScanResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts new file mode 100644 index 000000000000..3ea4f5be8f98 --- /dev/null +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -0,0 +1,154 @@ +/* + * 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/sqlVulnerabilityAssessmentScansMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SqlVulnerabilityAssessmentScans. */ +export class SqlVulnerabilityAssessmentScans { + private readonly client: SecurityCenterContext; + + /** + * Create a SqlVulnerabilityAssessmentScans. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * @summary Gets the scan details of a single scan record. + * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + get(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + get(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scanId, + workspaceId, + apiVersion, + resourceId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets a list of scan records. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + list(workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + list(workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceId, + apiVersion, + resourceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}", + urlParameters: [ + Parameters.scanId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Scan + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans", + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Scans + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/subAssessments.ts b/sdk/security/arm-security/src/operations/subAssessments.ts index 64a0fbc45549..fe62009099b6 100644 --- a/sdk/security/arm-security/src/operations/subAssessments.ts +++ b/sdk/security/arm-security/src/operations/subAssessments.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 @@ -278,6 +277,9 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -299,6 +301,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/tasks.ts b/sdk/security/arm-security/src/operations/tasks.ts index 28712385dcf5..726bc72a067b 100644 --- a/sdk/security/arm-security/src/operations/tasks.ts +++ b/sdk/security/arm-security/src/operations/tasks.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 @@ -251,7 +250,7 @@ export class Tasks { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.TasksListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -262,8 +261,8 @@ export class Tasks { * @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.TasksListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.TasksListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -279,7 +278,7 @@ export class Tasks { * @param [options] The optional parameters * @returns Promise */ - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByHomeRegionNext(nextPageLink: string, options?: Models.TasksListByHomeRegionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -290,8 +289,8 @@ export class Tasks { * @param options The optional parameters * @param callback The callback */ - listByHomeRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByHomeRegionNext(nextPageLink: string, options: Models.TasksListByHomeRegionNextOptionalParams, callback: msRest.ServiceCallback): void; + listByHomeRegionNext(nextPageLink: string, options?: Models.TasksListByHomeRegionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -307,7 +306,7 @@ export class Tasks { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.TasksListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -318,8 +317,8 @@ export class Tasks { * @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.TasksListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.TasksListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -514,6 +513,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -535,6 +538,10 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -556,6 +563,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/topology.ts b/sdk/security/arm-security/src/operations/topology.ts index 05a1723a8999..c41bb2410b82 100644 --- a/sdk/security/arm-security/src/operations/topology.ts +++ b/sdk/security/arm-security/src/operations/topology.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 @@ -248,6 +247,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -269,6 +271,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/workspaceSettings.ts b/sdk/security/arm-security/src/operations/workspaceSettings.ts index 242206b5175f..73a69a9bb1a9 100644 --- a/sdk/security/arm-security/src/operations/workspaceSettings.ts +++ b/sdk/security/arm-security/src/operations/workspaceSettings.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 @@ -343,6 +342,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 5f78c4465490..94a052843133 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.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 { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -19,8 +19,6 @@ class SecurityCenter extends SecurityCenterContext { // Operation groups complianceResults: operations.ComplianceResults; pricings: operations.Pricings; - alerts: operations.Alerts; - settings: operations.Settings; advancedThreatProtection: operations.AdvancedThreatProtection; deviceSecurityGroups: operations.DeviceSecurityGroups; iotSecuritySolution: operations.IotSecuritySolution; @@ -38,10 +36,10 @@ class SecurityCenter extends SecurityCenterContext { regulatoryComplianceStandards: operations.RegulatoryComplianceStandards; regulatoryComplianceControls: operations.RegulatoryComplianceControls; regulatoryComplianceAssessments: operations.RegulatoryComplianceAssessments; - serverVulnerabilityAssessment: operations.ServerVulnerabilityAssessmentOperations; subAssessments: operations.SubAssessments; automations: operations.Automations; alertsSuppressionRules: operations.AlertsSuppressionRules; + serverVulnerabilityAssessment: operations.ServerVulnerabilityAssessmentOperations; assessmentsMetadata: operations.AssessmentsMetadata; assessments: operations.Assessments; adaptiveApplicationControls: operations.AdaptiveApplicationControls; @@ -50,25 +48,49 @@ class SecurityCenter extends SecurityCenterContext { topology: operations.Topology; jitNetworkAccessPolicies: operations.JitNetworkAccessPolicies; discoveredSecuritySolutions: operations.DiscoveredSecuritySolutions; + securitySolutionsReferenceData: operations.SecuritySolutionsReferenceDataOperations; externalSecuritySolutions: operations.ExternalSecuritySolutions; secureScores: operations.SecureScores; secureScoreControls: operations.SecureScoreControls; secureScoreControlDefinitions: operations.SecureScoreControlDefinitions; + securitySolutions: operations.SecuritySolutions; + connectors: operations.Connectors; + sqlVulnerabilityAssessmentScans: operations.SqlVulnerabilityAssessmentScans; + sqlVulnerabilityAssessmentScanResults: operations.SqlVulnerabilityAssessmentScanResults; + sqlVulnerabilityAssessmentBaselineRules: operations.SqlVulnerabilityAssessmentBaselineRules; + iotDefenderSettings: operations.IotDefenderSettings; + iotSensors: operations.IotSensors; + devicesForSubscription: operations.DevicesForSubscription; + devicesForHub: operations.DevicesForHub; + device: operations.DeviceOperations; + onPremiseIotSensors: operations.OnPremiseIotSensors; + iotSites: operations.IotSites; + iotAlerts: operations.IotAlerts; + iotAlertTypes: operations.IotAlertTypes; + iotRecommendations: operations.IotRecommendations; + iotRecommendationTypes: operations.IotRecommendationTypes; + alerts: operations.Alerts; + settings: operations.Settings; + ingestionSettings: operations.IngestionSettings; + softwareInventories: operations.SoftwareInventories; /** * Initializes a new instance of the SecurityCenter class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved * from Get locations * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { super(credentials, subscriptionId, ascLocation, options); this.complianceResults = new operations.ComplianceResults(this); this.pricings = new operations.Pricings(this); - this.alerts = new operations.Alerts(this); - this.settings = new operations.Settings(this); this.advancedThreatProtection = new operations.AdvancedThreatProtection(this); this.deviceSecurityGroups = new operations.DeviceSecurityGroups(this); this.iotSecuritySolution = new operations.IotSecuritySolution(this); @@ -86,10 +108,10 @@ class SecurityCenter extends SecurityCenterContext { this.regulatoryComplianceStandards = new operations.RegulatoryComplianceStandards(this); this.regulatoryComplianceControls = new operations.RegulatoryComplianceControls(this); this.regulatoryComplianceAssessments = new operations.RegulatoryComplianceAssessments(this); - this.serverVulnerabilityAssessment = new operations.ServerVulnerabilityAssessmentOperations(this); this.subAssessments = new operations.SubAssessments(this); this.automations = new operations.Automations(this); this.alertsSuppressionRules = new operations.AlertsSuppressionRules(this); + this.serverVulnerabilityAssessment = new operations.ServerVulnerabilityAssessmentOperations(this); this.assessmentsMetadata = new operations.AssessmentsMetadata(this); this.assessments = new operations.Assessments(this); this.adaptiveApplicationControls = new operations.AdaptiveApplicationControls(this); @@ -98,10 +120,31 @@ class SecurityCenter extends SecurityCenterContext { this.topology = new operations.Topology(this); this.jitNetworkAccessPolicies = new operations.JitNetworkAccessPolicies(this); this.discoveredSecuritySolutions = new operations.DiscoveredSecuritySolutions(this); + this.securitySolutionsReferenceData = new operations.SecuritySolutionsReferenceDataOperations(this); this.externalSecuritySolutions = new operations.ExternalSecuritySolutions(this); this.secureScores = new operations.SecureScores(this); this.secureScoreControls = new operations.SecureScoreControls(this); this.secureScoreControlDefinitions = new operations.SecureScoreControlDefinitions(this); + this.securitySolutions = new operations.SecuritySolutions(this); + this.connectors = new operations.Connectors(this); + this.sqlVulnerabilityAssessmentScans = new operations.SqlVulnerabilityAssessmentScans(this); + this.sqlVulnerabilityAssessmentScanResults = new operations.SqlVulnerabilityAssessmentScanResults(this); + this.sqlVulnerabilityAssessmentBaselineRules = new operations.SqlVulnerabilityAssessmentBaselineRules(this); + this.iotDefenderSettings = new operations.IotDefenderSettings(this); + this.iotSensors = new operations.IotSensors(this); + this.devicesForSubscription = new operations.DevicesForSubscription(this); + this.devicesForHub = new operations.DevicesForHub(this); + this.device = new operations.DeviceOperations(this); + this.onPremiseIotSensors = new operations.OnPremiseIotSensors(this); + this.iotSites = new operations.IotSites(this); + this.iotAlerts = new operations.IotAlerts(this); + this.iotAlertTypes = new operations.IotAlertTypes(this); + this.iotRecommendations = new operations.IotRecommendations(this); + this.iotRecommendationTypes = new operations.IotRecommendationTypes(this); + this.alerts = new operations.Alerts(this); + this.settings = new operations.Settings(this); + this.ingestionSettings = new operations.IngestionSettings(this); + this.softwareInventories = new operations.SoftwareInventories(this); } } diff --git a/sdk/security/arm-security/src/securityCenterContext.ts b/sdk/security/arm-security/src/securityCenterContext.ts index e740963ad836..42fe5c574428 100644 --- a/sdk/security/arm-security/src/securityCenterContext.ts +++ b/sdk/security/arm-security/src/securityCenterContext.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 @@ -11,24 +10,30 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-security"; -const packageVersion = "2.0.0"; +const packageVersion = "3.0.0"; export class SecurityCenterContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; ascLocation: string; /** * Initializes a new instance of the SecurityCenter class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription ID * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved * from Get locations * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -42,7 +47,7 @@ export class SecurityCenterContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -57,10 +62,10 @@ export class SecurityCenterContext extends msRestAzure.AzureServiceClient { this.subscriptionId = subscriptionId; this.ascLocation = ascLocation; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/serialconsole/arm-serialconsole/README.md b/sdk/serialconsole/arm-serialconsole/README.md index 8fcae878eebe..f82477f8a106 100644 --- a/sdk/serialconsole/arm-serialconsole/README.md +++ b/sdk/serialconsole/arm-serialconsole/README.md @@ -1,89 +1,100 @@ ## Azure MicrosoftSerialConsoleClient SDK for JavaScript -This package contains an isomorphic SDK for MicrosoftSerialConsoleClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MicrosoftSerialConsoleClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-serialconsole` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-serialconsole +npm install --save @azure/arm-serialconsole @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. + ### How to use -#### nodejs - Authentication, client creation and operations list as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and operations list as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MicrosoftSerialConsoleClient, MicrosoftSerialConsoleModels, MicrosoftSerialConsoleMappers } from "@azure/arm-serialconsole"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MicrosoftSerialConsoleClient } = require("@azure/arm-serialconsole"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MicrosoftSerialConsoleClient(creds, subscriptionId); - client.list.operations().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MicrosoftSerialConsoleClient(creds, subscriptionId); + +client.list.operations().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and operations list as an example written in JavaScript. +#### browser - Authentication, client creation, and operations list as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-serialconsole sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fserialconsole%2Farm-serialconsole%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/serialconsole/arm-serialconsole/README.png) diff --git a/sdk/serialconsole/arm-serialconsole/package.json b/sdk/serialconsole/arm-serialconsole/package.json index f2093c23c83a..45a0b393d480 100644 --- a/sdk/serialconsole/arm-serialconsole/package.json +++ b/sdk/serialconsole/arm-serialconsole/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-serialconsole", "author": "Microsoft Corporation", "description": "MicrosoftSerialConsoleClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/microsoftSerialConsoleClient.js", "types": "./esm/microsoftSerialConsoleClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/serialconsole/arm-serialconsole/src/microsoftSerialConsoleClient.ts b/sdk/serialconsole/arm-serialconsole/src/microsoftSerialConsoleClient.ts index ba521794b237..9735e35a8420 100644 --- a/sdk/serialconsole/arm-serialconsole/src/microsoftSerialConsoleClient.ts +++ b/sdk/serialconsole/arm-serialconsole/src/microsoftSerialConsoleClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -23,11 +24,16 @@ class MicrosoftSerialConsoleClient extends MicrosoftSerialConsoleClientContext { /** * Initializes a new instance of the MicrosoftSerialConsoleClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MicrosoftSerialConsoleClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MicrosoftSerialConsoleClientOptions) { super(credentials, subscriptionId, options); this.list = new operations.List(this); this.listConsole = new operations.ListConsole(this); diff --git a/sdk/serialconsole/arm-serialconsole/src/microsoftSerialConsoleClientContext.ts b/sdk/serialconsole/arm-serialconsole/src/microsoftSerialConsoleClientContext.ts index 1478ee9b10b3..2fda18a50afb 100644 --- a/sdk/serialconsole/arm-serialconsole/src/microsoftSerialConsoleClientContext.ts +++ b/sdk/serialconsole/arm-serialconsole/src/microsoftSerialConsoleClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-serialconsole"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class MicrosoftSerialConsoleClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the MicrosoftSerialConsoleClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MicrosoftSerialConsoleClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MicrosoftSerialConsoleClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/service-map/arm-servicemap/README.md b/sdk/service-map/arm-servicemap/README.md index fc63791a3f0a..68f74734fbc0 100644 --- a/sdk/service-map/arm-servicemap/README.md +++ b/sdk/service-map/arm-servicemap/README.md @@ -1,103 +1,113 @@ ## Azure ServicemapManagementClient SDK for JavaScript -This package contains an isomorphic SDK for ServicemapManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ServicemapManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-servicemap` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-servicemap +npm install --save @azure/arm-servicemap @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. + ### How to use -#### nodejs - Authentication, client creation and listByWorkspace machines as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and listByWorkspace machines as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ServicemapManagementClient, ServicemapManagementModels, ServicemapManagementMappers } from "@azure/arm-servicemap"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ServicemapManagementClient } = require("@azure/arm-servicemap"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ServicemapManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const workspaceName = "testworkspaceName"; - const live = true; - const startTime = new Date().toISOString(); - const endTime = new Date().toISOString(); - const timestamp = new Date().toISOString(); - const top = 1; - client.machines.listByWorkspace(resourceGroupName, workspaceName, live, startTime, endTime, timestamp, top).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ServicemapManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const workspaceName = "testworkspaceName"; +const live = true; +const startTime = new Date().toISOString(); +const endTime = new Date().toISOString(); +const timestamp = new Date().toISOString(); +const top = 1; +client.machines.listByWorkspace(resourceGroupName, workspaceName, live, startTime, endTime, timestamp, top).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and listByWorkspace machines as an example written in JavaScript. +#### browser - Authentication, client creation, and listByWorkspace machines as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-servicemap sample - - + @@ -109,4 +119,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fservice-map%2Farm-servicemap%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/service-map/arm-servicemap/README.png) diff --git a/sdk/service-map/arm-servicemap/package.json b/sdk/service-map/arm-servicemap/package.json index 0fd1d7250ed8..cfa445d99063 100644 --- a/sdk/service-map/arm-servicemap/package.json +++ b/sdk/service-map/arm-servicemap/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-servicemap", "author": "Microsoft Corporation", "description": "ServicemapManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.2.0", + "version": "2.3.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.0", - "@azure/ms-rest-js": "^2.0.3", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/servicemapManagementClient.js", "types": "./esm/servicemapManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/service-map/arm-servicemap/src/servicemapManagementClient.ts b/sdk/service-map/arm-servicemap/src/servicemapManagementClient.ts index 22ab164d4ac2..a8725b5b9c85 100644 --- a/sdk/service-map/arm-servicemap/src/servicemapManagementClient.ts +++ b/sdk/service-map/arm-servicemap/src/servicemapManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -27,11 +28,16 @@ class ServicemapManagementClient extends ServicemapManagementClientContext { /** * Initializes a new instance of the ServicemapManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ServicemapManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ServicemapManagementClientOptions) { super(credentials, subscriptionId, options); this.machines = new operations.Machines(this); this.processes = new operations.Processes(this); diff --git a/sdk/service-map/arm-servicemap/src/servicemapManagementClientContext.ts b/sdk/service-map/arm-servicemap/src/servicemapManagementClientContext.ts index 782f18140578..ccdb98cfe729 100644 --- a/sdk/service-map/arm-servicemap/src/servicemapManagementClientContext.ts +++ b/sdk/service-map/arm-servicemap/src/servicemapManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-servicemap"; -const packageVersion = "2.2.0"; +const packageVersion = "2.3.0"; export class ServicemapManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ServicemapManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ServicemapManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ServicemapManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/servicebus/arm-servicebus/README.md b/sdk/servicebus/arm-servicebus/README.md index b14c18cc53b8..81020e0cfe26 100644 --- a/sdk/servicebus/arm-servicebus/README.md +++ b/sdk/servicebus/arm-servicebus/README.md @@ -1,90 +1,100 @@ ## Azure ServiceBusManagementClient SDK for JavaScript -This package contains an isomorphic SDK for ServiceBusManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ServiceBusManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-servicebus` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-servicebus +npm install --save @azure/arm-servicebus @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ServiceBusManagementClient, ServiceBusManagementModels, ServiceBusManagementMappers } from "@azure/arm-servicebus"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ServiceBusManagementClient } = require("@azure/arm-servicebus"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ServiceBusManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ServiceBusManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-servicebus sample - - + diff --git a/sdk/servicebus/arm-servicebus/package.json b/sdk/servicebus/arm-servicebus/package.json index 4a3e56681e22..fe7310bb84d2 100644 --- a/sdk/servicebus/arm-servicebus/package.json +++ b/sdk/servicebus/arm-servicebus/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-servicebus", "author": "Microsoft Corporation", "description": "ServiceBusManagementClient Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "version": "4.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/serviceBusManagementClient.js", "types": "./esm/serviceBusManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/servicebus/arm-servicebus/src/serviceBusManagementClient.ts b/sdk/servicebus/arm-servicebus/src/serviceBusManagementClient.ts index d2cb78a62bf5..f289ed461edd 100644 --- a/sdk/servicebus/arm-servicebus/src/serviceBusManagementClient.ts +++ b/sdk/servicebus/arm-servicebus/src/serviceBusManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -31,12 +32,17 @@ class ServiceBusManagementClient extends ServiceBusManagementClientContext { /** * Initializes a new instance of the ServiceBusManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials that uniquely identify a Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ServiceBusManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ServiceBusManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.namespaces = new operations.Namespaces(this); diff --git a/sdk/servicebus/arm-servicebus/src/serviceBusManagementClientContext.ts b/sdk/servicebus/arm-servicebus/src/serviceBusManagementClientContext.ts index 49a30c3cba92..44ffe2155450 100644 --- a/sdk/servicebus/arm-servicebus/src/serviceBusManagementClientContext.ts +++ b/sdk/servicebus/arm-servicebus/src/serviceBusManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-servicebus"; -const packageVersion = "4.0.0"; +const packageVersion = "4.1.0"; export class ServiceBusManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the ServiceBusManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials that uniquely identify a Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ServiceBusManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ServiceBusManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/servicefabric/arm-servicefabric/README.md b/sdk/servicefabric/arm-servicefabric/README.md index 04ec2c7d4bd6..37a16ad25db6 100644 --- a/sdk/servicefabric/arm-servicefabric/README.md +++ b/sdk/servicefabric/arm-servicefabric/README.md @@ -1,94 +1,103 @@ ## Azure ServiceFabricManagementClient SDK for JavaScript -This package contains an isomorphic SDK for ServiceFabricManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ServiceFabricManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-servicefabric` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-servicefabric +npm install --save @azure/arm-servicefabric @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. + ### How to use -#### nodejs - Authentication, client creation and get clusters as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get clusters as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ServiceFabricManagementClient, ServiceFabricManagementModels, ServiceFabricManagementMappers } from "@azure/arm-servicefabric"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ServiceFabricManagementClient } = require("@azure/arm-servicefabric"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ServiceFabricManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const clusterName = "testclusterName"; - client.clusters.get(resourceGroupName, clusterName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ServiceFabricManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const clusterName = "testclusterName"; +client.clusters.get(resourceGroupName, clusterName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get clusters as an example written in JavaScript. +#### browser - Authentication, client creation, and get clusters as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-servicefabric sample - - + diff --git a/sdk/servicefabric/arm-servicefabric/package.json b/sdk/servicefabric/arm-servicefabric/package.json index 09e9088903be..98a10ebc21f0 100644 --- a/sdk/servicefabric/arm-servicefabric/package.json +++ b/sdk/servicefabric/arm-servicefabric/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-servicefabric", "author": "Microsoft Corporation", "description": "ServiceFabricManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/serviceFabricManagementClient.js", "types": "./esm/serviceFabricManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/servicefabric/arm-servicefabric/src/serviceFabricManagementClient.ts b/sdk/servicefabric/arm-servicefabric/src/serviceFabricManagementClient.ts index df9866ea3461..8d396cf11af4 100644 --- a/sdk/servicefabric/arm-servicefabric/src/serviceFabricManagementClient.ts +++ b/sdk/servicefabric/arm-servicefabric/src/serviceFabricManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -30,11 +31,16 @@ class ServiceFabricManagementClient extends ServiceFabricManagementClientContext /** * Initializes a new instance of the ServiceFabricManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 customer subscription identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ServiceFabricManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ServiceFabricManagementClientOptions) { super(credentials, subscriptionId, options); this.clusters = new operations.Clusters(this); this.clusterVersions = new operations.ClusterVersions(this); diff --git a/sdk/servicefabric/arm-servicefabric/src/serviceFabricManagementClientContext.ts b/sdk/servicefabric/arm-servicefabric/src/serviceFabricManagementClientContext.ts index b2a44ab3f52f..1b2bd54440af 100644 --- a/sdk/servicefabric/arm-servicefabric/src/serviceFabricManagementClientContext.ts +++ b/sdk/servicefabric/arm-servicefabric/src/serviceFabricManagementClientContext.ts @@ -10,22 +10,28 @@ 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"; const packageName = "@azure/arm-servicefabric"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class ServiceFabricManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; /** * Initializes a new instance of the ServiceFabricManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 customer subscription identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ServiceFabricManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ServiceFabricManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/README.md b/sdk/servicefabricmesh/arm-servicefabricmesh/README.md index 8201d8575194..d1f3156643dd 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/README.md +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/README.md @@ -1,89 +1,100 @@ ## Azure ServiceFabricMeshManagementClient SDK for JavaScript -This package contains an isomorphic SDK for ServiceFabricMeshManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ServiceFabricMeshManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-servicefabricmesh +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-servicefabricmesh` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-servicefabricmesh @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ServiceFabricMeshManagementClient, ServiceFabricMeshManagementModels, ServiceFabricMeshManagementMappers } from "@azure/arm-servicefabricmesh"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ServiceFabricMeshManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new ServiceFabricMeshManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-servicefabricmesh sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fservicefabricmesh%2Farm-servicefabricmesh%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/servicefabricmesh/arm-servicefabricmesh/README.png) diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/package.json b/sdk/servicefabricmesh/arm-servicefabricmesh/package.json index fdd1e11017b6..9bc80260c79b 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/package.json +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-servicefabricmesh", "author": "Microsoft Corporation", "description": "ServiceFabricMeshManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.1.0", + "version": "2.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/serviceFabricMeshManagementClient.js", "types": "./esm/serviceFabricMeshManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClient.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClient.ts index d63849585195..f8e97eff4825 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClient.ts +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -30,11 +31,16 @@ class ServiceFabricMeshManagementClient extends ServiceFabricMeshManagementClien /** * Initializes a new instance of the ServiceFabricMeshManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 customer subscription identifier * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ServiceFabricMeshManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ServiceFabricMeshManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.secret = new operations.Secret(this); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClientContext.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClientContext.ts index 2cb5036ab674..b34764aa52c1 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClientContext.ts +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-servicefabricmesh"; -const packageVersion = "0.1.0"; +const packageVersion = "2.2.0"; export class ServiceFabricMeshManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the ServiceFabricMeshManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 customer subscription identifier * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ServiceFabricMeshManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ServiceFabricMeshManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/signalr/arm-signalr/README.md b/sdk/signalr/arm-signalr/README.md index 7423938c8103..41b5de8f57fa 100644 --- a/sdk/signalr/arm-signalr/README.md +++ b/sdk/signalr/arm-signalr/README.md @@ -1,65 +1,74 @@ ## Azure SignalRManagementClient SDK for JavaScript -This package contains an isomorphic SDK for SignalRManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for SignalRManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-signalr` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-signalr +npm install --save @azure/arm-signalr @azure/identity ``` -### How to use +> **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. -#### nodejs - client creation and list operations as an example written in TypeScript. +### How to use -##### Install @azure/ms-rest-nodeauth +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +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. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package - -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { SignalRManagementClient } = require("@azure/arm-signalr"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth - .interactiveLogin() - .then((creds) => { - const client = new SignalRManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); - }) - .catch((err) => { - console.error(err); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SignalRManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); +}).catch((err) => { + console.log("An error occurred:"); + console.error(err); +}); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html ```html @@ -67,32 +76,25 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to @azure/arm-signalr sample - - + diff --git a/sdk/signalr/arm-signalr/package.json b/sdk/signalr/arm-signalr/package.json index d6e619813daa..3b83e183076c 100644 --- a/sdk/signalr/arm-signalr/package.json +++ b/sdk/signalr/arm-signalr/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-signalr", "author": "Microsoft Corporation", "description": "SignalRManagementClient Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "version": "4.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/signalRManagementClient.js", "types": "./esm/signalRManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/signalr/arm-signalr/src/signalRManagementClient.ts b/sdk/signalr/arm-signalr/src/signalRManagementClient.ts index f89ba0585838..8d164ba3d84f 100644 --- a/sdk/signalr/arm-signalr/src/signalRManagementClient.ts +++ b/sdk/signalr/arm-signalr/src/signalRManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -24,13 +25,18 @@ class SignalRManagementClient extends SignalRManagementClientContext { /** * Initializes a new instance of the SignalRManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription Id which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SignalRManagementClientOptions ) { diff --git a/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts b/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts index 066c749b799a..d087e8bdb6ae 100644 --- a/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts +++ b/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts @@ -9,25 +9,31 @@ 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"; const packageName = "@azure/arm-signalr"; -const packageVersion = "4.0.0"; +const packageVersion = "4.1.0"; export class SignalRManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the SignalRManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription Id which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SignalRManagementClientOptions ) { diff --git a/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/README.md b/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/README.md index ac5fca0a2f2a..33f39830ef60 100644 --- a/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/README.md +++ b/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/README.md @@ -1,96 +1,105 @@ ## Azure SqlVirtualMachineManagementClient SDK for JavaScript -This package contains an isomorphic SDK for SqlVirtualMachineManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for SqlVirtualMachineManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-sqlvirtualmachine` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-sqlvirtualmachine +npm install --save @azure/arm-sqlvirtualmachine @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. + ### How to use -#### nodejs - Authentication, client creation and get availabilityGroupListeners as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get availabilityGroupListeners as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { SqlVirtualMachineManagementClient, SqlVirtualMachineManagementModels, SqlVirtualMachineManagementMappers } from "@azure/arm-sqlvirtualmachine"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { SqlVirtualMachineManagementClient } = require("@azure/arm-sqlvirtualmachine"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SqlVirtualMachineManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const sqlVirtualMachineGroupName = "testsqlVirtualMachineGroupName"; - const availabilityGroupListenerName = "testavailabilityGroupListenerName"; - client.availabilityGroupListeners.get(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SqlVirtualMachineManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const sqlVirtualMachineGroupName = "testsqlVirtualMachineGroupName"; +const availabilityGroupListenerName = "testavailabilityGroupListenerName"; +client.availabilityGroupListeners.get(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get availabilityGroupListeners as an example written in JavaScript. +#### browser - Authentication, client creation, and get availabilityGroupListeners as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-sqlvirtualmachine sample - - + diff --git a/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/package.json b/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/package.json index d398e0f6d994..139c5e42f65f 100644 --- a/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/package.json +++ b/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-sqlvirtualmachine", "author": "Microsoft Corporation", "description": "SqlVirtualMachineManagementClient Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "version": "4.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/sqlVirtualMachineManagementClient.js", "types": "./esm/sqlVirtualMachineManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/sqlVirtualMachineManagementClient.ts b/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/sqlVirtualMachineManagementClient.ts index 1e7c8b18f037..8605a2c6a825 100644 --- a/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/sqlVirtualMachineManagementClient.ts +++ b/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/sqlVirtualMachineManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -24,11 +25,16 @@ class SqlVirtualMachineManagementClient extends SqlVirtualMachineManagementClien /** * Initializes a new instance of the SqlVirtualMachineManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription ID that identifies an Azure subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SqlVirtualMachineManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SqlVirtualMachineManagementClientOptions) { super(credentials, subscriptionId, options); this.availabilityGroupListeners = new operations.AvailabilityGroupListeners(this); this.operations = new operations.Operations(this); diff --git a/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/sqlVirtualMachineManagementClientContext.ts b/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/sqlVirtualMachineManagementClientContext.ts index fd4e2c8469cf..f72063e4112d 100644 --- a/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/sqlVirtualMachineManagementClientContext.ts +++ b/sdk/sqlvirtualmachine/arm-sqlvirtualmachine/src/sqlVirtualMachineManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-sqlvirtualmachine"; -const packageVersion = "4.0.0"; +const packageVersion = "4.1.0"; export class SqlVirtualMachineManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the SqlVirtualMachineManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription ID that identifies an Azure subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SqlVirtualMachineManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SqlVirtualMachineManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/storage/arm-storage-profile-2019-03-01-hybrid/README.md b/sdk/storage/arm-storage-profile-2019-03-01-hybrid/README.md index 970386f1d2f2..433fac8b794e 100644 --- a/sdk/storage/arm-storage-profile-2019-03-01-hybrid/README.md +++ b/sdk/storage/arm-storage-profile-2019-03-01-hybrid/README.md @@ -1,89 +1,100 @@ ## Azure StorageManagementClient SDK for JavaScript -This package contains an isomorphic SDK for StorageManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StorageManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-storage-profile-2019-03-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-storage-profile-2019-03-01-hybrid +npm install --save @azure/arm-storage-profile-2019-03-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { StorageManagementClient, StorageManagementModels, StorageManagementMappers } from "@azure/arm-storage-profile-2019-03-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { StorageManagementClient } = require("@azure/arm-storage-profile-2019-03-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new StorageManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new StorageManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-storage-profile-2019-03-01-hybrid sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstorage%2Farm-storage-profile-2019-03-01-hybrid%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/storage/arm-storage-profile-2019-03-01-hybrid/README.png) diff --git a/sdk/storage/arm-storage-profile-2019-03-01-hybrid/package.json b/sdk/storage/arm-storage-profile-2019-03-01-hybrid/package.json index 74c912b34582..c731499aa5b8 100644 --- a/sdk/storage/arm-storage-profile-2019-03-01-hybrid/package.json +++ b/sdk/storage/arm-storage-profile-2019-03-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-storage-profile-2019-03-01-hybrid", "author": "Microsoft Corporation", "description": "StorageManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -21,7 +22,7 @@ "module": "./esm/storageManagementClient.js", "types": "./esm/storageManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/storage/arm-storage-profile-2019-03-01-hybrid/src/storageManagementClient.ts b/sdk/storage/arm-storage-profile-2019-03-01-hybrid/src/storageManagementClient.ts index c14b7f11a76f..61b48769f0e3 100644 --- a/sdk/storage/arm-storage-profile-2019-03-01-hybrid/src/storageManagementClient.ts +++ b/sdk/storage/arm-storage-profile-2019-03-01-hybrid/src/storageManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -24,12 +25,17 @@ class StorageManagementClient extends StorageManagementClientContext { /** * Initializes a new instance of the StorageManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.skus = new operations.Skus(this); diff --git a/sdk/storage/arm-storage-profile-2019-03-01-hybrid/src/storageManagementClientContext.ts b/sdk/storage/arm-storage-profile-2019-03-01-hybrid/src/storageManagementClientContext.ts index 0dc8e6064c1a..dcd6e04a2a9d 100644 --- a/sdk/storage/arm-storage-profile-2019-03-01-hybrid/src/storageManagementClientContext.ts +++ b/sdk/storage/arm-storage-profile-2019-03-01-hybrid/src/storageManagementClientContext.ts @@ -10,24 +10,30 @@ 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"; const packageName = "@azure/arm-storage-profile-2019-03-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class StorageManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the StorageManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Gets subscription credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/storage/arm-storage-profile-2020-09-01-hybrid/README.md b/sdk/storage/arm-storage-profile-2020-09-01-hybrid/README.md index af77a5cd2cfa..05785727ec1b 100644 --- a/sdk/storage/arm-storage-profile-2020-09-01-hybrid/README.md +++ b/sdk/storage/arm-storage-profile-2020-09-01-hybrid/README.md @@ -1,90 +1,100 @@ ## Azure StorageManagementClient SDK for JavaScript -This package contains an isomorphic SDK for StorageManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StorageManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-storage-profile-2020-09-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-storage-profile-2020-09-01-hybrid +npm install --save @azure/arm-storage-profile-2020-09-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { StorageManagementClient, StorageManagementModels, StorageManagementMappers } from "@azure/arm-storage-profile-2020-09-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { StorageManagementClient } = require("@azure/arm-storage-profile-2020-09-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new StorageManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new StorageManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-storage-profile-2020-09-01-hybrid sample - - + diff --git a/sdk/storage/arm-storage-profile-2020-09-01-hybrid/package.json b/sdk/storage/arm-storage-profile-2020-09-01-hybrid/package.json index a01053038129..470e73450200 100644 --- a/sdk/storage/arm-storage-profile-2020-09-01-hybrid/package.json +++ b/sdk/storage/arm-storage-profile-2020-09-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-storage-profile-2020-09-01-hybrid", "author": "Microsoft Corporation", "description": "StorageManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/storageManagementClient.js", "types": "./esm/storageManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/storage/arm-storage-profile-2020-09-01-hybrid/src/storageManagementClient.ts b/sdk/storage/arm-storage-profile-2020-09-01-hybrid/src/storageManagementClient.ts index 78d85210f6cf..68af8489b41e 100644 --- a/sdk/storage/arm-storage-profile-2020-09-01-hybrid/src/storageManagementClient.ts +++ b/sdk/storage/arm-storage-profile-2020-09-01-hybrid/src/storageManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -29,11 +30,16 @@ class StorageManagementClient extends StorageManagementClientContext { /** * Initializes a new instance of the StorageManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.skus = new operations.Skus(this); diff --git a/sdk/storage/arm-storage-profile-2020-09-01-hybrid/src/storageManagementClientContext.ts b/sdk/storage/arm-storage-profile-2020-09-01-hybrid/src/storageManagementClientContext.ts index 91e12eeb1319..9492f44e1359 100644 --- a/sdk/storage/arm-storage-profile-2020-09-01-hybrid/src/storageManagementClientContext.ts +++ b/sdk/storage/arm-storage-profile-2020-09-01-hybrid/src/storageManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-storage-profile-2020-09-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class StorageManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the StorageManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/storage/arm-storage/README.md b/sdk/storage/arm-storage/README.md index d95b62a15586..71fc9ecbee4a 100644 --- a/sdk/storage/arm-storage/README.md +++ b/sdk/storage/arm-storage/README.md @@ -1,89 +1,100 @@ ## Azure StorageManagementClient SDK for JavaScript -This package contains an isomorphic SDK for StorageManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StorageManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-storage` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-storage +npm install --save @azure/arm-storage @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. + ### How to use -#### nodejs - client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { StorageManagementClient } = require("@azure/arm-storage"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new StorageManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new StorageManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-storage sample - - + diff --git a/sdk/storage/arm-storage/package.json b/sdk/storage/arm-storage/package.json index f1ec9c4fe09c..e9dfee4fe9e6 100644 --- a/sdk/storage/arm-storage/package.json +++ b/sdk/storage/arm-storage/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-storage", "author": "Microsoft Corporation", "description": "StorageManagementClient Library with typescript type definitions for node.js and browser.", - "version": "16.0.0", + "version": "16.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/storageManagementClient.js", "types": "./esm/storageManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/storage/arm-storage/src/storageManagementClient.ts b/sdk/storage/arm-storage/src/storageManagementClient.ts index 243688c40ba2..49219deb5668 100644 --- a/sdk/storage/arm-storage/src/storageManagementClient.ts +++ b/sdk/storage/arm-storage/src/storageManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -38,11 +39,16 @@ class StorageManagementClient extends StorageManagementClientContext { /** * Initializes a new instance of the StorageManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.skus = new operations.Skus(this); diff --git a/sdk/storage/arm-storage/src/storageManagementClientContext.ts b/sdk/storage/arm-storage/src/storageManagementClientContext.ts index 6e9d9eefca84..59f62b7b557a 100644 --- a/sdk/storage/arm-storage/src/storageManagementClientContext.ts +++ b/sdk/storage/arm-storage/src/storageManagementClientContext.ts @@ -9,24 +9,30 @@ 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"; const packageName = "@azure/arm-storage"; -const packageVersion = "16.0.0"; +const packageVersion = "16.1.0"; export class StorageManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the StorageManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials, + credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageManagementClientOptions ) { diff --git a/sdk/storagecache/arm-storagecache/README.md b/sdk/storagecache/arm-storagecache/README.md index d42f43290e2c..1982b3cbc515 100644 --- a/sdk/storagecache/arm-storagecache/README.md +++ b/sdk/storagecache/arm-storagecache/README.md @@ -1,89 +1,100 @@ ## Azure StorageCacheManagementClient SDK for JavaScript -This package contains an isomorphic SDK for StorageCacheManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StorageCacheManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-storagecache` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-storagecache +npm install --save @azure/arm-storagecache @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. + ### How to use -#### nodejs - client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { StorageCacheManagementClient } = require("@azure/arm-storagecache"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new StorageCacheManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new StorageCacheManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-storagecache sample - - + diff --git a/sdk/storagecache/arm-storagecache/package.json b/sdk/storagecache/arm-storagecache/package.json index be9abbe053c5..ed330acbca45 100644 --- a/sdk/storagecache/arm-storagecache/package.json +++ b/sdk/storagecache/arm-storagecache/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-storagecache", "author": "Microsoft Corporation", "description": "StorageCacheManagementClient Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "version": "4.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/storageCacheManagementClient.js", "types": "./esm/storageCacheManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts b/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts index cb15178503bf..c57bfac9ce88 100644 --- a/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts +++ b/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -25,12 +26,17 @@ class StorageCacheManagementClient extends StorageCacheManagementClientContext { /** * Initializes a new instance of the StorageCacheManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageCacheManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageCacheManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.skus = new operations.Skus(this); diff --git a/sdk/storagecache/arm-storagecache/src/storageCacheManagementClientContext.ts b/sdk/storagecache/arm-storagecache/src/storageCacheManagementClientContext.ts index 563563daa716..9c2eac11305d 100644 --- a/sdk/storagecache/arm-storagecache/src/storageCacheManagementClientContext.ts +++ b/sdk/storagecache/arm-storagecache/src/storageCacheManagementClientContext.ts @@ -9,24 +9,30 @@ 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"; const packageName = "@azure/arm-storagecache"; -const packageVersion = "4.0.0"; +const packageVersion = "4.1.0"; export class StorageCacheManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the StorageCacheManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Subscription credentials which uniquely identify Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageCacheManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageCacheManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/storageimportexport/arm-storageimportexport/README.md b/sdk/storageimportexport/arm-storageimportexport/README.md index cb45c729d669..cce2a48b974c 100644 --- a/sdk/storageimportexport/arm-storageimportexport/README.md +++ b/sdk/storageimportexport/arm-storageimportexport/README.md @@ -1,89 +1,100 @@ ## Azure StorageImportExportManagementClient SDK for JavaScript -This package contains an isomorphic SDK for StorageImportExportManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StorageImportExportManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-storageimportexport +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-storageimportexport` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-storageimportexport @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. + ### How to use -#### nodejs - Authentication, client creation and list locations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list locations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { StorageImportExportManagementClient, StorageImportExportManagementModels, StorageImportExportManagementMappers } from "@azure/arm-storageimportexport"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { StorageImportExportManagementClient } = require("@azure/arm-storageimportexport"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new StorageImportExportManagementClient(creds, subscriptionId); - client.locations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new StorageImportExportManagementClient(creds, subscriptionId); + +client.locations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list locations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list locations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-storageimportexport sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstorageimportexport%2Farm-storageimportexport%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/storageimportexport/arm-storageimportexport/README.png) diff --git a/sdk/storageimportexport/arm-storageimportexport/package.json b/sdk/storageimportexport/arm-storageimportexport/package.json index 9a79781b78a0..010046dba505 100644 --- a/sdk/storageimportexport/arm-storageimportexport/package.json +++ b/sdk/storageimportexport/arm-storageimportexport/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-storageimportexport", "author": "Microsoft Corporation", "description": "StorageImportExportManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.2.0", + "version": "1.3.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/storageImportExportManagementClient.js", "types": "./esm/storageImportExportManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClient.ts b/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClient.ts index fdc10047f102..2690f8c348dd 100644 --- a/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClient.ts +++ b/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -24,11 +25,16 @@ class StorageImportExportManagementClient extends StorageImportExportManagementC /** * Initializes a new instance of the StorageImportExportManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 for the Azure user. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageImportExportManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageImportExportManagementClientOptions) { super(credentials, subscriptionId, options); this.locations = new operations.Locations(this); this.jobs = new operations.Jobs(this); diff --git a/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClientContext.ts b/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClientContext.ts index 08a5786a8d6a..26b4751baeac 100644 --- a/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClientContext.ts +++ b/sdk/storageimportexport/arm-storageimportexport/src/storageImportExportManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-storageimportexport"; -const packageVersion = "0.1.0"; +const packageVersion = "1.3.0"; export class StorageImportExportManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the StorageImportExportManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 for the Azure user. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageImportExportManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageImportExportManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/storagesync/arm-storagesync/README.md b/sdk/storagesync/arm-storagesync/README.md index 09b380bd29de..94c95f784e04 100644 --- a/sdk/storagesync/arm-storagesync/README.md +++ b/sdk/storagesync/arm-storagesync/README.md @@ -1,90 +1,100 @@ ## Azure StorageSyncManagementClient SDK for JavaScript -This package contains an isomorphic SDK for StorageSyncManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StorageSyncManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-storagesync` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-storagesync +npm install --save @azure/arm-storagesync @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { StorageSyncManagementClient, StorageSyncManagementModels, StorageSyncManagementMappers } from "@azure/arm-storagesync"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { StorageSyncManagementClient } = require("@azure/arm-storagesync"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new StorageSyncManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new StorageSyncManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-storagesync sample - - + diff --git a/sdk/storagesync/arm-storagesync/package.json b/sdk/storagesync/arm-storagesync/package.json index 29b8ef52098c..b9e48bc76811 100644 --- a/sdk/storagesync/arm-storagesync/package.json +++ b/sdk/storagesync/arm-storagesync/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-storagesync", "author": "Microsoft Corporation", "description": "StorageSyncManagementClient Library with typescript type definitions for node.js and browser.", - "version": "8.0.0", + "version": "8.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/storageSyncManagementClient.js", "types": "./esm/storageSyncManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts index e8507d474340..9197adff1266 100644 --- a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts +++ b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -28,11 +29,16 @@ class StorageSyncManagementClient extends StorageSyncManagementClientContext { /** * Initializes a new instance of the StorageSyncManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageSyncManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageSyncManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.storageSyncServices = new operations.StorageSyncServices(this); diff --git a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts index ef8da155c09f..8361453ab16c 100644 --- a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts +++ b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-storagesync"; -const packageVersion = "8.0.0"; +const packageVersion = "8.1.0"; export class StorageSyncManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the StorageSyncManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageSyncManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageSyncManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/storsimple1200series/arm-storsimple1200series/README.md b/sdk/storsimple1200series/arm-storsimple1200series/README.md index 20eccc8968fe..c877b2307124 100644 --- a/sdk/storsimple1200series/arm-storsimple1200series/README.md +++ b/sdk/storsimple1200series/arm-storsimple1200series/README.md @@ -1,89 +1,100 @@ ## Azure StorSimpleManagementClient SDK for JavaScript -This package contains an isomorphic SDK for StorSimpleManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StorSimpleManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-storsimple1200series +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-storsimple1200series` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-storsimple1200series @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. + ### How to use -#### nodejs - Authentication, client creation and list managers as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list managers as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { StorSimpleManagementClient, StorSimpleManagementModels, StorSimpleManagementMappers } from "@azure/arm-storsimple1200series"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { StorSimpleManagementClient } = require("@azure/arm-storsimple1200series"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new StorSimpleManagementClient(creds, subscriptionId); - client.managers.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new StorSimpleManagementClient(creds, subscriptionId); + +client.managers.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list managers as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list managers as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-storsimple1200series sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstorsimple1200series%2Farm-storsimple1200series%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/storsimple1200series/arm-storsimple1200series/README.png) diff --git a/sdk/storsimple1200series/arm-storsimple1200series/package.json b/sdk/storsimple1200series/arm-storsimple1200series/package.json index 9a197dea0fdb..db28102f38dd 100644 --- a/sdk/storsimple1200series/arm-storsimple1200series/package.json +++ b/sdk/storsimple1200series/arm-storsimple1200series/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-storsimple1200series", "author": "Microsoft Corporation", "description": "StorSimpleManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/storSimpleManagementClient.js", "types": "./esm/storSimpleManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/storsimple1200series/arm-storsimple1200series/src/storSimpleManagementClient.ts b/sdk/storsimple1200series/arm-storsimple1200series/src/storSimpleManagementClient.ts index 142f5f4dd5e2..287f8a1c3a16 100644 --- a/sdk/storsimple1200series/arm-storsimple1200series/src/storSimpleManagementClient.ts +++ b/sdk/storsimple1200series/arm-storsimple1200series/src/storSimpleManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -35,11 +36,16 @@ class StorSimpleManagementClient extends StorSimpleManagementClientContext { /** * Initializes a new instance of the StorSimpleManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorSimpleManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorSimpleManagementClientOptions) { super(credentials, subscriptionId, options); this.managers = new operations.Managers(this); this.availableProviderOperations = new operations.AvailableProviderOperationsOperations(this); diff --git a/sdk/storsimple1200series/arm-storsimple1200series/src/storSimpleManagementClientContext.ts b/sdk/storsimple1200series/arm-storsimple1200series/src/storSimpleManagementClientContext.ts index 4d4df0919526..f3963c937b05 100644 --- a/sdk/storsimple1200series/arm-storsimple1200series/src/storSimpleManagementClientContext.ts +++ b/sdk/storsimple1200series/arm-storsimple1200series/src/storSimpleManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-storsimple1200series"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class StorSimpleManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the StorSimpleManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorSimpleManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorSimpleManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/storsimple8000series/arm-storsimple8000series/README.md b/sdk/storsimple8000series/arm-storsimple8000series/README.md index 6b8d3c897e52..25fcbbb75913 100644 --- a/sdk/storsimple8000series/arm-storsimple8000series/README.md +++ b/sdk/storsimple8000series/arm-storsimple8000series/README.md @@ -1,89 +1,100 @@ ## Azure StorSimple8000SeriesManagementClient SDK for JavaScript -This package contains an isomorphic SDK for StorSimple8000SeriesManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StorSimple8000SeriesManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-storsimple8000series +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-storsimple8000series` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-storsimple8000series @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { StorSimple8000SeriesManagementClient, StorSimple8000SeriesManagementModels, StorSimple8000SeriesManagementMappers } from "@azure/arm-storsimple8000series"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { StorSimple8000SeriesManagementClient } = require("@azure/arm-storsimple8000series"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new StorSimple8000SeriesManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new StorSimple8000SeriesManagementClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-storsimple8000series sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstorsimple8000series%2Farm-storsimple8000series%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/storsimple8000series/arm-storsimple8000series/README.png) diff --git a/sdk/storsimple8000series/arm-storsimple8000series/package.json b/sdk/storsimple8000series/arm-storsimple8000series/package.json index 192caba6625a..2e099d5968bf 100644 --- a/sdk/storsimple8000series/arm-storsimple8000series/package.json +++ b/sdk/storsimple8000series/arm-storsimple8000series/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-storsimple8000series", "author": "Microsoft Corporation", "description": "StorSimple8000SeriesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/storSimple8000SeriesManagementClient.js", "types": "./esm/storSimple8000SeriesManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/storsimple8000series/arm-storsimple8000series/src/storSimple8000SeriesManagementClient.ts b/sdk/storsimple8000series/arm-storsimple8000series/src/storSimple8000SeriesManagementClient.ts index abe8192f1fff..fa637e5d592a 100644 --- a/sdk/storsimple8000series/arm-storsimple8000series/src/storSimple8000SeriesManagementClient.ts +++ b/sdk/storsimple8000series/arm-storsimple8000series/src/storSimple8000SeriesManagementClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -36,11 +37,16 @@ class StorSimple8000SeriesManagementClient extends StorSimple8000SeriesManagemen /** * Initializes a new instance of the StorSimple8000SeriesManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorSimple8000SeriesManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorSimple8000SeriesManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.managers = new operations.Managers(this); diff --git a/sdk/storsimple8000series/arm-storsimple8000series/src/storSimple8000SeriesManagementClientContext.ts b/sdk/storsimple8000series/arm-storsimple8000series/src/storSimple8000SeriesManagementClientContext.ts index 3839ad510595..d85dbba90b3e 100644 --- a/sdk/storsimple8000series/arm-storsimple8000series/src/storSimple8000SeriesManagementClientContext.ts +++ b/sdk/storsimple8000series/arm-storsimple8000series/src/storSimple8000SeriesManagementClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-storsimple8000series"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class StorSimple8000SeriesManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the StorSimple8000SeriesManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorSimple8000SeriesManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorSimple8000SeriesManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/streamanalytics/arm-streamanalytics/README.md b/sdk/streamanalytics/arm-streamanalytics/README.md index 9a7ba43bf422..512d5b856076 100644 --- a/sdk/streamanalytics/arm-streamanalytics/README.md +++ b/sdk/streamanalytics/arm-streamanalytics/README.md @@ -1,95 +1,105 @@ ## Azure StreamAnalyticsManagementClient SDK for JavaScript -This package contains an isomorphic SDK for StreamAnalyticsManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StreamAnalyticsManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-streamanalytics` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-streamanalytics +npm install --save @azure/arm-streamanalytics @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. + ### How to use -#### nodejs - client creation and get functions as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get functions as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { StreamAnalyticsManagementClient } = require("@azure/arm-streamanalytics"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new StreamAnalyticsManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const jobName = "testjobName"; - const functionName = "testfunctionName"; - client.functions.get(resourceGroupName, jobName, functionName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new StreamAnalyticsManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const jobName = "testjobName"; +const functionName = "testfunctionName"; +client.functions.get(resourceGroupName, jobName, functionName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get functions as an example written in JavaScript. +#### browser - Authentication, client creation, and get functions as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-streamanalytics sample - - + diff --git a/sdk/streamanalytics/arm-streamanalytics/package.json b/sdk/streamanalytics/arm-streamanalytics/package.json index e5246c121745..68082d5df897 100644 --- a/sdk/streamanalytics/arm-streamanalytics/package.json +++ b/sdk/streamanalytics/arm-streamanalytics/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-streamanalytics", "author": "Microsoft Corporation", "description": "StreamAnalyticsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.0.0", + "version": "2.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/streamAnalyticsManagementClient.js", "types": "./esm/streamAnalyticsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts index 64d4307d04e4..38328160afb4 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -28,11 +29,16 @@ class StreamAnalyticsManagementClient extends StreamAnalyticsManagementClientCon /** * Initializes a new instance of the StreamAnalyticsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StreamAnalyticsManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StreamAnalyticsManagementClientOptions) { super(credentials, subscriptionId, options); this.functions = new operations.Functions(this); this.inputs = new operations.Inputs(this); diff --git a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClientContext.ts b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClientContext.ts index 752d8b339deb..cf3c3070ca7d 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClientContext.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClientContext.ts @@ -9,22 +9,28 @@ 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"; const packageName = "@azure/arm-streamanalytics"; -const packageVersion = "2.0.0"; +const packageVersion = "2.1.0"; export class StreamAnalyticsManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; /** * Initializes a new instance of the StreamAnalyticsManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StreamAnalyticsManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StreamAnalyticsManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/README.md b/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/README.md index 6b4a8ef48d90..9c81510dbe11 100644 --- a/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/README.md +++ b/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/README.md @@ -1,90 +1,100 @@ ## Azure SubscriptionClient SDK for JavaScript -This package contains an isomorphic SDK for SubscriptionClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for SubscriptionClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-subscriptions-profile-2020-09-01-hybrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-subscriptions-profile-2020-09-01-hybrid +npm install --save @azure/arm-subscriptions-profile-2020-09-01-hybrid @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { SubscriptionClient, SubscriptionModels, SubscriptionMappers } from "@azure/arm-subscriptions-profile-2020-09-01-hybrid"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { SubscriptionClient } = require("@azure/arm-subscriptions-profile-2020-09-01-hybrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SubscriptionClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SubscriptionClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-subscriptions-profile-2020-09-01-hybrid sample - - + diff --git a/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/package.json b/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/package.json index 7b5d90e547fa..4b20151cb221 100644 --- a/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/package.json +++ b/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-subscriptions-profile-2020-09-01-hybrid", "author": "Microsoft Corporation", "description": "SubscriptionClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/subscriptionClient.js", "types": "./esm/subscriptionClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/src/subscriptionClient.ts b/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/src/subscriptionClient.ts index 431b90d98a38..8141c14175c2 100644 --- a/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/src/subscriptionClient.ts +++ b/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/src/subscriptionClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -24,10 +25,15 @@ class SubscriptionClient extends SubscriptionClientContext { /** * Initializes a new instance of the SubscriptionClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.SubscriptionClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.SubscriptionClientOptions) { super(credentials, options); this.operations = new operations.Operations(this); this.subscriptions = new operations.Subscriptions(this); diff --git a/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/src/subscriptionClientContext.ts b/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/src/subscriptionClientContext.ts index bcef1cc8ac0b..52dafc913ef9 100644 --- a/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/src/subscriptionClientContext.ts +++ b/sdk/subscription/arm-subscriptions-profile-2020-09-01-hybrid/src/subscriptionClientContext.ts @@ -10,21 +10,27 @@ 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"; const packageName = "@azure/arm-subscriptions-profile-2020-09-01-hybrid"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class SubscriptionClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; /** * Initializes a new instance of the SubscriptionClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.SubscriptionClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.SubscriptionClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/README.md b/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/README.md index 5996256d2f2a..584920a5b6c1 100644 --- a/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/README.md +++ b/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/README.md @@ -1,89 +1,100 @@ ## Azure SubscriptionClient SDK for JavaScript -This package contains an isomorphic SDK for SubscriptionClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for SubscriptionClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-subscriptions-profile-hybrid-2019-03-01` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-subscriptions-profile-hybrid-2019-03-01 +npm install --save @azure/arm-subscriptions-profile-hybrid-2019-03-01 @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -```bash -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { SubscriptionClient, SubscriptionModels, SubscriptionMappers } from "@azure/arm-subscriptions-profile-hybrid-2019-03-01"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { SubscriptionClient } = require("@azure/arm-subscriptions-profile-hybrid-2019-03-01"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SubscriptionClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SubscriptionClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-subscriptions-profile-hybrid-2019-03-01 sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fsubscription%2Farm-subscriptions-profile-hybrid-2019-03-01%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/README.png) diff --git a/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/package.json b/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/package.json index 41779db9b83e..3328bf47c719 100644 --- a/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/package.json +++ b/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-subscriptions-profile-hybrid-2019-03-01", "author": "Microsoft Corporation", "description": "SubscriptionClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -21,7 +22,7 @@ "module": "./esm/subscriptionClient.js", "types": "./esm/subscriptionClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/src/subscriptionClient.ts b/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/src/subscriptionClient.ts index 188113792eb6..26798d65c839 100644 --- a/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/src/subscriptionClient.ts +++ b/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/src/subscriptionClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -23,10 +24,15 @@ class SubscriptionClient extends SubscriptionClientContext { /** * Initializes a new instance of the SubscriptionClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.SubscriptionClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.SubscriptionClientOptions) { super(credentials, options); this.operations = new operations.Operations(this); this.subscriptions = new operations.Subscriptions(this); diff --git a/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/src/subscriptionClientContext.ts b/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/src/subscriptionClientContext.ts index 112d5311b639..36f21676a48c 100644 --- a/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/src/subscriptionClientContext.ts +++ b/sdk/subscription/arm-subscriptions-profile-hybrid-2019-03-01/src/subscriptionClientContext.ts @@ -10,21 +10,27 @@ 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"; const packageName = "@azure/arm-subscriptions-profile-hybrid-2019-03-01"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class SubscriptionClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; /** * Initializes a new instance of the SubscriptionClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.SubscriptionClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.SubscriptionClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/support/arm-support/README.md b/sdk/support/arm-support/README.md index 967c7b23d6d9..38122e7912e5 100644 --- a/sdk/support/arm-support/README.md +++ b/sdk/support/arm-support/README.md @@ -1,90 +1,100 @@ ## Azure MicrosoftSupport SDK for JavaScript -This package contains an isomorphic SDK for MicrosoftSupport. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MicrosoftSupport. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-support` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-support +npm install --save @azure/arm-support @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MicrosoftSupport, MicrosoftSupportModels, MicrosoftSupportMappers } from "@azure/arm-support"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MicrosoftSupport } = require("@azure/arm-support"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MicrosoftSupport(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MicrosoftSupport(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-support sample - - + diff --git a/sdk/support/arm-support/package.json b/sdk/support/arm-support/package.json index 275ea5195a21..de53022cc98d 100644 --- a/sdk/support/arm-support/package.json +++ b/sdk/support/arm-support/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-support", "author": "Microsoft Corporation", "description": "MicrosoftSupport Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/microsoftSupport.js", "types": "./esm/microsoftSupport.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/support/arm-support/src/microsoftSupport.ts b/sdk/support/arm-support/src/microsoftSupport.ts index 4b52aeb0dd1e..8395932926de 100644 --- a/sdk/support/arm-support/src/microsoftSupport.ts +++ b/sdk/support/arm-support/src/microsoftSupport.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -25,11 +26,16 @@ class MicrosoftSupport extends MicrosoftSupportContext { /** * Initializes a new instance of the MicrosoftSupport class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription Id. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MicrosoftSupportOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MicrosoftSupportOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.services = new operations.Services(this); diff --git a/sdk/support/arm-support/src/microsoftSupportContext.ts b/sdk/support/arm-support/src/microsoftSupportContext.ts index 2ba89d1d59f5..c1d8a884823a 100644 --- a/sdk/support/arm-support/src/microsoftSupportContext.ts +++ b/sdk/support/arm-support/src/microsoftSupportContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-support"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class MicrosoftSupportContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the MicrosoftSupport class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription Id. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MicrosoftSupportOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MicrosoftSupportOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/synapse/arm-synapse/README.md b/sdk/synapse/arm-synapse/README.md index 1bda5ed3936c..f7c40f51a535 100644 --- a/sdk/synapse/arm-synapse/README.md +++ b/sdk/synapse/arm-synapse/README.md @@ -1,95 +1,105 @@ ## Azure SynapseManagementClient SDK for JavaScript -This package contains an isomorphic SDK for SynapseManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for SynapseManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-synapse` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-synapse +npm install --save @azure/arm-synapse @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. + ### How to use -#### nodejs - client creation and get bigDataPools as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and get bigDataPools as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { SynapseManagementClient } = require("@azure/arm-synapse"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SynapseManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const workspaceName = "testworkspaceName"; - const bigDataPoolName = "testbigDataPoolName"; - client.bigDataPools.get(resourceGroupName, workspaceName, bigDataPoolName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SynapseManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const workspaceName = "testworkspaceName"; +const bigDataPoolName = "testbigDataPoolName"; +client.bigDataPools.get(resourceGroupName, workspaceName, bigDataPoolName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get bigDataPools as an example written in JavaScript. +#### browser - Authentication, client creation, and get bigDataPools as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-synapse sample - - + diff --git a/sdk/synapse/arm-synapse/package.json b/sdk/synapse/arm-synapse/package.json index c01cf1d6f7d6..22336c8f5773 100644 --- a/sdk/synapse/arm-synapse/package.json +++ b/sdk/synapse/arm-synapse/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-synapse", "author": "Microsoft Corporation", "description": "SynapseManagementClient Library with typescript type definitions for node.js and browser.", - "version": "5.1.0", + "version": "5.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/synapseManagementClient.js", "types": "./esm/synapseManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts index b2adedb6fd50..1c289b9a605d 100644 --- a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts +++ b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -80,11 +81,16 @@ class SynapseManagementClient extends SynapseManagementClientContext { /** * Initializes a new instance of the SynapseManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SynapseManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SynapseManagementClientOptions) { super(credentials, subscriptionId, options); this.bigDataPools = new operations.BigDataPools(this); this.operations = new operations.Operations(this); diff --git a/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts b/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts index 5e44f5084cde..9274fc474b11 100644 --- a/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts +++ b/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts @@ -9,23 +9,29 @@ 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"; const packageName = "@azure/arm-synapse"; -const packageVersion = "5.1.0"; +const packageVersion = "5.2.0"; export class SynapseManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the SynapseManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SynapseManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SynapseManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/README.md b/sdk/timeseriesinsights/arm-timeseriesinsights/README.md index 06b870353566..6076933bd31b 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/README.md +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/README.md @@ -1,90 +1,100 @@ ## Azure TimeSeriesInsightsClient SDK for JavaScript -This package contains an isomorphic SDK for TimeSeriesInsightsClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for TimeSeriesInsightsClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-timeseriesinsights` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-timeseriesinsights +npm install --save @azure/arm-timeseriesinsights @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { TimeSeriesInsightsClient, TimeSeriesInsightsModels, TimeSeriesInsightsMappers } from "@azure/arm-timeseriesinsights"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { TimeSeriesInsightsClient } = require("@azure/arm-timeseriesinsights"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new TimeSeriesInsightsClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new TimeSeriesInsightsClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-timeseriesinsights sample - - + diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/package.json b/sdk/timeseriesinsights/arm-timeseriesinsights/package.json index d16181f08035..2d7985567227 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/package.json +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-timeseriesinsights", "author": "Microsoft Corporation", "description": "TimeSeriesInsightsClient Library with typescript type definitions for node.js and browser.", - "version": "1.2.1", + "version": "1.3.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/timeSeriesInsightsClient.js", "types": "./esm/timeSeriesInsightsClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClient.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClient.ts index e42685b68999..92bd53330bd6 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClient.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -25,11 +26,16 @@ class TimeSeriesInsightsClient extends TimeSeriesInsightsClientContext { /** * Initializes a new instance of the TimeSeriesInsightsClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure Subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.TimeSeriesInsightsClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.TimeSeriesInsightsClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.environments = new operations.Environments(this); diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClientContext.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClientContext.ts index a472e6cfb5f7..7a3cc5a196fb 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClientContext.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-timeseriesinsights"; -const packageVersion = "1.2.1"; +const packageVersion = "1.3.0"; export class TimeSeriesInsightsClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the TimeSeriesInsightsClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure Subscription ID. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.TimeSeriesInsightsClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.TimeSeriesInsightsClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/visualstudio/arm-visualstudio/README.md b/sdk/visualstudio/arm-visualstudio/README.md index 668b7d702b16..5b43aff9aa0b 100644 --- a/sdk/visualstudio/arm-visualstudio/README.md +++ b/sdk/visualstudio/arm-visualstudio/README.md @@ -1,89 +1,100 @@ ## Azure VisualStudioResourceProviderClient SDK for JavaScript -This package contains an isomorphic SDK for VisualStudioResourceProviderClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for VisualStudioResourceProviderClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites -``` -npm install @azure/arm-visualstudio +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-visualstudio` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: +```bash +npm install --save @azure/arm-visualstudio @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -``` -npm install @azure/ms-rest-nodeauth -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { VisualStudioResourceProviderClient, VisualStudioResourceProviderModels, VisualStudioResourceProviderMappers } from "@azure/arm-visualstudio"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { VisualStudioResourceProviderClient } = require("@azure/arm-visualstudio"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new VisualStudioResourceProviderClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new VisualStudioResourceProviderClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -``` -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-visualstudio sample - - + @@ -95,5 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fvisualstudio%2Farm-visualstudio%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/visualstudio/arm-visualstudio/README.png) diff --git a/sdk/visualstudio/arm-visualstudio/package.json b/sdk/visualstudio/arm-visualstudio/package.json index e5a4f09f2f82..1f69fe3a0500 100644 --- a/sdk/visualstudio/arm-visualstudio/package.json +++ b/sdk/visualstudio/arm-visualstudio/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-visualstudio", "author": "Microsoft Corporation", "description": "VisualStudioResourceProviderClient Library with typescript type definitions for node.js and browser.", - "version": "2.2.0", + "version": "2.3.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.4.0", + "@azure/ms-rest-js": "^1.11.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.9.3" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/visualStudioResourceProviderClient.js", "types": "./esm/visualStudioResourceProviderClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", + "typescript": "^3.6.0", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" diff --git a/sdk/visualstudio/arm-visualstudio/src/visualStudioResourceProviderClient.ts b/sdk/visualstudio/arm-visualstudio/src/visualStudioResourceProviderClient.ts index f96554b8c9e7..0e47cd85f7c0 100644 --- a/sdk/visualstudio/arm-visualstudio/src/visualStudioResourceProviderClient.ts +++ b/sdk/visualstudio/arm-visualstudio/src/visualStudioResourceProviderClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -24,11 +25,16 @@ class VisualStudioResourceProviderClient extends VisualStudioResourceProviderCli /** * Initializes a new instance of the VisualStudioResourceProviderClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.VisualStudioResourceProviderClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.VisualStudioResourceProviderClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.accounts = new operations.Accounts(this); diff --git a/sdk/visualstudio/arm-visualstudio/src/visualStudioResourceProviderClientContext.ts b/sdk/visualstudio/arm-visualstudio/src/visualStudioResourceProviderClientContext.ts index 92491e79696f..736d63d2a3b5 100644 --- a/sdk/visualstudio/arm-visualstudio/src/visualStudioResourceProviderClientContext.ts +++ b/sdk/visualstudio/arm-visualstudio/src/visualStudioResourceProviderClientContext.ts @@ -10,23 +10,29 @@ 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"; const packageName = "@azure/arm-visualstudio"; -const packageVersion = "0.1.0"; +const packageVersion = "2.3.0"; export class VisualStudioResourceProviderClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the VisualStudioResourceProviderClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 Azure subscription identifier. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.VisualStudioResourceProviderClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.VisualStudioResourceProviderClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } diff --git a/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/README.md b/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/README.md index a5d845825218..7fe7e0ea23d6 100644 --- a/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/README.md +++ b/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/README.md @@ -1,90 +1,100 @@ ## Azure VMwareCloudSimpleClient SDK for JavaScript -This package contains an isomorphic SDK for VMwareCloudSimpleClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for VMwareCloudSimpleClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-vmwarecloudsimple` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-vmwarecloudsimple +npm install --save @azure/arm-vmwarecloudsimple @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. + ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth +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. -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { VMwareCloudSimpleClient, VMwareCloudSimpleModels, VMwareCloudSimpleMappers } from "@azure/arm-vmwarecloudsimple"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { VMwareCloudSimpleClient } = require("@azure/arm-vmwarecloudsimple"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new VMwareCloudSimpleClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new VMwareCloudSimpleClient(creds, subscriptionId); + +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-vmwarecloudsimple sample - - + @@ -96,4 +106,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fvmwarecloudsimple%2Farm-vmwarecloudsimple%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/README.png) diff --git a/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/package.json b/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/package.json index 2c614357cfc1..5ddf8b14ee49 100644 --- a/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/package.json +++ b/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-vmwarecloudsimple", "author": "Microsoft Corporation", "description": "VMwareCloudSimpleClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/vMwareCloudSimpleClient.js", "types": "./esm/vMwareCloudSimpleClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/src/vMwareCloudSimpleClient.ts b/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/src/vMwareCloudSimpleClient.ts index dfebce6d20b3..b30d98c95adf 100644 --- a/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/src/vMwareCloudSimpleClient.ts +++ b/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/src/vMwareCloudSimpleClient.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -30,12 +31,17 @@ class VMwareCloudSimpleClient extends VMwareCloudSimpleClientContext { /** * Initializes a new instance of the VMwareCloudSimpleClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 referer referer url * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, referer: string, options?: Models.VMwareCloudSimpleClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, referer: string, options?: Models.VMwareCloudSimpleClientOptions) { super(credentials, subscriptionId, referer, options); this.operations = new operations.Operations(this); this.dedicatedCloudNodes = new operations.DedicatedCloudNodes(this); diff --git a/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/src/vMwareCloudSimpleClientContext.ts b/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/src/vMwareCloudSimpleClientContext.ts index 4110fc980a0a..735cf0f942e7 100644 --- a/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/src/vMwareCloudSimpleClientContext.ts +++ b/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/src/vMwareCloudSimpleClientContext.ts @@ -10,25 +10,31 @@ 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"; const packageName = "@azure/arm-vmwarecloudsimple"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class VMwareCloudSimpleClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; referer: string; /** * Initializes a new instance of the VMwareCloudSimpleClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 referer referer url * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, referer: string, options?: Models.VMwareCloudSimpleClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, referer: string, options?: Models.VMwareCloudSimpleClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); }