diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 3e09df81febb..e5bd9f1d1aa6 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -55,6 +55,7 @@ specifiers:
'@rush-temp/arm-rediscache': file:./projects/arm-rediscache.tgz
'@rush-temp/arm-relay': file:./projects/arm-relay.tgz
'@rush-temp/arm-resourcehealth': file:./projects/arm-resourcehealth.tgz
+ '@rush-temp/arm-resourcemover': file:./projects/arm-resourcemover.tgz
'@rush-temp/arm-resources': file:./projects/arm-resources.tgz
'@rush-temp/arm-resources-subscriptions': file:./projects/arm-resources-subscriptions.tgz
'@rush-temp/arm-search': file:./projects/arm-search.tgz
@@ -225,6 +226,7 @@ dependencies:
'@rush-temp/arm-rediscache': file:projects/arm-rediscache.tgz
'@rush-temp/arm-relay': file:projects/arm-relay.tgz
'@rush-temp/arm-resourcehealth': file:projects/arm-resourcehealth.tgz
+ '@rush-temp/arm-resourcemover': file:projects/arm-resourcemover.tgz
'@rush-temp/arm-resources': file:projects/arm-resources.tgz
'@rush-temp/arm-resources-subscriptions': file:projects/arm-resources-subscriptions.tgz
'@rush-temp/arm-search': file:projects/arm-search.tgz
@@ -1648,6 +1650,7 @@ packages:
/@opentelemetry/node/0.22.0_@opentelemetry+api@1.0.3:
resolution: {integrity: sha512-+HhGbDruQ7cwejVOIYyxRa28uosnG8W95NiQZ6qE8PXXPsDSyGeftAPbtYpGit0H2f5hrVcMlwmWHeAo9xkSLA==}
engines: {node: '>=8.0.0'}
+ deprecated: Package renamed to @opentelemetry/sdk-trace-node
peerDependencies:
'@opentelemetry/api': ^1.0.0
dependencies:
@@ -9651,6 +9654,27 @@ packages:
uglify-js: 3.14.3
dev: false
+ file:projects/arm-resourcemover.tgz:
+ resolution: {integrity: sha512-W62MjrP8FEcrDvLZYqW2d3WEO7sGUSHB6MMZTRUGMBjuFZrU5VbhFLHXoCaia4lZFURUXiPXOIHJpCR6xhcigA==, tarball: file:projects/arm-resourcemover.tgz}
+ name: '@rush-temp/arm-resourcemover'
+ version: 0.0.0
+ dependencies:
+ '@microsoft/api-extractor': 7.18.19
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.3
+ dev: false
+
file:projects/arm-resources-subscriptions.tgz:
resolution: {integrity: sha512-85EwJst/1klI+zYcCVmpb7xnk12tSFqcHCRSMr8KA+j2WZuI4dW1vVaS0Qm9yeecG2H2yheqZLDXXwvm6B7NYg==, tarball: file:projects/arm-resources-subscriptions.tgz}
name: '@rush-temp/arm-resources-subscriptions'
diff --git a/rush.json b/rush.json
index df474ee7c0e6..5bd9adbbfdca 100644
--- a/rush.json
+++ b/rush.json
@@ -1160,6 +1160,11 @@
"packageName": "@azure/arm-relay",
"projectFolder": "sdk/relay/arm-relay",
"versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-resourcemover",
+ "projectFolder": "sdk/resourcemover/arm-resourcemover",
+ "versionPolicyName": "management"
}
]
-}
+}
\ No newline at end of file
diff --git a/sdk/resourcemover/arm-resourcemover/CHANGELOG.md b/sdk/resourcemover/arm-resourcemover/CHANGELOG.md
new file mode 100644
index 000000000000..0bbdce8e9a4c
--- /dev/null
+++ b/sdk/resourcemover/arm-resourcemover/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 2.0.0 (2021-12-13)
+
+The package of @azure/arm-resourcemover is using our next generation design principles since version 2.0.0, which contains breaking changes.
+
+To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
+
+To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
+
+To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
diff --git a/sdk/resourcemover/arm-resourcemover/LICENSE b/sdk/resourcemover/arm-resourcemover/LICENSE
new file mode 100644
index 000000000000..ccb63b166732
--- /dev/null
+++ b/sdk/resourcemover/arm-resourcemover/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+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
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/sdk/resourcemover/arm-resourcemover/README.md b/sdk/resourcemover/arm-resourcemover/README.md
index aaf1d8881a41..cf6197d77892 100644
--- a/sdk/resourcemover/arm-resourcemover/README.md
+++ b/sdk/resourcemover/arm-resourcemover/README.md
@@ -1,102 +1,98 @@
-## Azure ResourceMoverServiceAPI SDK for JavaScript
+# Azure Resource Mover client library 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 Azure Resource Mover client.
+
+A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region.
+
+[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcemover/arm-resourcemover) |
+[Package (NPM)](https://www.npmjs.com/package/@azure/arm-resourcemover) |
+[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcemover) |
+[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
+
+## Getting started
### 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
+
+- An [Azure subscription][azure_sub].
+
+### Install the `@azure/arm-resourcemover` package
-### How to Install
+Install the Azure Resource Mover client library for JavaScript with `npm`:
```bash
npm install @azure/arm-resourcemover
```
-### How to use
+### Create and authenticate a `ResourceMoverServiceAPI`
-#### nodejs - client creation and get moveCollections as an example written in TypeScript.
+To create a client object to access the Azure Resource Mover API, you will need the `endpoint` of your Azure Resource Mover resource and a `credential`. The Azure Resource Mover client can use Azure Active Directory credentials to authenticate.
+You can find the endpoint for your Azure Resource Mover resource in the [Azure Portal][azure_portal].
-##### Install @azure/ms-rest-nodeauth
+You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
+
+To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
-- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
-npm install @azure/ms-rest-nodeauth@"^3.0.0"
+npm install @azure/identity
```
-##### Sample code
+You will also need to **register a new AAD application and grant access to Azure Resource Mover** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
+Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
+
+For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
-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 { 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);
- });
-}).catch((err) => {
- console.error(err);
-});
+const { DefaultAzureCredential } = require("@azure/identity");
+const subscriptionId = "00000000-0000-0000-0000-000000000000";
+const client = new ResourceMoverServiceAPI(new DefaultAzureCredential(), subscriptionId);
```
-#### browser - Authentication, client creation and get moveCollections as an example written in JavaScript.
-##### Install @azure/ms-rest-browserauth
+### JavaScript Bundle
+To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
-```bash
-npm install @azure/ms-rest-browserauth
-```
+## Key concepts
+
+### ResourceMoverServiceAPI
-##### 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
-
-
-
-
-
-
-
-
+`ResourceMoverServiceAPI` is the primary interface for developers using the Azure Resource Mover client library. Explore the methods on this client object to understand the different features of the Azure Resource Mover service that you can access.
+
+## Troubleshooting
+
+### Logging
+
+Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
+
+```javascript
+const { setLogLevel } = require("@azure/logger");
+setLogLevel("info");
```
+For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
+
+## Next steps
+
+Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
+
+## Contributing
+
+If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
+
## Related projects
-- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
+
+
-
+[azure_cli]: https://docs.microsoft.com/cli/azure
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_portal]: https://portal.azure.com
+[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
diff --git a/sdk/resourcemover/arm-resourcemover/_meta.json b/sdk/resourcemover/arm-resourcemover/_meta.json
new file mode 100644
index 000000000000..b5c82c5b520d
--- /dev/null
+++ b/sdk/resourcemover/arm-resourcemover/_meta.json
@@ -0,0 +1,7 @@
+{
+ "commit": "47e11d89b5c6220f62793bcee333ef435a1ceebf",
+ "readme": "specification/resourcemover/resource-manager/readme.md",
+ "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resourcemover/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1",
+ "repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
+ "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1"
+}
\ No newline at end of file
diff --git a/sdk/resourcemover/arm-resourcemover/api-extractor.json b/sdk/resourcemover/arm-resourcemover/api-extractor.json
new file mode 100644
index 000000000000..7022314fabc6
--- /dev/null
+++ b/sdk/resourcemover/arm-resourcemover/api-extractor.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
+ "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "docModel": { "enabled": true },
+ "apiReport": { "enabled": true, "reportFolder": "./review" },
+ "dtsRollup": {
+ "enabled": true,
+ "untrimmedFilePath": "",
+ "publicTrimmedFilePath": "./types/arm-resourcemover.d.ts"
+ },
+ "messages": {
+ "tsdocMessageReporting": { "default": { "logLevel": "none" } },
+ "extractorMessageReporting": {
+ "ae-missing-release-tag": { "logLevel": "none" },
+ "ae-unresolved-link": { "logLevel": "none" }
+ }
+ }
+}
diff --git a/sdk/resourcemover/arm-resourcemover/package.json b/sdk/resourcemover/arm-resourcemover/package.json
index 08acdd8be900..067226ca5b57 100644
--- a/sdk/resourcemover/arm-resourcemover/package.json
+++ b/sdk/resourcemover/arm-resourcemover/package.json
@@ -1,57 +1,91 @@
{
"name": "@azure/arm-resourcemover",
+ "sdk-type": "mgmt",
"author": "Microsoft Corporation",
- "description": "ResourceMoverServiceAPI Library with typescript type definitions for node.js and browser.",
- "version": "1.0.0",
+ "description": "A generated SDK for ResourceMoverServiceAPI.",
+ "version": "2.0.0",
+ "engines": { "node": ">=12.0.0" },
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.0.1",
- "@azure/ms-rest-js": "^2.0.4",
- "tslib": "^1.10.0"
+ "@azure/core-lro": "^2.2.0",
+ "@azure/abort-controller": "^1.0.0",
+ "@azure/core-paging": "^1.2.0",
+ "@azure/core-client": "^1.0.0",
+ "@azure/core-auth": "^1.3.0",
+ "@azure/core-rest-pipeline": "^1.1.0",
+ "tslib": "^2.2.0"
},
- "keywords": [
- "node",
- "azure",
- "typescript",
- "browser",
- "isomorphic"
- ],
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
- "main": "./dist/arm-resourcemover.js",
- "module": "./esm/resourceMoverServiceAPI.js",
- "types": "./esm/resourceMoverServiceAPI.d.ts",
+ "main": "./dist/index.js",
+ "module": "./dist-esm/src/index.js",
+ "types": "./types/arm-resourcemover.d.ts",
"devDependencies": {
- "typescript": "^3.5.3",
- "rollup": "^1.18.0",
- "rollup-plugin-node-resolve": "^5.2.0",
+ "@microsoft/api-extractor": "^7.18.11",
+ "@rollup/plugin-commonjs": "11.0.2",
+ "@rollup/plugin-json": "^4.0.0",
+ "@rollup/plugin-multi-entry": "^3.0.0",
+ "@rollup/plugin-node-resolve": "^8.0.0",
+ "mkdirp": "^1.0.4",
+ "rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
- "uglify-js": "^3.6.0"
+ "typescript": "~4.2.0",
+ "uglify-js": "^3.4.9",
+ "rimraf": "^3.0.0",
+ "@azure/identity": "^2.0.1",
+ "@azure-tools/test-recorder": "^1.0.0",
+ "mocha": "^7.1.1",
+ "cross-env": "^7.0.2"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcemover/arm-resourcemover",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
- "bugs": {
- "url": "https://github.com/Azure/azure-sdk-for-js/issues"
- },
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
- "esm/**/*.js",
- "esm/**/*.js.map",
- "esm/**/*.d.ts",
- "esm/**/*.d.ts.map",
+ "dist-esm/**/*.js",
+ "dist-esm/**/*.js.map",
+ "dist-esm/**/*.d.ts",
+ "dist-esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
+ "LICENSE",
"rollup.config.js",
- "tsconfig.json"
+ "tsconfig.json",
+ "review/*",
+ "CHANGELOG.md",
+ "types/*"
],
"scripts": {
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-resourcemover.js.map'\" -o ./dist/arm-resourcemover.min.js ./dist/arm-resourcemover.js",
- "prepack": "npm install && npm run build"
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
+ "prepack": "npm run build",
+ "pack": "npm pack 2>&1",
+ "extract-api": "api-extractor run --local",
+ "lint": "echo skipped",
+ "audit": "echo skipped",
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
+ "build:node": "echo skipped",
+ "build:browser": "echo skipped",
+ "build:test": "echo skipped",
+ "build:samples": "echo skipped.",
+ "check-format": "echo skipped",
+ "execute:samples": "echo skipped",
+ "format": "echo skipped",
+ "test": "npm run integration-test",
+ "test:node": "echo skipped",
+ "test:browser": "echo skipped",
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:browser": "echo skipped",
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
+ "integration-test:browser": "echo skipped",
+ "docs": "echo skipped"
},
"sideEffects": false,
"autoPublish": true
diff --git a/sdk/resourcemover/arm-resourcemover/review/arm-resourcemover.api.md b/sdk/resourcemover/arm-resourcemover/review/arm-resourcemover.api.md
new file mode 100644
index 000000000000..afe958570791
--- /dev/null
+++ b/sdk/resourcemover/arm-resourcemover/review/arm-resourcemover.api.md
@@ -0,0 +1,946 @@
+## API Report File for "@azure/arm-resourcemover"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+
+import * as coreAuth from '@azure/core-auth';
+import * as coreClient from '@azure/core-client';
+import { PagedAsyncIterableIterator } from '@azure/core-paging';
+import { PollerLike } from '@azure/core-lro';
+import { PollOperationState } from '@azure/core-lro';
+
+// @public
+export interface AffectedMoveResource {
+ readonly id?: string;
+ readonly moveResources?: AffectedMoveResource[];
+ readonly sourceId?: string;
+}
+
+// @public
+export interface AutomaticResolutionProperties {
+ moveResourceId?: string;
+}
+
+// @public
+export type AvailabilitySetResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Compute/availabilitySets";
+ tags?: {
+ [propertyName: string]: string;
+ };
+ faultDomain?: number;
+ updateDomain?: number;
+};
+
+// @public
+export interface AzureResourceReference {
+ sourceArmResourceId: string;
+}
+
+// @public
+export interface BulkRemoveRequest {
+ moveResourceInputType?: MoveResourceInputType;
+ moveResources?: string[];
+ validateOnly?: boolean;
+}
+
+// @public
+export interface CloudError {
+ error?: CloudErrorBody;
+}
+
+// @public
+export interface CloudErrorBody {
+ code?: string;
+ details?: CloudErrorBody[];
+ message?: string;
+ target?: string;
+}
+
+// @public
+export interface CommitRequest {
+ moveResourceInputType?: MoveResourceInputType;
+ moveResources: string[];
+ validateOnly?: boolean;
+}
+
+// @public
+export type CreatedByType = string;
+
+// @public
+export type DependencyLevel = string;
+
+// @public
+export type DependencyType = string;
+
+// @public
+export interface DiscardRequest {
+ moveResourceInputType?: MoveResourceInputType;
+ moveResources: string[];
+ validateOnly?: boolean;
+}
+
+// @public
+export type DiskEncryptionSetResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Compute/diskEncryptionSets";
+};
+
+// @public
+export interface Display {
+ description?: string;
+ operation?: string;
+ provider?: string;
+ resource?: string;
+}
+
+// @public
+export interface Identity {
+ principalId?: string;
+ tenantId?: string;
+ type?: ResourceIdentityType;
+}
+
+// @public
+export type JobName = string;
+
+// @public
+export interface JobStatus {
+ readonly jobName?: JobName;
+ readonly jobProgress?: string;
+}
+
+// @public
+export type KeyVaultResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.KeyVault/vaults";
+};
+
+// @public
+export enum KnownCreatedByType {
+ // (undocumented)
+ Application = "Application",
+ // (undocumented)
+ Key = "Key",
+ // (undocumented)
+ ManagedIdentity = "ManagedIdentity",
+ // (undocumented)
+ User = "User"
+}
+
+// @public
+export enum KnownDependencyLevel {
+ // (undocumented)
+ Descendant = "Descendant",
+ // (undocumented)
+ Direct = "Direct"
+}
+
+// @public
+export enum KnownDependencyType {
+ // (undocumented)
+ RequiredForMove = "RequiredForMove",
+ // (undocumented)
+ RequiredForPrepare = "RequiredForPrepare"
+}
+
+// @public
+export enum KnownJobName {
+ // (undocumented)
+ InitialSync = "InitialSync"
+}
+
+// @public
+export enum KnownMoveResourceInputType {
+ // (undocumented)
+ MoveResourceId = "MoveResourceId",
+ // (undocumented)
+ MoveResourceSourceId = "MoveResourceSourceId"
+}
+
+// @public
+export enum KnownMoveState {
+ // (undocumented)
+ AssignmentPending = "AssignmentPending",
+ // (undocumented)
+ CommitFailed = "CommitFailed",
+ // (undocumented)
+ CommitInProgress = "CommitInProgress",
+ // (undocumented)
+ CommitPending = "CommitPending",
+ // (undocumented)
+ Committed = "Committed",
+ // (undocumented)
+ DeleteSourcePending = "DeleteSourcePending",
+ // (undocumented)
+ DiscardFailed = "DiscardFailed",
+ // (undocumented)
+ DiscardInProgress = "DiscardInProgress",
+ // (undocumented)
+ MoveFailed = "MoveFailed",
+ // (undocumented)
+ MoveInProgress = "MoveInProgress",
+ // (undocumented)
+ MovePending = "MovePending",
+ // (undocumented)
+ PrepareFailed = "PrepareFailed",
+ // (undocumented)
+ PrepareInProgress = "PrepareInProgress",
+ // (undocumented)
+ PreparePending = "PreparePending",
+ // (undocumented)
+ ResourceMoveCompleted = "ResourceMoveCompleted"
+}
+
+// @public
+export enum KnownProvisioningState {
+ // (undocumented)
+ Creating = "Creating",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ Succeeded = "Succeeded",
+ // (undocumented)
+ Updating = "Updating"
+}
+
+// @public
+export enum KnownResolutionType {
+ // (undocumented)
+ Automatic = "Automatic",
+ // (undocumented)
+ Manual = "Manual"
+}
+
+// @public
+export enum KnownResourceIdentityType {
+ // (undocumented)
+ None = "None",
+ // (undocumented)
+ SystemAssigned = "SystemAssigned",
+ // (undocumented)
+ UserAssigned = "UserAssigned"
+}
+
+// @public
+export enum KnownTargetAvailabilityZone {
+ // (undocumented)
+ NA = "NA",
+ // (undocumented)
+ One = "1",
+ // (undocumented)
+ Three = "3",
+ // (undocumented)
+ Two = "2"
+}
+
+// @public
+export enum KnownZoneRedundant {
+ // (undocumented)
+ Disable = "Disable",
+ // (undocumented)
+ Enable = "Enable"
+}
+
+// @public
+export interface LBBackendAddressPoolResourceSettings {
+ name?: string;
+}
+
+// @public
+export interface LBFrontendIPConfigurationResourceSettings {
+ name?: string;
+ privateIpAddress?: string;
+ privateIpAllocationMethod?: string;
+ subnet?: SubnetReference;
+ zones?: string;
+}
+
+// @public
+export type LoadBalancerBackendAddressPoolReference = ProxyResourceReference & {};
+
+// @public
+export type LoadBalancerNatRuleReference = ProxyResourceReference & {};
+
+// @public
+export type LoadBalancerResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Network/loadBalancers";
+ tags?: {
+ [propertyName: string]: string;
+ };
+ sku?: string;
+ frontendIPConfigurations?: LBFrontendIPConfigurationResourceSettings[];
+ backendAddressPools?: LBBackendAddressPoolResourceSettings[];
+ zones?: string;
+};
+
+// @public
+export interface ManualResolutionProperties {
+ targetId?: string;
+}
+
+// @public
+export interface MoveCollection {
+ readonly etag?: string;
+ readonly id?: string;
+ identity?: Identity;
+ location?: string;
+ readonly name?: string;
+ properties?: MoveCollectionProperties;
+ readonly systemData?: SystemData;
+ tags?: {
+ [propertyName: string]: string;
+ };
+ readonly type?: string;
+}
+
+// @public
+export interface MoveCollectionProperties {
+ readonly errors?: MoveCollectionPropertiesErrors;
+ readonly provisioningState?: ProvisioningState;
+ sourceRegion: string;
+ targetRegion: string;
+}
+
+// @public
+export type MoveCollectionPropertiesErrors = MoveResourceError & {};
+
+// @public
+export interface MoveCollectionResultList {
+ nextLink?: string;
+ value?: MoveCollection[];
+}
+
+// @public
+export interface MoveCollections {
+ beginBulkRemove(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsBulkRemoveOptionalParams): Promise, MoveCollectionsBulkRemoveResponse>>;
+ beginBulkRemoveAndWait(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsBulkRemoveOptionalParams): Promise;
+ beginCommit(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsCommitOptionalParams): Promise, MoveCollectionsCommitResponse>>;
+ beginCommitAndWait(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsCommitOptionalParams): Promise;
+ beginDelete(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsDeleteOptionalParams): Promise, MoveCollectionsDeleteResponse>>;
+ beginDeleteAndWait(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsDeleteOptionalParams): Promise;
+ beginDiscard(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsDiscardOptionalParams): Promise, MoveCollectionsDiscardResponse>>;
+ beginDiscardAndWait(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsDiscardOptionalParams): Promise;
+ beginInitiateMove(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsInitiateMoveOptionalParams): Promise, MoveCollectionsInitiateMoveResponse>>;
+ beginInitiateMoveAndWait(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsInitiateMoveOptionalParams): Promise;
+ beginPrepare(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsPrepareOptionalParams): Promise, MoveCollectionsPrepareResponse>>;
+ beginPrepareAndWait(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsPrepareOptionalParams): Promise;
+ beginResolveDependencies(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsResolveDependenciesOptionalParams): Promise, MoveCollectionsResolveDependenciesResponse>>;
+ beginResolveDependenciesAndWait(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsResolveDependenciesOptionalParams): Promise;
+ create(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsCreateOptionalParams): Promise;
+ get(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsGetOptionalParams): Promise;
+ listMoveCollectionsByResourceGroup(resourceGroupName: string, options?: MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listMoveCollectionsBySubscription(options?: MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams): PagedAsyncIterableIterator;
+ listRequiredFor(resourceGroupName: string, moveCollectionName: string, sourceId: string, options?: MoveCollectionsListRequiredForOptionalParams): Promise;
+ update(resourceGroupName: string, moveCollectionName: string, options?: MoveCollectionsUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface MoveCollectionsBulkRemoveOptionalParams extends coreClient.OperationOptions {
+ body?: BulkRemoveRequest;
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type MoveCollectionsBulkRemoveResponse = OperationStatus;
+
+// @public
+export interface MoveCollectionsCommitOptionalParams extends coreClient.OperationOptions {
+ body?: CommitRequest;
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type MoveCollectionsCommitResponse = OperationStatus;
+
+// @public
+export interface MoveCollectionsCreateOptionalParams extends coreClient.OperationOptions {
+ body?: MoveCollection;
+}
+
+// @public
+export type MoveCollectionsCreateResponse = MoveCollection;
+
+// @public
+export interface MoveCollectionsDeleteOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type MoveCollectionsDeleteResponse = OperationStatus;
+
+// @public
+export interface MoveCollectionsDiscardOptionalParams extends coreClient.OperationOptions {
+ body?: DiscardRequest;
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type MoveCollectionsDiscardResponse = OperationStatus;
+
+// @public
+export interface MoveCollectionsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MoveCollectionsGetResponse = MoveCollection;
+
+// @public
+export interface MoveCollectionsInitiateMoveOptionalParams extends coreClient.OperationOptions {
+ body?: ResourceMoveRequest;
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type MoveCollectionsInitiateMoveResponse = OperationStatus;
+
+// @public
+export interface MoveCollectionsListMoveCollectionsByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MoveCollectionsListMoveCollectionsByResourceGroupNextResponse = MoveCollectionResultList;
+
+// @public
+export interface MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MoveCollectionsListMoveCollectionsByResourceGroupResponse = MoveCollectionResultList;
+
+// @public
+export interface MoveCollectionsListMoveCollectionsBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MoveCollectionsListMoveCollectionsBySubscriptionNextResponse = MoveCollectionResultList;
+
+// @public
+export interface MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MoveCollectionsListMoveCollectionsBySubscriptionResponse = MoveCollectionResultList;
+
+// @public
+export interface MoveCollectionsListRequiredForOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MoveCollectionsListRequiredForResponse = RequiredForResourcesCollection;
+
+// @public
+export interface MoveCollectionsPrepareOptionalParams extends coreClient.OperationOptions {
+ body?: PrepareRequest;
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type MoveCollectionsPrepareResponse = OperationStatus;
+
+// @public
+export interface MoveCollectionsResolveDependenciesOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type MoveCollectionsResolveDependenciesResponse = OperationStatus;
+
+// @public
+export interface MoveCollectionsUpdateOptionalParams extends coreClient.OperationOptions {
+ body?: UpdateMoveCollectionRequest;
+}
+
+// @public
+export type MoveCollectionsUpdateResponse = MoveCollection;
+
+// @public
+export interface MoveErrorInfo {
+ readonly moveResources?: AffectedMoveResource[];
+}
+
+// @public
+export interface MoveResource {
+ readonly id?: string;
+ readonly name?: string;
+ properties?: MoveResourceProperties;
+ readonly systemData?: SystemData;
+ readonly type?: string;
+}
+
+// @public
+export interface MoveResourceCollection {
+ nextLink?: string;
+ summaryCollection?: SummaryCollection;
+ readonly totalCount?: number;
+ value?: MoveResource[];
+}
+
+// @public
+export interface MoveResourceDependency {
+ automaticResolution?: AutomaticResolutionProperties;
+ dependencyType?: DependencyType;
+ id?: string;
+ isOptional?: string;
+ manualResolution?: ManualResolutionProperties;
+ resolutionStatus?: string;
+ resolutionType?: ResolutionType;
+}
+
+// @public
+export interface MoveResourceDependencyOverride {
+ id?: string;
+ targetId?: string;
+}
+
+// @public
+export interface MoveResourceError {
+ properties?: MoveResourceErrorBody;
+}
+
+// @public
+export interface MoveResourceErrorBody {
+ readonly code?: string;
+ readonly details?: MoveResourceErrorBody[];
+ readonly message?: string;
+ readonly target?: string;
+}
+
+// @public
+export interface MoveResourceFilter {
+ // (undocumented)
+ properties?: MoveResourceFilterProperties;
+}
+
+// @public (undocumented)
+export interface MoveResourceFilterProperties {
+ provisioningState?: string;
+}
+
+// @public
+export type MoveResourceInputType = string;
+
+// @public
+export interface MoveResourceProperties {
+ readonly dependsOn?: MoveResourceDependency[];
+ dependsOnOverrides?: MoveResourceDependencyOverride[];
+ readonly errors?: MoveResourcePropertiesErrors;
+ existingTargetId?: string;
+ readonly isResolveRequired?: boolean;
+ readonly moveStatus?: MoveResourcePropertiesMoveStatus;
+ readonly provisioningState?: ProvisioningState;
+ resourceSettings?: ResourceSettingsUnion;
+ sourceId: string;
+ readonly sourceResourceSettings?: ResourceSettingsUnion;
+ readonly targetId?: string;
+}
+
+// @public
+export type MoveResourcePropertiesErrors = MoveResourceError & {};
+
+// @public
+export type MoveResourcePropertiesMoveStatus = MoveResourceStatus & {};
+
+// @public
+export interface MoveResources {
+ beginCreate(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: MoveResourcesCreateOptionalParams): Promise, MoveResourcesCreateResponse>>;
+ beginCreateAndWait(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: MoveResourcesCreateOptionalParams): Promise;
+ beginDelete(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: MoveResourcesDeleteOptionalParams): Promise, MoveResourcesDeleteResponse>>;
+ beginDeleteAndWait(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: MoveResourcesDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: MoveResourcesGetOptionalParams): Promise;
+ list(resourceGroupName: string, moveCollectionName: string, options?: MoveResourcesListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface MoveResourcesCreateOptionalParams extends coreClient.OperationOptions {
+ body?: MoveResource;
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type MoveResourcesCreateResponse = MoveResource;
+
+// @public
+export interface MoveResourcesDeleteOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type MoveResourcesDeleteResponse = OperationStatus;
+
+// @public
+export interface MoveResourcesGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MoveResourcesGetResponse = MoveResource;
+
+// @public
+export interface MoveResourcesListNextOptionalParams extends coreClient.OperationOptions {
+ filter?: string;
+}
+
+// @public
+export type MoveResourcesListNextResponse = MoveResourceCollection;
+
+// @public
+export interface MoveResourcesListOptionalParams extends coreClient.OperationOptions {
+ filter?: string;
+}
+
+// @public
+export type MoveResourcesListResponse = MoveResourceCollection;
+
+// @public
+export interface MoveResourceStatus {
+ errors?: MoveResourceError;
+ jobStatus?: JobStatus;
+ readonly moveState?: MoveState;
+}
+
+// @public
+export type MoveState = string;
+
+// @public
+export type NetworkInterfaceResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Network/networkInterfaces";
+ tags?: {
+ [propertyName: string]: string;
+ };
+ ipConfigurations?: NicIpConfigurationResourceSettings[];
+ enableAcceleratedNetworking?: boolean;
+};
+
+// @public
+export type NetworkSecurityGroupResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Network/networkSecurityGroups";
+ tags?: {
+ [propertyName: string]: string;
+ };
+ securityRules?: NsgSecurityRule[];
+};
+
+// @public
+export interface NicIpConfigurationResourceSettings {
+ loadBalancerBackendAddressPools?: LoadBalancerBackendAddressPoolReference[];
+ loadBalancerNatRules?: LoadBalancerNatRuleReference[];
+ name?: string;
+ primary?: boolean;
+ privateIpAddress?: string;
+ privateIpAllocationMethod?: string;
+ publicIp?: PublicIpReference;
+ subnet?: SubnetReference;
+}
+
+// @public
+export type NsgReference = AzureResourceReference & {};
+
+// @public
+export interface NsgSecurityRule {
+ access?: string;
+ description?: string;
+ destinationAddressPrefix?: string;
+ destinationPortRange?: string;
+ direction?: string;
+ name?: string;
+ priority?: number;
+ protocol?: string;
+ sourceAddressPrefix?: string;
+ sourcePortRange?: string;
+}
+
+// @public
+export interface OperationErrorAdditionalInfo {
+ readonly info?: MoveErrorInfo;
+ readonly type?: string;
+}
+
+// @public
+export interface OperationsDiscovery {
+ display?: Display;
+ isDataAction?: boolean;
+ name?: string;
+ origin?: string;
+ properties?: Record;
+}
+
+// @public
+export interface OperationsDiscoveryCollection {
+ nextLink?: string;
+ value?: OperationsDiscovery[];
+}
+
+// @public
+export interface OperationsDiscoveryGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationsDiscoveryGetResponse = OperationsDiscoveryCollection;
+
+// @public
+export interface OperationsDiscoveryOperations {
+ // (undocumented)
+ get(options?: OperationsDiscoveryGetOptionalParams): Promise;
+}
+
+// @public
+export interface OperationStatus {
+ readonly endTime?: string;
+ readonly error?: OperationStatusError;
+ readonly id?: string;
+ readonly name?: string;
+ readonly properties?: Record;
+ readonly startTime?: string;
+ readonly status?: string;
+}
+
+// @public
+export interface OperationStatusError {
+ readonly additionalInfo?: OperationErrorAdditionalInfo[];
+ readonly code?: string;
+ readonly details?: OperationStatusError[];
+ readonly message?: string;
+}
+
+// @public
+export interface PrepareRequest {
+ moveResourceInputType?: MoveResourceInputType;
+ moveResources: string[];
+ validateOnly?: boolean;
+}
+
+// @public
+export type ProvisioningState = string;
+
+// @public
+export type ProxyResourceReference = AzureResourceReference & {
+ name?: string;
+};
+
+// @public
+export type PublicIPAddressResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Network/publicIPAddresses";
+ tags?: {
+ [propertyName: string]: string;
+ };
+ domainNameLabel?: string;
+ fqdn?: string;
+ publicIpAllocationMethod?: string;
+ sku?: string;
+ zones?: string;
+};
+
+// @public
+export type PublicIpReference = AzureResourceReference & {};
+
+// @public
+export interface RequiredForResourcesCollection {
+ sourceIds?: string[];
+}
+
+// @public
+export type ResolutionType = string;
+
+// @public
+export type ResourceGroupResourceSettings = ResourceSettings & {
+ resourceType: "resourceGroups";
+};
+
+// @public
+export type ResourceIdentityType = string;
+
+// @public
+export interface ResourceMoveRequest {
+ moveResourceInputType?: MoveResourceInputType;
+ moveResources: string[];
+ validateOnly?: boolean;
+}
+
+// @public (undocumented)
+export class ResourceMoverServiceAPI extends coreClient.ServiceClient {
+ // (undocumented)
+ $host: string;
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ResourceMoverServiceAPIOptionalParams);
+ // (undocumented)
+ apiVersion: string;
+ // (undocumented)
+ moveCollections: MoveCollections;
+ // (undocumented)
+ moveResources: MoveResources;
+ // (undocumented)
+ operationsDiscoveryOperations: OperationsDiscoveryOperations;
+ // (undocumented)
+ subscriptionId: string;
+ // (undocumented)
+ unresolvedDependencies: UnresolvedDependencies;
+}
+
+// @public
+export interface ResourceMoverServiceAPIOptionalParams extends coreClient.ServiceClientOptions {
+ $host?: string;
+ apiVersion?: string;
+ endpoint?: string;
+}
+
+// @public
+export interface ResourceSettings {
+ resourceType: "Microsoft.Compute/virtualMachines" | "Microsoft.Compute/availabilitySets" | "Microsoft.Network/virtualNetworks" | "Microsoft.Network/networkInterfaces" | "Microsoft.Network/networkSecurityGroups" | "Microsoft.Network/loadBalancers" | "Microsoft.Sql/servers" | "Microsoft.Sql/servers/elasticPools" | "Microsoft.Sql/servers/databases" | "resourceGroups" | "Microsoft.Network/publicIPAddresses" | "Microsoft.KeyVault/vaults" | "Microsoft.Compute/diskEncryptionSets";
+ targetResourceName: string;
+}
+
+// @public (undocumented)
+export type ResourceSettingsUnion = ResourceSettings | VirtualMachineResourceSettings | AvailabilitySetResourceSettings | VirtualNetworkResourceSettings | NetworkInterfaceResourceSettings | NetworkSecurityGroupResourceSettings | LoadBalancerResourceSettings | SqlServerResourceSettings | SqlElasticPoolResourceSettings | SqlDatabaseResourceSettings | ResourceGroupResourceSettings | PublicIPAddressResourceSettings | KeyVaultResourceSettings | DiskEncryptionSetResourceSettings;
+
+// @public
+export type SqlDatabaseResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Sql/servers/databases";
+ tags?: {
+ [propertyName: string]: string;
+ };
+ zoneRedundant?: ZoneRedundant;
+};
+
+// @public
+export type SqlElasticPoolResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Sql/servers/elasticPools";
+ tags?: {
+ [propertyName: string]: string;
+ };
+ zoneRedundant?: ZoneRedundant;
+};
+
+// @public
+export type SqlServerResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Sql/servers";
+};
+
+// @public
+export type SubnetReference = ProxyResourceReference & {};
+
+// @public
+export interface SubnetResourceSettings {
+ addressPrefix?: string;
+ name?: string;
+ networkSecurityGroup?: NsgReference;
+}
+
+// @public
+export interface Summary {
+ count?: number;
+ item?: string;
+}
+
+// @public
+export interface SummaryCollection {
+ fieldName?: string;
+ summary?: Summary[];
+}
+
+// @public
+export interface SystemData {
+ createdAt?: Date;
+ createdBy?: string;
+ createdByType?: CreatedByType;
+ lastModifiedAt?: Date;
+ lastModifiedBy?: string;
+ lastModifiedByType?: CreatedByType;
+}
+
+// @public
+export type TargetAvailabilityZone = string;
+
+// @public
+export interface UnresolvedDependencies {
+ list(resourceGroupName: string, moveCollectionName: string, options?: UnresolvedDependenciesGetOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface UnresolvedDependenciesFilter {
+ // (undocumented)
+ properties?: UnresolvedDependenciesFilterProperties;
+}
+
+// @public (undocumented)
+export interface UnresolvedDependenciesFilterProperties {
+ count?: number;
+}
+
+// @public
+export interface UnresolvedDependenciesGetNextOptionalParams extends coreClient.OperationOptions {
+ dependencyLevel?: DependencyLevel;
+ filter?: string;
+ orderby?: string;
+}
+
+// @public
+export type UnresolvedDependenciesGetNextResponse = UnresolvedDependencyCollection;
+
+// @public
+export interface UnresolvedDependenciesGetOptionalParams extends coreClient.OperationOptions {
+ dependencyLevel?: DependencyLevel;
+ filter?: string;
+ orderby?: string;
+}
+
+// @public
+export type UnresolvedDependenciesGetResponse = UnresolvedDependencyCollection;
+
+// @public
+export interface UnresolvedDependency {
+ count?: number;
+ id?: string;
+}
+
+// @public
+export interface UnresolvedDependencyCollection {
+ nextLink?: string;
+ readonly summaryCollection?: SummaryCollection;
+ readonly totalCount?: number;
+ value?: UnresolvedDependency[];
+}
+
+// @public
+export interface UpdateMoveCollectionRequest {
+ identity?: Identity;
+ tags?: {
+ [propertyName: string]: string;
+ };
+}
+
+// @public
+export type VirtualMachineResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Compute/virtualMachines";
+ tags?: {
+ [propertyName: string]: string;
+ };
+ userManagedIdentities?: string[];
+ targetAvailabilityZone?: TargetAvailabilityZone;
+ targetVmSize?: string;
+ targetAvailabilitySetId?: string;
+};
+
+// @public
+export type VirtualNetworkResourceSettings = ResourceSettings & {
+ resourceType: "Microsoft.Network/virtualNetworks";
+ tags?: {
+ [propertyName: string]: string;
+ };
+ enableDdosProtection?: boolean;
+ addressSpace?: string[];
+ dnsServers?: string[];
+ subnets?: SubnetResourceSettings[];
+};
+
+// @public
+export type ZoneRedundant = string;
+
+// (No @packageDocumentation comment for this package)
+
+```
diff --git a/sdk/resourcemover/arm-resourcemover/rollup.config.js b/sdk/resourcemover/arm-resourcemover/rollup.config.js
index 91c344969308..9be1955eb7f1 100644
--- a/sdk/resourcemover/arm-resourcemover/rollup.config.js
+++ b/sdk/resourcemover/arm-resourcemover/rollup.config.js
@@ -1,37 +1,188 @@
-import rollup from "rollup";
-import nodeResolve from "rollup-plugin-node-resolve";
-import sourcemaps from "rollup-plugin-sourcemaps";
-
-/**
- * @type {rollup.RollupFileOptions}
- */
-const config = {
- input: "./esm/resourceMoverServiceAPI.js",
- external: [
- "@azure/ms-rest-js",
- "@azure/ms-rest-azure-js"
- ],
- output: {
- file: "./dist/arm-resourcemover.js",
- format: "umd",
- name: "Azure.ArmResourcemover",
- sourcemap: true,
- globals: {
- "@azure/ms-rest-js": "msRest",
- "@azure/ms-rest-azure-js": "msRestAzure"
- },
- banner: `/*
+/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */`
- },
- plugins: [
- nodeResolve({ mainFields: ['module', 'main'] }),
- sourcemaps()
- ]
+ */
+
+import nodeResolve from "@rollup/plugin-node-resolve";
+import cjs from "@rollup/plugin-commonjs";
+import sourcemaps from "rollup-plugin-sourcemaps";
+import multiEntry from "@rollup/plugin-multi-entry";
+import json from "@rollup/plugin-json";
+
+import nodeBuiltins from "builtin-modules";
+
+/**
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
+ *
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
+ * __exportStar downleveled helper function to declare its exports which confuses
+ * rollup's automatic discovery mechanism.
+ *
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
+ */
+export function openTelemetryCommonJs() {
+ const namedExports = {};
+
+ for (const key of [
+ "@opentelemetry/api",
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
+ ]) {
+ namedExports[key] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "SpanStatusCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
+
+ for (const version of releasedOpenTelemetryVersions) {
+ namedExports[
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
+ ] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "StatusCode",
+ "CanonicalCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ return namedExports;
+}
+
+// #region Warning Handler
+
+/**
+ * A function that can determine whether a rollupwarning should be ignored. If
+ * the function returns `true`, then the warning will not be displayed.
+ */
+
+function ignoreNiseSinonEvalWarnings(warning) {
+ return (
+ warning.code === "EVAL" &&
+ warning.id &&
+ (warning.id.includes("node_modules/nise") ||
+ warning.id.includes("node_modules/sinon")) === true
+ );
+}
+
+function ignoreChaiCircularDependencyWarnings(warning) {
+ return (
+ warning.code === "CIRCULAR_DEPENDENCY" &&
+ warning.importer && warning.importer.includes("node_modules/chai") === true
+ );
+}
+
+const warningInhibitors = [
+ ignoreChaiCircularDependencyWarnings,
+ ignoreNiseSinonEvalWarnings
+];
+
+/**
+ * Construct a warning handler for the shared rollup configuration
+ * that ignores certain warnings that are not relevant to testing.
+ */
+function makeOnWarnForTesting() {
+ return (warning, warn) => {
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
+ warn(warning);
+ }
+ };
+}
+
+// #endregion
+
+function makeBrowserTestConfig() {
+ const config = {
+ input: {
+ include: ["dist-esm/test/**/*.spec.js"],
+ exclude: ["dist-esm/test/**/node/**"]
+ },
+ output: {
+ file: `dist-test/index.browser.js`,
+ format: "umd",
+ sourcemap: true
+ },
+ preserveSymlinks: false,
+ plugins: [
+ multiEntry({ exports: false }),
+ nodeResolve({
+ mainFields: ["module", "browser"]
+ }),
+ cjs({
+ namedExports: {
+ // Chai's strange internal architecture makes it impossible to statically
+ // analyze its exports.
+ chai: [
+ "version",
+ "use",
+ "util",
+ "config",
+ "expect",
+ "should",
+ "assert"
+ ],
+ ...openTelemetryCommonJs()
+ }
+ }),
+ json(),
+ sourcemaps()
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
+ ],
+ onwarn: makeOnWarnForTesting(),
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
+ // rollup started respecting the "sideEffects" field in package.json. Since
+ // our package.json sets "sideEffects=false", this also applies to test
+ // code, which causes all tests to be removed by tree-shaking.
+ treeshake: false
+ };
+
+ return config;
+}
+
+const defaultConfigurationOptions = {
+ disableBrowserBundle: false
};
-export default config;
+export function makeConfig(pkg, options) {
+ options = {
+ ...defaultConfigurationOptions,
+ ...(options || {})
+ };
+
+ const baseConfig = {
+ // Use the package's module field if it has one
+ input: pkg["module"] || "dist-esm/src/index.js",
+ external: [
+ ...nodeBuiltins,
+ ...Object.keys(pkg.dependencies),
+ ...Object.keys(pkg.devDependencies)
+ ],
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
+ preserveSymlinks: false,
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
+ };
+
+ const config = [baseConfig];
+
+ if (!options.disableBrowserBundle) {
+ config.push(makeBrowserTestConfig());
+ }
+
+ return config;
+}
+
+export default makeConfig(require("./package.json"));
diff --git a/sdk/resourcemover/arm-resourcemover/src/models/unresolvedDependenciesMappers.ts b/sdk/resourcemover/arm-resourcemover/src/index.ts
similarity index 56%
rename from sdk/resourcemover/arm-resourcemover/src/models/unresolvedDependenciesMappers.ts
rename to sdk/resourcemover/arm-resourcemover/src/index.ts
index b97d918b0260..c57586d19b0e 100644
--- a/sdk/resourcemover/arm-resourcemover/src/models/unresolvedDependenciesMappers.ts
+++ b/sdk/resourcemover/arm-resourcemover/src/index.ts
@@ -6,11 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export {
- discriminators,
- CloudError,
- Summary,
- SummaryCollection,
- UnresolvedDependency,
- UnresolvedDependencyCollection
-} from "../models/mappers";
+///
+export * from "./models";
+export { ResourceMoverServiceAPI } from "./resourceMoverServiceAPI";
+export * from "./operationsInterfaces";
diff --git a/sdk/resourcemover/arm-resourcemover/src/lroImpl.ts b/sdk/resourcemover/arm-resourcemover/src/lroImpl.ts
new file mode 100644
index 000000000000..518d5f053b4e
--- /dev/null
+++ b/sdk/resourcemover/arm-resourcemover/src/lroImpl.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under 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 { LongRunningOperation, LroResponse } from "@azure/core-lro";
+
+export class LroImpl implements LongRunningOperation {
+ constructor(
+ private sendOperationFn: (args: any, spec: any) => Promise>,
+ private args: Record,
+ private spec: {
+ readonly requestBody?: unknown;
+ readonly path?: string;
+ readonly httpMethod: string;
+ } & Record,
+ public requestPath: string = spec.path!,
+ public requestMethod: string = spec.httpMethod
+ ) {}
+ public async sendInitialRequest(): Promise> {
+ return this.sendOperationFn(this.args, this.spec);
+ }
+ public async sendPollRequest(path: string): Promise> {
+ const { requestBody, ...restSpec } = this.spec;
+ return this.sendOperationFn(this.args, {
+ ...restSpec,
+ path,
+ httpMethod: "GET"
+ });
+ }
+}
diff --git a/sdk/resourcemover/arm-resourcemover/src/models/index.ts b/sdk/resourcemover/arm-resourcemover/src/models/index.ts
index a518b7546e44..25dd82d43ced 100644
--- a/sdk/resourcemover/arm-resourcemover/src/models/index.ts
+++ b/sdk/resourcemover/arm-resourcemover/src/models/index.ts
@@ -6,525 +6,592 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
-
-export { BaseResource, CloudError };
-
-/**
- * Defines the MSI properties of the Move Collection.
- */
-export interface Identity {
+import * as coreClient from "@azure/core-client";
+
+export type ResourceSettingsUnion =
+ | ResourceSettings
+ | VirtualMachineResourceSettings
+ | AvailabilitySetResourceSettings
+ | VirtualNetworkResourceSettings
+ | NetworkInterfaceResourceSettings
+ | NetworkSecurityGroupResourceSettings
+ | LoadBalancerResourceSettings
+ | SqlServerResourceSettings
+ | SqlElasticPoolResourceSettings
+ | SqlDatabaseResourceSettings
+ | ResourceGroupResourceSettings
+ | PublicIPAddressResourceSettings
+ | KeyVaultResourceSettings
+ | DiskEncryptionSetResourceSettings;
+
+/** Define the move collection. */
+export interface MoveCollection {
/**
- * Possible values include: 'None', 'SystemAssigned', 'UserAssigned'
+ * Fully qualified resource Id for the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- type?: ResourceIdentityType;
+ readonly id?: string;
/**
- * Gets or sets the principal id.
+ * The name of the resource
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- principalId?: string;
+ 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 etag of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly etag?: string;
+ /** Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** The geo-location where the resource lives. */
+ location?: string;
+ /** Defines the MSI properties of the Move Collection. */
+ identity?: Identity;
+ /** Defines the move collection properties. */
+ properties?: MoveCollectionProperties;
/**
- * Gets or sets the tenant id.
+ * Metadata pertaining to creation and last modification of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
+ readonly systemData?: SystemData;
+}
+
+/** Defines the MSI properties of the Move Collection. */
+export interface Identity {
+ /** The type of identity used for the resource mover service. */
+ type?: ResourceIdentityType;
+ /** Gets or sets the principal id. */
+ principalId?: string;
+ /** Gets or sets the tenant id. */
tenantId?: string;
}
-/**
- * Defines the job status.
- */
-export interface JobStatus {
+/** Defines the move collection properties. */
+export interface MoveCollectionProperties {
+ /** Gets or sets the source region. */
+ sourceRegion: string;
+ /** Gets or sets the target region. */
+ targetRegion: string;
/**
- * Possible values include: 'InitialSync'
+ * Defines the provisioning states.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- jobName?: JobName;
+ readonly provisioningState?: ProvisioningState;
/**
- * Gets or sets the monitoring job percentage.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Defines the move collection errors.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly jobProgress?: string;
+ readonly errors?: MoveCollectionPropertiesErrors;
}
-/**
- * An error response from the Azure Migrate service.
- */
+/** An error response from the azure resource mover service. */
+export interface MoveResourceError {
+ /** The move resource error body. */
+ properties?: MoveResourceErrorBody;
+}
+
+/** An error response from the Azure Migrate service. */
export interface MoveResourceErrorBody {
/**
- * An identifier for the error. Codes are invariant and are intended to be consumed
- * programmatically.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly code?: string;
/**
* A message describing the error, intended to be suitable for display in a user interface.
- * **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 message?: string;
/**
* The target of the particular error. For example, the name of the property in error.
- * **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 target?: string;
/**
* A list of additional details about the error.
- * **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 details?: MoveResourceErrorBody[];
}
-/**
- * An error response from the azure resource mover service.
- */
-export interface MoveResourceError {
- /**
- * The move resource error body.
- */
- properties?: MoveResourceErrorBody;
+/** 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. */
+ 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. */
+ lastModifiedByType?: CreatedByType;
+ /** The timestamp of resource last modification (UTC) */
+ lastModifiedAt?: Date;
+}
+
+/** An error response from the service. */
+export interface CloudError {
+ /** Cloud error body. */
+ error?: CloudErrorBody;
+}
+
+/** An error response from the service. */
+export interface CloudErrorBody {
+ /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */
+ code?: string;
+ /** A message describing the error, intended to be suitable for display in a user interface. */
+ message?: string;
+ /** The target of the particular error. For example, the name of the property in error. */
+ target?: string;
+ /** A list of additional details about the error. */
+ details?: CloudErrorBody[];
+}
+
+/** Defines the request body for updating move collection. */
+export interface UpdateMoveCollectionRequest {
+ /** Gets or sets the Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** Defines the MSI properties of the Move Collection. */
+ identity?: Identity;
}
-/**
- * Defines the move resource status.
- */
-export interface MoveResourceStatus {
+/** Operation status REST resource. */
+export interface OperationStatus {
/**
- * Possible values include: 'AssignmentPending', 'PreparePending', 'PrepareInProgress',
- * 'PrepareFailed', 'MovePending', 'MoveInProgress', 'MoveFailed', 'DiscardInProgress',
- * 'DiscardFailed', 'CommitPending', 'CommitInProgress', 'CommitFailed', 'Committed',
- * 'DeleteSourcePending', 'ResourceMoveCompleted'
+ * Resource Id.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- moveState?: MoveState;
- jobStatus?: JobStatus;
- errors?: MoveResourceError;
-}
-
-/**
- * Defines the properties for manual resolution.
- */
-export interface ManualResolutionProperties {
+ readonly id?: string;
/**
- * Gets or sets the target resource ARM ID of the dependent resource if the resource type is
- * Manual.
+ * Operation name.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- targetId?: string;
-}
-
-/**
- * Defines the properties for automatic resolution.
- */
-export interface AutomaticResolutionProperties {
+ readonly name?: string;
/**
- * Gets the MoveResource ARM ID of
- * the dependent resource if the resolution type is Automatic.
+ * Status of the operation. ARM expects the terminal status to be one of Succeeded/ Failed/ Canceled. All other values imply that the operation is still running.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- moveResourceId?: string;
-}
-
-/**
- * Defines the dependency of the move resource.
- */
-export interface MoveResourceDependency {
+ readonly status?: string;
/**
- * Gets the source ARM ID of the dependent resource.
+ * Start time.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- id?: string;
+ readonly startTime?: string;
/**
- * Gets the dependency resolution status.
+ * End time.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- resolutionStatus?: string;
+ readonly endTime?: string;
/**
- * Possible values include: 'Manual', 'Automatic'
+ * Error stating all error details for the operation.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- resolutionType?: ResolutionType;
+ readonly error?: OperationStatusError;
/**
- * Possible values include: 'RequiredForPrepare', 'RequiredForMove'
+ * Custom data.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- dependencyType?: DependencyType;
- manualResolution?: ManualResolutionProperties;
- automaticResolution?: AutomaticResolutionProperties;
+ readonly properties?: Record;
+}
+
+/** Class for operation status errors. */
+export interface OperationStatusError {
/**
- * Gets or sets a value indicating whether the dependency is optional.
+ * The error code.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- isOptional?: string;
+ 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 details.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly details?: OperationStatusError[];
+ /**
+ * The additional info.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly additionalInfo?: OperationErrorAdditionalInfo[];
}
-/**
- * Defines the dependency override of the move resource.
- */
-export interface MoveResourceDependencyOverride {
+/** The operation error info. */
+export interface OperationErrorAdditionalInfo {
/**
- * Gets or sets the ARM ID of the dependent resource.
+ * The error type.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- id?: string;
+ readonly type?: string;
/**
- * Gets or sets the resource ARM id of either the MoveResource or the resource ARM ID of
- * the dependent resource.
+ * The operation error info.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- targetId?: string;
+ readonly info?: MoveErrorInfo;
}
-/**
- * Contains the possible cases for ResourceSettings.
- */
-export type ResourceSettingsUnion = ResourceSettings | VirtualMachineResourceSettings | AvailabilitySetResourceSettings | VirtualNetworkResourceSettings | NetworkInterfaceResourceSettings | NetworkSecurityGroupResourceSettings | LoadBalancerResourceSettings | SqlServerResourceSettings | SqlElasticPoolResourceSettings | SqlDatabaseResourceSettings | ResourceGroupResourceSettings | PublicIPAddressResourceSettings | KeyVaultResourceSettings | DiskEncryptionSetResourceSettings;
+/** The move custom error info. */
+export interface MoveErrorInfo {
+ /**
+ * The affected move resources.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly moveResources?: AffectedMoveResource[];
+}
-/**
- * Gets or sets the resource settings.
- */
-export interface ResourceSettings {
+/** The RP custom operation error info. */
+export interface AffectedMoveResource {
/**
- * Polymorphic Discriminator
+ * The affected move resource id.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- resourceType: "ResourceSettings";
+ readonly id?: string;
/**
- * Gets or sets the target Resource name.
+ * The affected move resource source id.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- targetResourceName: string;
+ readonly sourceId?: string;
+ /**
+ * The affected move resources.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly moveResources?: AffectedMoveResource[];
}
-/**
- * Defines the move resource status.
- */
-export interface MoveResourcePropertiesMoveStatus extends MoveResourceStatus {
+/** Defines the request body for initiate prepare operation. */
+export interface PrepareRequest {
+ /** Gets or sets a value indicating whether the operation needs to only run pre-requisite. */
+ validateOnly?: boolean;
+ /** Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property. */
+ moveResources: string[];
+ /** Defines the move resource input type. */
+ moveResourceInputType?: MoveResourceInputType;
}
-/**
- * Defines the move resource errors.
- */
-export interface MoveResourcePropertiesErrors extends MoveResourceError {
+/** Defines the request body for resource move operation. */
+export interface ResourceMoveRequest {
+ /** Gets or sets a value indicating whether the operation needs to only run pre-requisite. */
+ validateOnly?: boolean;
+ /** Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property. */
+ moveResources: string[];
+ /** Defines the move resource input type. */
+ moveResourceInputType?: MoveResourceInputType;
}
-/**
- * Defines the move resource properties.
- */
-export interface MoveResourceProperties {
+/** Defines the request body for commit operation. */
+export interface CommitRequest {
+ /** Gets or sets a value indicating whether the operation needs to only run pre-requisite. */
+ validateOnly?: boolean;
+ /** Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property. */
+ moveResources: string[];
+ /** Defines the move resource input type. */
+ moveResourceInputType?: MoveResourceInputType;
+}
+
+/** Defines the request body for discard operation. */
+export interface DiscardRequest {
+ /** Gets or sets a value indicating whether the operation needs to only run pre-requisite. */
+ validateOnly?: boolean;
+ /** Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property. */
+ moveResources: string[];
+ /** Defines the move resource input type. */
+ moveResourceInputType?: MoveResourceInputType;
+}
+
+/** Defines the collection of move resources. */
+export interface MoveResourceCollection {
+ /** Gets the list of move resources. */
+ value?: MoveResource[];
+ /** Gets the value of next link. */
+ nextLink?: string;
+ /** Gets or sets the list of summary items and the field on which summary is done. */
+ summaryCollection?: SummaryCollection;
/**
- * Possible values include: 'Succeeded', 'Updating', 'Creating', 'Failed'
+ * Gets the total count.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- provisioningState?: ProvisioningState;
+ readonly totalCount?: number;
+}
+
+/** Defines the move resource. */
+export interface MoveResource {
/**
- * Gets or sets the Source ARM Id of the resource.
+ * Fully qualified resource Id for the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- sourceId: string;
+ readonly id?: string;
/**
- * Gets or sets the Target ARM Id 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 targetId?: string;
+ readonly name?: string;
/**
- * Gets or sets the existing target ARM Id of the resource.
+ * The type of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- existingTargetId?: string;
+ readonly type?: string;
+ /** Defines the move resource properties. */
+ properties?: MoveResourceProperties;
+ /**
+ * Metadata pertaining to creation and last modification of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly systemData?: SystemData;
+}
+
+/** Defines the move resource properties. */
+export interface MoveResourceProperties {
/**
- * Gets or sets the resource settings.
+ * Defines the provisioning states.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly provisioningState?: ProvisioningState;
+ /** Gets or sets the Source ARM Id of the resource. */
+ sourceId: string;
+ /**
+ * Gets or sets the Target ARM Id of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
+ readonly targetId?: string;
+ /** Gets or sets the existing target ARM Id of the resource. */
+ existingTargetId?: string;
+ /** Gets or sets the resource settings. */
resourceSettings?: ResourceSettingsUnion;
/**
* Gets or sets the source resource settings.
- * **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 sourceResourceSettings?: ResourceSettingsUnion;
/**
* Defines the move resource status.
- * **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 moveStatus?: MoveResourcePropertiesMoveStatus;
/**
* Gets or sets the move resource dependencies.
- * **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 dependsOn?: MoveResourceDependency[];
- /**
- * Gets or sets the move resource dependencies overrides.
- */
+ /** Gets or sets the move resource dependencies overrides. */
dependsOnOverrides?: MoveResourceDependencyOverride[];
/**
* Gets a value indicating whether the resolve action is required over the move collection.
- * **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 isResolveRequired?: boolean;
/**
* Defines the move resource errors.
- * **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 errors?: MoveResourcePropertiesErrors;
}
-/**
- * Defines the move resource.
- */
-export interface MoveResource extends BaseResource {
- /**
- * Fully qualified resource Id for the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * The name of the resource
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * The type of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
- properties?: MoveResourceProperties;
+/** Gets or sets the resource settings. */
+export interface ResourceSettings {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType:
+ | "Microsoft.Compute/virtualMachines"
+ | "Microsoft.Compute/availabilitySets"
+ | "Microsoft.Network/virtualNetworks"
+ | "Microsoft.Network/networkInterfaces"
+ | "Microsoft.Network/networkSecurityGroups"
+ | "Microsoft.Network/loadBalancers"
+ | "Microsoft.Sql/servers"
+ | "Microsoft.Sql/servers/elasticPools"
+ | "Microsoft.Sql/servers/databases"
+ | "resourceGroups"
+ | "Microsoft.Network/publicIPAddresses"
+ | "Microsoft.KeyVault/vaults"
+ | "Microsoft.Compute/diskEncryptionSets";
+ /** Gets or sets the target Resource name. */
+ targetResourceName: string;
}
-/**
- * Summary item.
- */
-export interface Summary {
- /**
- * Gets the count.
- */
- count?: number;
+/** Defines the move resource status. */
+export interface MoveResourceStatus {
/**
- * Gets the item.
+ * Defines the MoveResource states.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- item?: string;
+ readonly moveState?: MoveState;
+ /** Defines the job status. */
+ jobStatus?: JobStatus;
+ /** An error response from the azure resource mover service. */
+ errors?: MoveResourceError;
}
-/**
- * Summary Collection.
- */
-export interface SummaryCollection {
+/** Defines the job status. */
+export interface JobStatus {
/**
- * Gets or sets the field name on which summary is done.
+ * Defines the job name.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- fieldName?: string;
+ readonly jobName?: JobName;
/**
- * Gets or sets the list of summary items.
+ * Gets or sets the monitoring job percentage.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- summary?: Summary[];
+ readonly jobProgress?: string;
}
-/**
- * Defines the move collection errors.
- */
-export interface MoveCollectionPropertiesErrors extends MoveResourceError {
+/** Defines the dependency of the move resource. */
+export interface MoveResourceDependency {
+ /** Gets the source ARM ID of the dependent resource. */
+ id?: string;
+ /** Gets the dependency resolution status. */
+ resolutionStatus?: string;
+ /** Defines the resolution type. */
+ resolutionType?: ResolutionType;
+ /** Defines the dependency type. */
+ dependencyType?: DependencyType;
+ /** Defines the properties for manual resolution. */
+ manualResolution?: ManualResolutionProperties;
+ /** Defines the properties for automatic resolution. */
+ automaticResolution?: AutomaticResolutionProperties;
+ /** Gets or sets a value indicating whether the dependency is optional. */
+ isOptional?: string;
}
-/**
- * Defines the move collection properties.
- */
-export interface MoveCollectionProperties {
- /**
- * Gets or sets the source region.
- */
- sourceRegion: string;
- /**
- * Gets or sets the target region.
- */
- targetRegion: string;
- /**
- * Possible values include: 'Succeeded', 'Updating', 'Creating', 'Failed'
- */
- provisioningState?: ProvisioningState;
- /**
- * Defines the move collection errors.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly errors?: MoveCollectionPropertiesErrors;
+/** Defines the properties for manual resolution. */
+export interface ManualResolutionProperties {
+ /** Gets or sets the target resource ARM ID of the dependent resource if the resource type is Manual. */
+ targetId?: string;
}
-/**
- * Define the move collection.
- */
-export interface MoveCollection extends BaseResource {
- /**
- * Fully qualified resource Id for the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * The name of the resource
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * The type of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
- /**
- * The etag of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly etag?: string;
- /**
- * Resource tags.
- */
- tags?: { [propertyName: string]: string };
+/** Defines the properties for automatic resolution. */
+export interface AutomaticResolutionProperties {
/**
- * The geo-location where the resource lives.
+ * Gets the MoveResource ARM ID of
+ * the dependent resource if the resolution type is Automatic.
*/
- location?: string;
- identity?: Identity;
- properties?: MoveCollectionProperties;
+ moveResourceId?: string;
}
-/**
- * Defines the request body for updating move collection.
- */
-export interface UpdateMoveCollectionRequest {
+/** Defines the dependency override of the move resource. */
+export interface MoveResourceDependencyOverride {
+ /** Gets or sets the ARM ID of the dependent resource. */
+ id?: string;
/**
- * Gets or sets the Resource tags.
+ * Gets or sets the resource ARM id of either the MoveResource or the resource ARM ID of
+ * the dependent resource.
*/
- tags?: { [propertyName: string]: string };
- identity?: Identity;
+ targetId?: string;
}
-/**
- * Defines the request body for initiate prepare operation.
- */
-export interface PrepareRequest {
- /**
- * Gets or sets a value indicating whether the operation needs to only run pre-requisite.
- */
- validateOnly?: boolean;
- /**
- * Gets or sets the list of resource Id's, by default it accepts move resource id's unless the
- * input type is switched via moveResourceInputType property.
- */
- moveResources: string[];
- /**
- * Possible values include: 'MoveResourceId', 'MoveResourceSourceId'
- */
- moveResourceInputType?: MoveResourceInputType;
+/** Summary Collection. */
+export interface SummaryCollection {
+ /** Gets or sets the field name on which summary is done. */
+ fieldName?: string;
+ /** Gets or sets the list of summary items. */
+ summary?: Summary[];
}
-/**
- * Defines the request body for resource move operation.
- */
-export interface ResourceMoveRequest {
- /**
- * Gets or sets a value indicating whether the operation needs to only run pre-requisite.
- */
- validateOnly?: boolean;
- /**
- * Gets or sets the list of resource Id's, by default it accepts move resource id's unless the
- * input type is switched via moveResourceInputType property.
- */
- moveResources: string[];
- /**
- * Possible values include: 'MoveResourceId', 'MoveResourceSourceId'
- */
- moveResourceInputType?: MoveResourceInputType;
+/** Summary item. */
+export interface Summary {
+ /** Gets the count. */
+ count?: number;
+ /** Gets the item. */
+ item?: string;
}
-/**
- * Defines the request body for commit operation.
- */
-export interface CommitRequest {
- /**
- * Gets or sets a value indicating whether the operation needs to only run pre-requisite.
- */
- validateOnly?: boolean;
+/** Unresolved dependency collection. */
+export interface UnresolvedDependencyCollection {
+ /** Gets or sets the list of unresolved dependencies. */
+ value?: UnresolvedDependency[];
+ /** Gets or sets the value of next link. */
+ nextLink?: string;
/**
- * Gets or sets the list of resource Id's, by default it accepts move resource id's unless the
- * input type is switched via moveResourceInputType property.
+ * Gets or sets the list of summary items and the field on which summary is done.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- moveResources: string[];
+ readonly summaryCollection?: SummaryCollection;
/**
- * Possible values include: 'MoveResourceId', 'MoveResourceSourceId'
+ * Gets the total count.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- moveResourceInputType?: MoveResourceInputType;
+ readonly totalCount?: number;
}
-/**
- * Defines the request body for discard operation.
- */
-export interface DiscardRequest {
- /**
- * Gets or sets a value indicating whether the operation needs to only run pre-requisite.
- */
- validateOnly?: boolean;
- /**
- * Gets or sets the list of resource Id's, by default it accepts move resource id's unless the
- * input type is switched via moveResourceInputType property.
- */
- moveResources: string[];
- /**
- * Possible values include: 'MoveResourceId', 'MoveResourceSourceId'
- */
- moveResourceInputType?: MoveResourceInputType;
+/** Unresolved dependency. */
+export interface UnresolvedDependency {
+ /** Gets or sets the count. */
+ count?: number;
+ /** Gets or sets the arm id of the dependency. */
+ id?: string;
}
-/**
- * Defines the request body for bulk remove of move resources operation.
- */
+/** Defines the request body for bulk remove of move resources operation. */
export interface BulkRemoveRequest {
- /**
- * Gets or sets a value indicating whether the operation needs to only run pre-requisite.
- */
+ /** Gets or sets a value indicating whether the operation needs to only run pre-requisite. */
validateOnly?: boolean;
- /**
- * Gets or sets the list of resource Id's, by default it accepts move resource id's unless the
- * input type is switched via moveResourceInputType property.
- */
+ /** Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property. */
moveResources?: string[];
- /**
- * Possible values include: 'MoveResourceId', 'MoveResourceSourceId'
- */
+ /** Defines the move resource input type. */
moveResourceInputType?: MoveResourceInputType;
}
-/**
- * An interface representing MoveResourceFilterProperties.
- */
-export interface MoveResourceFilterProperties {
- /**
- * The provisioning state.
- */
- provisioningState?: string;
-}
-
-/**
- * Move resource filter.
- */
-export interface MoveResourceFilter {
- properties?: MoveResourceFilterProperties;
-}
-
-/**
- * An interface representing UnresolvedDependenciesFilterProperties.
- */
-export interface UnresolvedDependenciesFilterProperties {
- /**
- * The count of the resource.
- */
- count?: number;
-}
-
-/**
- * Unresolved dependencies contract.
- */
-export interface UnresolvedDependenciesFilter {
- properties?: UnresolvedDependenciesFilterProperties;
+/** Collection of ClientDiscovery details. */
+export interface OperationsDiscoveryCollection {
+ /** Gets or sets the ClientDiscovery details. */
+ value?: OperationsDiscovery[];
+ /** Gets or sets the value of next link. */
+ nextLink?: string;
}
-/**
- * Unresolved dependency.
- */
-export interface UnresolvedDependency {
+/** Operations discovery class. */
+export interface OperationsDiscovery {
/**
- * Gets or sets the count.
+ * Gets or sets 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).
*/
- count?: number;
+ name?: string;
+ /** Indicates whether the operation is a data action */
+ isDataAction?: boolean;
/**
- * Gets or sets the arm id of the dependency.
+ * 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.
*/
- id?: string;
-}
-
-/**
- * Required for resources collection.
- */
-export interface RequiredForResourcesCollection {
+ display?: Display;
/**
- * Gets or sets the list of source Ids for which the input resource is required.
+ * Gets or sets 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".
*/
- sourceIds?: string[];
+ origin?: string;
+ /** Any object */
+ properties?: Record;
}
/**
@@ -574,289 +641,95 @@ export interface Display {
* Perform any other action on any 'display.provider' resource
* Prescriptive guidance for namespace:
* Read any 'display.resource' Create or Update any 'display.resource' Delete any
- * 'display.resource' 'ActionName' any 'display.resources'.
+ * 'display.resource' 'ActionName' any 'display.resources'.
*/
description?: string;
}
-/**
- * Operations discovery class.
- */
-export interface OperationsDiscovery {
- /**
- * Gets or sets 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).
- */
- name?: string;
- /**
- * Indicates whether the operation is a data action
- */
- isDataAction?: boolean;
- display?: Display;
- /**
- * Gets or sets 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".
- */
- origin?: string;
- properties?: any;
+/** Defines the collection of move collections. */
+export interface MoveCollectionResultList {
+ /** Gets the list of move collections. */
+ value?: MoveCollection[];
+ /** Gets the value of next link. */
+ nextLink?: string;
}
-/**
- * Collection of ClientDiscovery details.
- */
-export interface OperationsDiscoveryCollection {
- /**
- * Gets or sets the ClientDiscovery details.
- */
- value?: OperationsDiscovery[];
- /**
- * Gets or sets the value of next link.
- */
- nextLink?: string;
+/** Required for resources collection. */
+export interface RequiredForResourcesCollection {
+ /** Gets or sets the list of source Ids for which the input resource is required. */
+ sourceIds?: string[];
}
-/**
- * Gets or sets the virtual machine resource settings.
- */
-export interface VirtualMachineResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Compute/virtualMachines";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
- /**
- * Gets or sets the target availability zone. Possible values include: '1', '2', '3', 'NA'
- */
- targetAvailabilityZone?: TargetAvailabilityZone;
- /**
- * Gets or sets the target virtual machine size.
- */
- targetVmSize?: string;
- /**
- * Gets or sets the target availability set id for virtual machines not in an availability set at
- * source.
- */
- targetAvailabilitySetId?: string;
+/** Move resource filter. */
+export interface MoveResourceFilter {
+ properties?: MoveResourceFilterProperties;
}
-/**
- * Gets or sets the availability set resource settings.
- */
-export interface AvailabilitySetResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Compute/availabilitySets";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
- /**
- * Gets or sets the target fault domain.
- */
- faultDomain?: number;
- /**
- * Gets or sets the target update domain.
- */
- updateDomain?: number;
+export interface MoveResourceFilterProperties {
+ /** The provisioning state. */
+ provisioningState?: string;
}
-/**
- * Defines reference to an Azure resource.
- */
-export interface AzureResourceReference {
- /**
- * Gets the ARM resource ID of the tracked resource being referenced.
- */
- sourceArmResourceId: string;
+/** Unresolved dependencies contract. */
+export interface UnresolvedDependenciesFilter {
+ properties?: UnresolvedDependenciesFilterProperties;
}
-/**
- * Defines reference to NSG.
- */
-export interface NsgReference extends AzureResourceReference {
+export interface UnresolvedDependenciesFilterProperties {
+ /** The count of the resource. */
+ count?: number;
}
-/**
- * Defines the virtual network subnets resource settings.
- */
+/** Defines the virtual network subnets resource settings. */
export interface SubnetResourceSettings {
- /**
- * Gets or sets the Subnet name.
- */
+ /** Gets or sets the Subnet name. */
name?: string;
- /**
- * Gets or sets address prefix for the subnet.
- */
+ /** Gets or sets address prefix for the subnet. */
addressPrefix?: string;
+ /** Defines reference to NSG. */
networkSecurityGroup?: NsgReference;
}
-/**
- * Defines the virtual network resource settings.
- */
-export interface VirtualNetworkResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Network/virtualNetworks";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
- /**
- * Gets or sets a value indicating whether gets or sets whether the
- * DDOS protection should be switched on.
- */
- enableDdosProtection?: boolean;
- /**
- * Gets or sets the address prefixes for the virtual network.
- */
- addressSpace?: string[];
- /**
- * Gets or sets DHCPOptions that contains an array of DNS servers available to VMs
- * deployed in the virtual network.
- */
- dnsServers?: string[];
- /**
- * Gets or sets List of subnets in a VirtualNetwork.
- */
- subnets?: SubnetResourceSettings[];
-}
-
-/**
- * Defines reference to a proxy resource.
- */
-export interface ProxyResourceReference extends AzureResourceReference {
- /**
- * Gets the name of the proxy resource on the target side.
- */
- name?: string;
-}
-
-/**
- * Defines reference to subnet.
- */
-export interface SubnetReference extends ProxyResourceReference {
-}
-
-/**
- * Defines reference to load balancer backend address pools.
- */
-export interface LoadBalancerBackendAddressPoolReference extends ProxyResourceReference {
-}
-
-/**
- * Defines reference to load balancer NAT rules.
- */
-export interface LoadBalancerNatRuleReference extends ProxyResourceReference {
-}
-
-/**
- * Defines reference to a public IP.
- */
-export interface PublicIpReference extends AzureResourceReference {
+/** Defines reference to an Azure resource. */
+export interface AzureResourceReference {
+ /** Gets the ARM resource ID of the tracked resource being referenced. */
+ sourceArmResourceId: string;
}
-/**
- * Defines NIC IP configuration properties.
- */
+/** Defines NIC IP configuration properties. */
export interface NicIpConfigurationResourceSettings {
- /**
- * Gets or sets the IP configuration name.
- */
+ /** Gets or sets the IP configuration name. */
name?: string;
- /**
- * Gets or sets the private IP address of the network interface IP Configuration.
- */
+ /** Gets or sets the private IP address of the network interface IP Configuration. */
privateIpAddress?: string;
- /**
- * Gets or sets the private IP address allocation method.
- */
+ /** Gets or sets the private IP address allocation method. */
privateIpAllocationMethod?: string;
+ /** Defines reference to subnet. */
subnet?: SubnetReference;
- /**
- * Gets or sets a value indicating whether this IP configuration is the primary.
- */
+ /** Gets or sets a value indicating whether this IP configuration is the primary. */
primary?: boolean;
- /**
- * Gets or sets the references of the load balancer backend address pools.
- */
+ /** Gets or sets the references of the load balancer backend address pools. */
loadBalancerBackendAddressPools?: LoadBalancerBackendAddressPoolReference[];
- /**
- * Gets or sets the references of the load balancer NAT rules.
- */
+ /** Gets or sets the references of the load balancer NAT rules. */
loadBalancerNatRules?: LoadBalancerNatRuleReference[];
+ /** Defines reference to a public IP. */
publicIp?: PublicIpReference;
}
-/**
- * Defines the network interface resource settings.
- */
-export interface NetworkInterfaceResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Network/networkInterfaces";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
- /**
- * Gets or sets the IP configurations of the NIC.
- */
- ipConfigurations?: NicIpConfigurationResourceSettings[];
- /**
- * Gets or sets a value indicating whether accelerated networking is enabled.
- */
- enableAcceleratedNetworking?: boolean;
-}
-
-/**
- * Security Rule data model for Network Security Groups.
- */
+/** Security Rule data model for Network Security Groups. */
export interface NsgSecurityRule {
- /**
- * Gets or sets the Security rule name.
- */
+ /** Gets or sets the Security rule name. */
name?: string;
/**
* Gets or sets whether network traffic is allowed or denied.
* Possible values are “Allow” and “Deny”.
*/
access?: string;
- /**
- * Gets or sets a description for this rule. Restricted to 140 chars.
- */
+ /** Gets or sets a description for this rule. Restricted to 140 chars. */
description?: string;
/**
* Gets or sets destination address prefix. CIDR or source IP range.
- * A “*” can also be used to match all source IPs. Default tags such
+ * A “*” can also be used to match all source IPs. Default tags such
* as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used.
*/
destinationAddressPrefix?: string;
@@ -876,9 +749,7 @@ export interface NsgSecurityRule {
* The lower the priority number, the higher the priority of the rule.
*/
priority?: number;
- /**
- * Gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(*).
- */
+ /** Gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(*). */
protocol?: string;
/**
* Gets or sets source address prefix. CIDR or source IP range. A
@@ -894,1269 +765,677 @@ export interface NsgSecurityRule {
sourcePortRange?: string;
}
-/**
- * Defines the NSG resource settings.
- */
-export interface NetworkSecurityGroupResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Network/networkSecurityGroups";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
- /**
- * Gets or sets Security rules of network security group.
- */
- securityRules?: NsgSecurityRule[];
-}
-
-/**
- * Defines load balancer frontend IP configuration properties.
- */
+/** Defines load balancer frontend IP configuration properties. */
export interface LBFrontendIPConfigurationResourceSettings {
- /**
- * Gets or sets the frontend IP configuration name.
- */
+ /** Gets or sets the frontend IP configuration name. */
name?: string;
/**
* Gets or sets the IP address of the Load Balancer.This is only specified if a specific
* private IP address shall be allocated from the subnet specified in subnetRef.
*/
privateIpAddress?: string;
- /**
- * Gets or sets PrivateIP allocation method (Static/Dynamic).
- */
+ /** Gets or sets PrivateIP allocation method (Static/Dynamic). */
privateIpAllocationMethod?: string;
+ /** Defines reference to subnet. */
subnet?: SubnetReference;
- /**
- * Gets or sets the csv list of zones.
- */
- zones?: string;
-}
-
-/**
- * Defines load balancer backend address pool properties.
- */
-export interface LBBackendAddressPoolResourceSettings {
- /**
- * Gets or sets the backend address pool name.
- */
- name?: string;
-}
-
-/**
- * Defines the load balancer resource settings.
- */
-export interface LoadBalancerResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Network/loadBalancers";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
- /**
- * Gets or sets load balancer sku (Basic/Standard).
- */
- sku?: string;
- /**
- * Gets or sets the frontend IP configurations of the load balancer.
- */
- frontendIPConfigurations?: LBFrontendIPConfigurationResourceSettings[];
- /**
- * Gets or sets the backend address pools of the load balancer.
- */
- backendAddressPools?: LBBackendAddressPoolResourceSettings[];
- /**
- * Gets or sets the csv list of zones common for all frontend IP configurations. Note this is
- * given
- * precedence only if frontend IP configurations settings are not present.
- */
- zones?: string;
-}
-
-/**
- * Defines the SQL Server resource settings.
- */
-export interface SqlServerResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Sql/servers";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
-}
-
-/**
- * Defines the Sql ElasticPool resource settings.
- */
-export interface SqlElasticPoolResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Sql/servers/elasticPools";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
- /**
- * Possible values include: 'Enable', 'Disable'
- */
- zoneRedundant?: ZoneRedundant;
-}
-
-/**
- * Defines the Sql Database resource settings.
- */
-export interface SqlDatabaseResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Sql/servers/databases";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
- /**
- * Possible values include: 'Enable', 'Disable'
- */
- zoneRedundant?: ZoneRedundant;
-}
-
-/**
- * Defines the resource group resource settings.
- */
-export interface ResourceGroupResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "resourceGroups";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
-}
-
-/**
- * Defines the public IP address resource settings.
- */
-export interface PublicIPAddressResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Network/publicIPAddresses";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
- /**
- * Gets or sets the domain name label.
- */
- domainNameLabel?: string;
- /**
- * Gets or sets the fully qualified domain name.
- */
- fqdn?: string;
- /**
- * Gets or sets public IP allocation method.
- */
- publicIpAllocationMethod?: string;
- /**
- * Gets or sets public IP sku.
- */
- sku?: string;
- /**
- * Gets or sets public IP zones.
- */
+ /** Gets or sets the csv list of zones. */
zones?: string;
}
-/**
- * Defines the key vault resource settings.
- */
-export interface KeyVaultResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.KeyVault/vaults";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
-}
-
-/**
- * Defines the disk encryption set resource settings.
- */
-export interface DiskEncryptionSetResourceSettings {
- /**
- * Polymorphic Discriminator
- */
- resourceType: "Microsoft.Compute/diskEncryptionSets";
- /**
- * Gets or sets the target Resource name.
- */
- targetResourceName: string;
-}
-
-/**
- * The RP custom operation error info.
- */
-export interface AffectedMoveResource {
- /**
- * The affected move resource id.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * The affected move resource source id.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly sourceId?: string;
- /**
- * The affected move resources.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly moveResources?: AffectedMoveResource[];
-}
-
-/**
- * The move custom error info.
- */
-export interface MoveErrorInfo {
- /**
- * The affected move resources.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly moveResources?: AffectedMoveResource[];
-}
-
-/**
- * The operation error info.
- */
-export interface OperationErrorAdditionalInfo {
- /**
- * The error type.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
- /**
- * The operation error info.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly info?: MoveErrorInfo;
-}
-
-/**
- * Class for operation status errors.
- */
-export interface OperationStatusError {
- /**
- * 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 details.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly details?: OperationStatusError[];
- /**
- * The additional info.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly additionalInfo?: OperationErrorAdditionalInfo[];
-}
-
-/**
- * Operation status REST resource.
- */
-export interface OperationStatus {
- /**
- * Resource Id.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * Operation name.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * Status of the operation. ARM expects the terminal status to be one of Succeeded/ Failed/
- * Canceled. All other values imply that the operation is still running.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly status?: string;
- /**
- * Start time.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly startTime?: string;
- /**
- * End time.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly endTime?: string;
- /**
- * Error stating all error details for the operation.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly error?: OperationStatusError;
- /**
- * Custom data.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly properties?: any;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsCreateOptionalParams extends msRest.RequestOptionsBase {
- body?: MoveCollection;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsUpdateOptionalParams extends msRest.RequestOptionsBase {
- body?: UpdateMoveCollectionRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsPrepareOptionalParams extends msRest.RequestOptionsBase {
- body?: PrepareRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsInitiateMoveOptionalParams extends msRest.RequestOptionsBase {
- body?: ResourceMoveRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsCommitOptionalParams extends msRest.RequestOptionsBase {
- body?: CommitRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsDiscardOptionalParams extends msRest.RequestOptionsBase {
- body?: DiscardRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsBulkRemoveOptionalParams extends msRest.RequestOptionsBase {
- body?: BulkRemoveRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsBeginPrepareOptionalParams extends msRest.RequestOptionsBase {
- body?: PrepareRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsBeginInitiateMoveOptionalParams extends msRest.RequestOptionsBase {
- body?: ResourceMoveRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsBeginCommitOptionalParams extends msRest.RequestOptionsBase {
- body?: CommitRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsBeginDiscardOptionalParams extends msRest.RequestOptionsBase {
- body?: DiscardRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveCollectionsBeginBulkRemoveOptionalParams extends msRest.RequestOptionsBase {
- body?: BulkRemoveRequest;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveResourcesListOptionalParams extends msRest.RequestOptionsBase {
- /**
- * The filter to apply on the operation. For example, you can use
- * $filter=Properties/ProvisioningState eq 'Succeeded'.
- */
- filter?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveResourcesCreateOptionalParams extends msRest.RequestOptionsBase {
- properties?: MoveResourceProperties;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveResourcesBeginCreateOptionalParams extends msRest.RequestOptionsBase {
- properties?: MoveResourceProperties;
-}
-
-/**
- * Optional Parameters.
- */
-export interface MoveResourcesListNextOptionalParams extends msRest.RequestOptionsBase {
- /**
- * The filter to apply on the operation. For example, you can use
- * $filter=Properties/ProvisioningState eq 'Succeeded'.
- */
- filter?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface UnresolvedDependenciesGetOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Defines the dependency level. Possible values include: 'Direct', 'Descendant'
- */
- dependencyLevel?: DependencyLevel;
- /**
- * OData order by query option. For example, you can use $orderby=Count desc.
- */
- orderby?: string;
- /**
- * The filter to apply on the operation. For example, $apply=filter(count eq 2).
- */
- filter?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface UnresolvedDependenciesGetNextOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Defines the dependency level. Possible values include: 'Direct', 'Descendant'
- */
- dependencyLevel?: DependencyLevel;
- /**
- * OData order by query option. For example, you can use $orderby=Count desc.
- */
- orderby?: string;
- /**
- * The filter to apply on the operation. For example, $apply=filter(count eq 2).
- */
- filter?: string;
-}
-
-/**
- * An interface representing ResourceMoverServiceAPIOptions.
- */
-export interface ResourceMoverServiceAPIOptions extends AzureServiceClientOptions {
- baseUri?: string;
-}
-
-/**
- * @interface
- * Defines the collection of move collections.
- * @extends Array
- */
-export interface MoveCollectionResultList extends Array {
- /**
- * Gets the value of next link.
- */
- nextLink?: string;
-}
-
-/**
- * @interface
- * Defines the collection of move resources.
- * @extends Array
- */
-export interface MoveResourceCollection extends Array {
- /**
- * Gets the value of next link.
- */
- nextLink?: string;
- /**
- * Gets or sets the list of summary items and the field on which summary is done.
- */
- summaryCollection?: SummaryCollection;
- /**
- * Gets the total count.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly totalCount?: number;
-}
-
-/**
- * @interface
- * Unresolved dependency collection.
- * @extends Array
- */
-export interface UnresolvedDependencyCollection extends Array {
- /**
- * Gets or sets the value of next link.
- */
- nextLink?: string;
- /**
- * Gets or sets the list of summary items and the field on which summary is done.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly summaryCollection?: SummaryCollection;
- /**
- * Gets the total count.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly totalCount?: number;
-}
-
-/**
- * Defines values for ResourceIdentityType.
- * Possible values include: 'None', 'SystemAssigned', 'UserAssigned'
- * @readonly
- * @enum {string}
- */
-export type ResourceIdentityType = 'None' | 'SystemAssigned' | 'UserAssigned';
-
-/**
- * Defines values for MoveState.
- * Possible values include: 'AssignmentPending', 'PreparePending', 'PrepareInProgress',
- * 'PrepareFailed', 'MovePending', 'MoveInProgress', 'MoveFailed', 'DiscardInProgress',
- * 'DiscardFailed', 'CommitPending', 'CommitInProgress', 'CommitFailed', 'Committed',
- * 'DeleteSourcePending', 'ResourceMoveCompleted'
- * @readonly
- * @enum {string}
- */
-export type MoveState = 'AssignmentPending' | 'PreparePending' | 'PrepareInProgress' | 'PrepareFailed' | 'MovePending' | 'MoveInProgress' | 'MoveFailed' | 'DiscardInProgress' | 'DiscardFailed' | 'CommitPending' | 'CommitInProgress' | 'CommitFailed' | 'Committed' | 'DeleteSourcePending' | 'ResourceMoveCompleted';
-
-/**
- * Defines values for MoveResourceInputType.
- * Possible values include: 'MoveResourceId', 'MoveResourceSourceId'
- * @readonly
- * @enum {string}
- */
-export type MoveResourceInputType = 'MoveResourceId' | 'MoveResourceSourceId';
-
-/**
- * Defines values for ProvisioningState.
- * Possible values include: 'Succeeded', 'Updating', 'Creating', 'Failed'
- * @readonly
- * @enum {string}
- */
-export type ProvisioningState = 'Succeeded' | 'Updating' | 'Creating' | 'Failed';
-
-/**
- * Defines values for JobName.
- * Possible values include: 'InitialSync'
- * @readonly
- * @enum {string}
- */
-export type JobName = 'InitialSync';
-
-/**
- * Defines values for ResolutionType.
- * Possible values include: 'Manual', 'Automatic'
- * @readonly
- * @enum {string}
- */
-export type ResolutionType = 'Manual' | 'Automatic';
-
-/**
- * Defines values for DependencyType.
- * Possible values include: 'RequiredForPrepare', 'RequiredForMove'
- * @readonly
- * @enum {string}
- */
-export type DependencyType = 'RequiredForPrepare' | 'RequiredForMove';
-
-/**
- * Defines values for TargetAvailabilityZone.
- * Possible values include: '1', '2', '3', 'NA'
- * @readonly
- * @enum {string}
- */
-export type TargetAvailabilityZone = '1' | '2' | '3' | 'NA';
+/** Defines load balancer backend address pool properties. */
+export interface LBBackendAddressPoolResourceSettings {
+ /** Gets or sets the backend address pool name. */
+ name?: string;
+}
-/**
- * Defines values for ZoneRedundant.
- * Possible values include: 'Enable', 'Disable'
- * @readonly
- * @enum {string}
- */
-export type ZoneRedundant = 'Enable' | 'Disable';
+/** Defines the move collection errors. */
+export type MoveCollectionPropertiesErrors = MoveResourceError & {};
-/**
- * Defines values for DependencyLevel.
- * Possible values include: 'Direct', 'Descendant'
- * @readonly
- * @enum {string}
- */
-export type DependencyLevel = 'Direct' | 'Descendant';
+/** Defines the move resource errors. */
+export type MoveResourcePropertiesErrors = MoveResourceError & {};
-/**
- * Contains response data for the create operation.
- */
-export type MoveCollectionsCreateResponse = MoveCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Gets or sets the virtual machine resource settings. */
+export type VirtualMachineResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Compute/virtualMachines";
+ /** Gets or sets the Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** Gets or sets user-managed identities */
+ userManagedIdentities?: string[];
+ /** Gets or sets the target availability zone. */
+ targetAvailabilityZone?: TargetAvailabilityZone;
+ /** Gets or sets the target virtual machine size. */
+ targetVmSize?: string;
+ /** Gets or sets the target availability set id for virtual machines not in an availability set at source. */
+ targetAvailabilitySetId?: string;
+};
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveCollection;
- };
+/** Gets or sets the availability set resource settings. */
+export type AvailabilitySetResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Compute/availabilitySets";
+ /** Gets or sets the Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** Gets or sets the target fault domain. */
+ faultDomain?: number;
+ /** Gets or sets the target update domain. */
+ updateDomain?: number;
};
-/**
- * Contains response data for the update operation.
- */
-export type MoveCollectionsUpdateResponse = MoveCollection & {
+/** Defines the virtual network resource settings. */
+export type VirtualNetworkResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Network/virtualNetworks";
+ /** Gets or sets the Resource tags. */
+ tags?: { [propertyName: string]: string };
/**
- * The underlying HTTP response.
+ * Gets or sets a value indicating whether gets or sets whether the
+ * DDOS protection should be switched on.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveCollection;
- };
-};
-
-/**
- * Contains response data for the deleteMethod operation.
- */
-export type MoveCollectionsDeleteMethodResponse = OperationStatus & {
+ enableDdosProtection?: boolean;
+ /** Gets or sets the address prefixes for the virtual network. */
+ addressSpace?: string[];
/**
- * The underlying HTTP response.
+ * Gets or sets DHCPOptions that contains an array of DNS servers available to VMs
+ * deployed in the virtual network.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
+ dnsServers?: string[];
+ /** Gets or sets List of subnets in a VirtualNetwork. */
+ subnets?: SubnetResourceSettings[];
};
-/**
- * Contains response data for the get operation.
- */
-export type MoveCollectionsGetResponse = MoveCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Defines the network interface resource settings. */
+export type NetworkInterfaceResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Network/networkInterfaces";
+ /** Gets or sets the Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** Gets or sets the IP configurations of the NIC. */
+ ipConfigurations?: NicIpConfigurationResourceSettings[];
+ /** Gets or sets a value indicating whether accelerated networking is enabled. */
+ enableAcceleratedNetworking?: boolean;
+};
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveCollection;
- };
+/** Defines the NSG resource settings. */
+export type NetworkSecurityGroupResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Network/networkSecurityGroups";
+ /** Gets or sets the Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** Gets or sets Security rules of network security group. */
+ securityRules?: NsgSecurityRule[];
};
-/**
- * Contains response data for the prepare operation.
- */
-export type MoveCollectionsPrepareResponse = OperationStatus & {
+/** Defines the load balancer resource settings. */
+export type LoadBalancerResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Network/loadBalancers";
+ /** Gets or sets the Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** Gets or sets load balancer sku (Basic/Standard). */
+ sku?: string;
+ /** Gets or sets the frontend IP configurations of the load balancer. */
+ frontendIPConfigurations?: LBFrontendIPConfigurationResourceSettings[];
+ /** Gets or sets the backend address pools of the load balancer. */
+ backendAddressPools?: LBBackendAddressPoolResourceSettings[];
/**
- * The underlying HTTP response.
+ * Gets or sets the csv list of zones common for all frontend IP configurations. Note this is given
+ * precedence only if frontend IP configurations settings are not present.
*/
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+ zones?: string;
+};
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
+/** Defines the SQL Server resource settings. */
+export type SqlServerResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Sql/servers";
};
-/**
- * Contains response data for the initiateMove operation.
- */
-export type MoveCollectionsInitiateMoveResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Defines the Sql ElasticPool resource settings. */
+export type SqlElasticPoolResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Sql/servers/elasticPools";
+ /** Gets or sets the Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** Defines the zone redundant resource setting. */
+ zoneRedundant?: ZoneRedundant;
+};
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
+/** Defines the Sql Database resource settings. */
+export type SqlDatabaseResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Sql/servers/databases";
+ /** Gets or sets the Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** Defines the zone redundant resource setting. */
+ zoneRedundant?: ZoneRedundant;
};
-/**
- * Contains response data for the commit operation.
- */
-export type MoveCollectionsCommitResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Defines the resource group resource settings. */
+export type ResourceGroupResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "resourceGroups";
+};
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
+/** Defines the public IP address resource settings. */
+export type PublicIPAddressResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Network/publicIPAddresses";
+ /** Gets or sets the Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** Gets or sets the domain name label. */
+ domainNameLabel?: string;
+ /** Gets or sets the fully qualified domain name. */
+ fqdn?: string;
+ /** Gets or sets public IP allocation method. */
+ publicIpAllocationMethod?: string;
+ /** Gets or sets public IP sku. */
+ sku?: string;
+ /** Gets or sets public IP zones. */
+ zones?: string;
};
-/**
- * Contains response data for the discard operation.
- */
-export type MoveCollectionsDiscardResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Defines the key vault resource settings. */
+export type KeyVaultResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.KeyVault/vaults";
+};
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
+/** Defines the disk encryption set resource settings. */
+export type DiskEncryptionSetResourceSettings = ResourceSettings & {
+ /** Polymorphic discriminator, which specifies the different types this object can be */
+ resourceType: "Microsoft.Compute/diskEncryptionSets";
};
-/**
- * Contains response data for the resolveDependencies operation.
- */
-export type MoveCollectionsResolveDependenciesResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Defines the move resource status. */
+export type MoveResourcePropertiesMoveStatus = MoveResourceStatus & {};
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
+/** Defines reference to NSG. */
+export type NsgReference = AzureResourceReference & {};
+
+/** Defines reference to a proxy resource. */
+export type ProxyResourceReference = AzureResourceReference & {
+ /** Gets the name of the proxy resource on the target side. */
+ name?: string;
};
-/**
- * Contains response data for the bulkRemove operation.
- */
-export type MoveCollectionsBulkRemoveResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Defines reference to a public IP. */
+export type PublicIpReference = AzureResourceReference & {};
+
+/** Defines reference to subnet. */
+export type SubnetReference = ProxyResourceReference & {};
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Defines reference to load balancer backend address pools. */
+export type LoadBalancerBackendAddressPoolReference = ProxyResourceReference & {};
-/**
- * Contains response data for the listMoveCollectionsBySubscription operation.
+/** Defines reference to load balancer NAT rules. */
+export type LoadBalancerNatRuleReference = ProxyResourceReference & {};
+
+/** Known values of {@link ResourceIdentityType} that the service accepts. */
+export enum KnownResourceIdentityType {
+ None = "None",
+ SystemAssigned = "SystemAssigned",
+ UserAssigned = "UserAssigned"
+}
+
+/**
+ * Defines values for ResourceIdentityType. \
+ * {@link KnownResourceIdentityType} can be used interchangeably with ResourceIdentityType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **None** \
+ * **SystemAssigned** \
+ * **UserAssigned**
+ */
+export type ResourceIdentityType = string;
+
+/** Known values of {@link ProvisioningState} that the service accepts. */
+export enum KnownProvisioningState {
+ Succeeded = "Succeeded",
+ Updating = "Updating",
+ Creating = "Creating",
+ Failed = "Failed"
+}
+
+/**
+ * Defines values for ProvisioningState. \
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Succeeded** \
+ * **Updating** \
+ * **Creating** \
+ * **Failed**
*/
-export type MoveCollectionsListMoveCollectionsBySubscriptionResponse = MoveCollectionResultList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+export type ProvisioningState = string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveCollectionResultList;
- };
-};
+/** Known values of {@link CreatedByType} that the service accepts. */
+export enum KnownCreatedByType {
+ User = "User",
+ Application = "Application",
+ ManagedIdentity = "ManagedIdentity",
+ Key = "Key"
+}
/**
- * Contains response data for the listMoveCollectionsByResourceGroup operation.
+ * Defines values for CreatedByType. \
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **User** \
+ * **Application** \
+ * **ManagedIdentity** \
+ * **Key**
*/
-export type MoveCollectionsListMoveCollectionsByResourceGroupResponse = MoveCollectionResultList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+export type CreatedByType = string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveCollectionResultList;
- };
-};
+/** Known values of {@link MoveResourceInputType} that the service accepts. */
+export enum KnownMoveResourceInputType {
+ MoveResourceId = "MoveResourceId",
+ MoveResourceSourceId = "MoveResourceSourceId"
+}
/**
- * Contains response data for the listRequiredFor operation.
+ * Defines values for MoveResourceInputType. \
+ * {@link KnownMoveResourceInputType} can be used interchangeably with MoveResourceInputType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **MoveResourceId** \
+ * **MoveResourceSourceId**
*/
-export type MoveCollectionsListRequiredForResponse = RequiredForResourcesCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+export type MoveResourceInputType = string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: RequiredForResourcesCollection;
- };
-};
+/** Known values of {@link MoveState} that the service accepts. */
+export enum KnownMoveState {
+ AssignmentPending = "AssignmentPending",
+ PreparePending = "PreparePending",
+ PrepareInProgress = "PrepareInProgress",
+ PrepareFailed = "PrepareFailed",
+ MovePending = "MovePending",
+ MoveInProgress = "MoveInProgress",
+ MoveFailed = "MoveFailed",
+ DiscardInProgress = "DiscardInProgress",
+ DiscardFailed = "DiscardFailed",
+ CommitPending = "CommitPending",
+ CommitInProgress = "CommitInProgress",
+ CommitFailed = "CommitFailed",
+ Committed = "Committed",
+ DeleteSourcePending = "DeleteSourcePending",
+ ResourceMoveCompleted = "ResourceMoveCompleted"
+}
/**
- * Contains response data for the beginDeleteMethod operation.
+ * Defines values for MoveState. \
+ * {@link KnownMoveState} can be used interchangeably with MoveState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **AssignmentPending** \
+ * **PreparePending** \
+ * **PrepareInProgress** \
+ * **PrepareFailed** \
+ * **MovePending** \
+ * **MoveInProgress** \
+ * **MoveFailed** \
+ * **DiscardInProgress** \
+ * **DiscardFailed** \
+ * **CommitPending** \
+ * **CommitInProgress** \
+ * **CommitFailed** \
+ * **Committed** \
+ * **DeleteSourcePending** \
+ * **ResourceMoveCompleted**
*/
-export type MoveCollectionsBeginDeleteMethodResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+export type MoveState = string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Known values of {@link JobName} that the service accepts. */
+export enum KnownJobName {
+ InitialSync = "InitialSync"
+}
/**
- * Contains response data for the beginPrepare operation.
+ * Defines values for JobName. \
+ * {@link KnownJobName} can be used interchangeably with JobName,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **InitialSync**
*/
-export type MoveCollectionsBeginPrepareResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+export type JobName = string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Known values of {@link ResolutionType} that the service accepts. */
+export enum KnownResolutionType {
+ Manual = "Manual",
+ Automatic = "Automatic"
+}
/**
- * Contains response data for the beginInitiateMove operation.
+ * Defines values for ResolutionType. \
+ * {@link KnownResolutionType} can be used interchangeably with ResolutionType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Manual** \
+ * **Automatic**
*/
-export type MoveCollectionsBeginInitiateMoveResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+export type ResolutionType = string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Known values of {@link DependencyType} that the service accepts. */
+export enum KnownDependencyType {
+ RequiredForPrepare = "RequiredForPrepare",
+ RequiredForMove = "RequiredForMove"
+}
/**
- * Contains response data for the beginCommit operation.
+ * Defines values for DependencyType. \
+ * {@link KnownDependencyType} can be used interchangeably with DependencyType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **RequiredForPrepare** \
+ * **RequiredForMove**
*/
-export type MoveCollectionsBeginCommitResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+export type DependencyType = string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Known values of {@link DependencyLevel} that the service accepts. */
+export enum KnownDependencyLevel {
+ Direct = "Direct",
+ Descendant = "Descendant"
+}
/**
- * Contains response data for the beginDiscard operation.
+ * Defines values for DependencyLevel. \
+ * {@link KnownDependencyLevel} can be used interchangeably with DependencyLevel,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Direct** \
+ * **Descendant**
*/
-export type MoveCollectionsBeginDiscardResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+export type DependencyLevel = string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Known values of {@link TargetAvailabilityZone} that the service accepts. */
+export enum KnownTargetAvailabilityZone {
+ One = "1",
+ Two = "2",
+ Three = "3",
+ NA = "NA"
+}
/**
- * Contains response data for the beginResolveDependencies operation.
+ * Defines values for TargetAvailabilityZone. \
+ * {@link KnownTargetAvailabilityZone} can be used interchangeably with TargetAvailabilityZone,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **1** \
+ * **2** \
+ * **3** \
+ * **NA**
*/
-export type MoveCollectionsBeginResolveDependenciesResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+export type TargetAvailabilityZone = string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Known values of {@link ZoneRedundant} that the service accepts. */
+export enum KnownZoneRedundant {
+ Enable = "Enable",
+ Disable = "Disable"
+}
/**
- * Contains response data for the beginBulkRemove operation.
+ * Defines values for ZoneRedundant. \
+ * {@link KnownZoneRedundant} can be used interchangeably with ZoneRedundant,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Enable** \
+ * **Disable**
*/
-export type MoveCollectionsBeginBulkRemoveResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+export type ZoneRedundant = string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsCreateOptionalParams
+ extends coreClient.OperationOptions {
+ /** Define the move collection. */
+ body?: MoveCollection;
+}
-/**
- * Contains response data for the listMoveCollectionsBySubscriptionNext operation.
- */
-export type MoveCollectionsListMoveCollectionsBySubscriptionNextResponse = MoveCollectionResultList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the create operation. */
+export type MoveCollectionsCreateResponse = MoveCollection;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveCollectionResultList;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsUpdateOptionalParams
+ extends coreClient.OperationOptions {
+ /** Defines the request body for updating move collection. */
+ body?: UpdateMoveCollectionRequest;
+}
-/**
- * Contains response data for the listMoveCollectionsByResourceGroupNext operation.
- */
-export type MoveCollectionsListMoveCollectionsByResourceGroupNextResponse = MoveCollectionResultList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the update operation. */
+export type MoveCollectionsUpdateResponse = MoveCollection;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveCollectionResultList;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsDeleteOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the list operation.
- */
-export type MoveResourcesListResponse = MoveResourceCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the delete operation. */
+export type MoveCollectionsDeleteResponse = OperationStatus;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveResourceCollection;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the create operation.
- */
-export type MoveResourcesCreateResponse = MoveResource & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the get operation. */
+export type MoveCollectionsGetResponse = MoveCollection;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveResource;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsPrepareOptionalParams
+ extends coreClient.OperationOptions {
+ /** Defines the request body for initiate prepare operation. */
+ body?: PrepareRequest;
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the deleteMethod operation.
- */
-export type MoveResourcesDeleteMethodResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the prepare operation. */
+export type MoveCollectionsPrepareResponse = OperationStatus;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsInitiateMoveOptionalParams
+ extends coreClient.OperationOptions {
+ /** Defines the request body for resource move operation. */
+ body?: ResourceMoveRequest;
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the get operation.
- */
-export type MoveResourcesGetResponse = MoveResource & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the initiateMove operation. */
+export type MoveCollectionsInitiateMoveResponse = OperationStatus;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveResource;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsCommitOptionalParams
+ extends coreClient.OperationOptions {
+ /** Defines the request body for commit operation. */
+ body?: CommitRequest;
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the beginCreate operation.
- */
-export type MoveResourcesBeginCreateResponse = MoveResource & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the commit operation. */
+export type MoveCollectionsCommitResponse = OperationStatus;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveResource;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsDiscardOptionalParams
+ extends coreClient.OperationOptions {
+ /** Defines the request body for discard operation. */
+ body?: DiscardRequest;
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the beginDeleteMethod operation.
- */
-export type MoveResourcesBeginDeleteMethodResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the discard operation. */
+export type MoveCollectionsDiscardResponse = OperationStatus;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsResolveDependenciesOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the listNext operation.
- */
-export type MoveResourcesListNextResponse = MoveResourceCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the resolveDependencies operation. */
+export type MoveCollectionsResolveDependenciesResponse = OperationStatus;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MoveResourceCollection;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsBulkRemoveOptionalParams
+ extends coreClient.OperationOptions {
+ /** Defines the request body for bulk remove of move resources operation. */
+ body?: BulkRemoveRequest;
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the get operation.
- */
-export type UnresolvedDependenciesGetResponse = UnresolvedDependencyCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the bulkRemove operation. */
+export type MoveCollectionsBulkRemoveResponse = OperationStatus;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: UnresolvedDependencyCollection;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the getNext operation.
- */
-export type UnresolvedDependenciesGetNextResponse = UnresolvedDependencyCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listMoveCollectionsBySubscription operation. */
+export type MoveCollectionsListMoveCollectionsBySubscriptionResponse = MoveCollectionResultList;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: UnresolvedDependencyCollection;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the get operation.
- */
-export type OperationsDiscoveryGetResponse = OperationsDiscoveryCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the listMoveCollectionsByResourceGroup operation. */
+export type MoveCollectionsListMoveCollectionsByResourceGroupResponse = MoveCollectionResultList;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationsDiscoveryCollection;
- };
-};
+/** Optional parameters. */
+export interface MoveCollectionsListRequiredForOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listRequiredFor operation. */
+export type MoveCollectionsListRequiredForResponse = RequiredForResourcesCollection;
+
+/** Optional parameters. */
+export interface MoveCollectionsListMoveCollectionsBySubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listMoveCollectionsBySubscriptionNext operation. */
+export type MoveCollectionsListMoveCollectionsBySubscriptionNextResponse = MoveCollectionResultList;
+
+/** Optional parameters. */
+export interface MoveCollectionsListMoveCollectionsByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listMoveCollectionsByResourceGroupNext operation. */
+export type MoveCollectionsListMoveCollectionsByResourceGroupNextResponse = MoveCollectionResultList;
+
+/** Optional parameters. */
+export interface MoveResourcesListOptionalParams
+ extends coreClient.OperationOptions {
+ /** The filter to apply on the operation. For example, you can use $filter=Properties/ProvisioningState eq 'Succeeded'. */
+ filter?: string;
+}
+
+/** Contains response data for the list operation. */
+export type MoveResourcesListResponse = MoveResourceCollection;
+
+/** Optional parameters. */
+export interface MoveResourcesCreateOptionalParams
+ extends coreClient.OperationOptions {
+ /** Defines the move resource. */
+ body?: MoveResource;
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the create operation. */
+export type MoveResourcesCreateResponse = MoveResource;
+
+/** Optional parameters. */
+export interface MoveResourcesDeleteOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the delete operation. */
+export type MoveResourcesDeleteResponse = OperationStatus;
+
+/** Optional parameters. */
+export interface MoveResourcesGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type MoveResourcesGetResponse = MoveResource;
+
+/** Optional parameters. */
+export interface MoveResourcesListNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** The filter to apply on the operation. For example, you can use $filter=Properties/ProvisioningState eq 'Succeeded'. */
+ filter?: string;
+}
+
+/** Contains response data for the listNext operation. */
+export type MoveResourcesListNextResponse = MoveResourceCollection;
+
+/** Optional parameters. */
+export interface UnresolvedDependenciesGetOptionalParams
+ extends coreClient.OperationOptions {
+ /** The filter to apply on the operation. For example, $apply=filter(count eq 2). */
+ filter?: string;
+ /** Defines the dependency level. */
+ dependencyLevel?: DependencyLevel;
+ /** OData order by query option. For example, you can use $orderby=Count desc. */
+ orderby?: string;
+}
+
+/** Contains response data for the get operation. */
+export type UnresolvedDependenciesGetResponse = UnresolvedDependencyCollection;
+
+/** Optional parameters. */
+export interface UnresolvedDependenciesGetNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** The filter to apply on the operation. For example, $apply=filter(count eq 2). */
+ filter?: string;
+ /** Defines the dependency level. */
+ dependencyLevel?: DependencyLevel;
+ /** OData order by query option. For example, you can use $orderby=Count desc. */
+ orderby?: string;
+}
+
+/** Contains response data for the getNext operation. */
+export type UnresolvedDependenciesGetNextResponse = UnresolvedDependencyCollection;
+
+/** Optional parameters. */
+export interface OperationsDiscoveryGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type OperationsDiscoveryGetResponse = OperationsDiscoveryCollection;
+
+/** Optional parameters. */
+export interface ResourceMoverServiceAPIOptionalParams
+ extends coreClient.ServiceClientOptions {
+ /** server parameter */
+ $host?: string;
+ /** Api Version */
+ apiVersion?: string;
+ /** Overrides client endpoint. */
+ endpoint?: string;
+}
diff --git a/sdk/resourcemover/arm-resourcemover/src/models/mappers.ts b/sdk/resourcemover/arm-resourcemover/src/models/mappers.ts
index 7af8a09e85d2..36761d33efe2 100644
--- a/sdk/resourcemover/arm-resourcemover/src/models/mappers.ts
+++ b/sdk/resourcemover/arm-resourcemover/src/models/mappers.ts
@@ -6,14 +6,80 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export const CloudError = CloudErrorMapper;
-export const BaseResource = BaseResourceMapper;
+export const MoveCollection: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MoveCollection",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ etag: {
+ serializedName: "etag",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ location: {
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ },
+ identity: {
+ serializedName: "identity",
+ type: {
+ name: "Composite",
+ className: "Identity"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "MoveCollectionProperties"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ }
+ }
+ }
+};
-export const Identity: msRest.CompositeMapper = {
- serializedName: "Identity",
+export const Identity: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "Identity",
@@ -40,59 +106,88 @@ export const Identity: msRest.CompositeMapper = {
}
};
-export const JobStatus: msRest.CompositeMapper = {
- serializedName: "JobStatus",
+export const MoveCollectionProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "JobStatus",
+ className: "MoveCollectionProperties",
modelProperties: {
- jobName: {
- serializedName: "jobName",
+ sourceRegion: {
+ serializedName: "sourceRegion",
+ required: true,
type: {
name: "String"
}
},
- jobProgress: {
+ targetRegion: {
+ serializedName: "targetRegion",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ serializedName: "provisioningState",
readOnly: true,
- serializedName: "jobProgress",
type: {
name: "String"
}
+ },
+ errors: {
+ serializedName: "errors",
+ type: {
+ name: "Composite",
+ className: "MoveCollectionPropertiesErrors"
+ }
+ }
+ }
+ }
+};
+
+export const MoveResourceError: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MoveResourceError",
+ modelProperties: {
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "MoveResourceErrorBody"
+ }
}
}
}
};
-export const MoveResourceErrorBody: msRest.CompositeMapper = {
- serializedName: "MoveResourceErrorBody",
+export const MoveResourceErrorBody: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "MoveResourceErrorBody",
modelProperties: {
code: {
- readOnly: true,
serializedName: "code",
+ readOnly: true,
type: {
name: "String"
}
},
message: {
- readOnly: true,
serializedName: "message",
+ readOnly: true,
type: {
name: "String"
}
},
target: {
- readOnly: true,
serializedName: "target",
+ readOnly: true,
type: {
name: "String"
}
},
details: {
- readOnly: true,
serializedName: "details",
+ readOnly: true,
type: {
name: "Sequence",
element: {
@@ -107,363 +202,409 @@ export const MoveResourceErrorBody: msRest.CompositeMapper = {
}
};
-export const MoveResourceError: msRest.CompositeMapper = {
- serializedName: "MoveResourceError",
+export const SystemData: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveResourceError",
+ className: "SystemData",
modelProperties: {
- properties: {
- serializedName: "properties",
+ createdBy: {
+ serializedName: "createdBy",
type: {
- name: "Composite",
- className: "MoveResourceErrorBody"
+ 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 MoveResourceStatus: msRest.CompositeMapper = {
- serializedName: "MoveResourceStatus",
+export const CloudError: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveResourceStatus",
+ className: "CloudError",
modelProperties: {
- moveState: {
- serializedName: "moveState",
- type: {
- name: "String"
- }
- },
- jobStatus: {
- serializedName: "jobStatus",
- type: {
- name: "Composite",
- className: "JobStatus"
- }
- },
- errors: {
- serializedName: "errors",
+ error: {
+ serializedName: "error",
type: {
name: "Composite",
- className: "MoveResourceError"
+ className: "CloudErrorBody"
}
}
}
}
};
-export const ManualResolutionProperties: msRest.CompositeMapper = {
- serializedName: "ManualResolutionProperties",
+export const CloudErrorBody: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ManualResolutionProperties",
+ className: "CloudErrorBody",
modelProperties: {
- targetId: {
- serializedName: "targetId",
+ code: {
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ },
+ target: {
+ serializedName: "target",
type: {
name: "String"
}
+ },
+ details: {
+ serializedName: "details",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "CloudErrorBody"
+ }
+ }
+ }
}
}
}
};
-export const AutomaticResolutionProperties: msRest.CompositeMapper = {
- serializedName: "AutomaticResolutionProperties",
+export const UpdateMoveCollectionRequest: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AutomaticResolutionProperties",
+ className: "UpdateMoveCollectionRequest",
modelProperties: {
- moveResourceId: {
- serializedName: "moveResourceId",
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ identity: {
+ serializedName: "identity",
+ type: {
+ name: "Composite",
+ className: "Identity"
}
}
}
}
};
-export const MoveResourceDependency: msRest.CompositeMapper = {
- serializedName: "MoveResourceDependency",
+export const OperationStatus: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveResourceDependency",
+ className: "OperationStatus",
modelProperties: {
id: {
serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
- resolutionStatus: {
- serializedName: "resolutionStatus",
+ name: {
+ serializedName: "name",
+ readOnly: true,
type: {
name: "String"
}
},
- resolutionType: {
- serializedName: "resolutionType",
+ status: {
+ serializedName: "status",
+ readOnly: true,
type: {
name: "String"
}
},
- dependencyType: {
- serializedName: "dependencyType",
+ startTime: {
+ serializedName: "startTime",
+ readOnly: true,
type: {
name: "String"
}
},
- manualResolution: {
- serializedName: "manualResolution",
+ endTime: {
+ serializedName: "endTime",
+ readOnly: true,
type: {
- name: "Composite",
- className: "ManualResolutionProperties"
+ name: "String"
}
},
- automaticResolution: {
- serializedName: "automaticResolution",
+ error: {
+ serializedName: "error",
type: {
name: "Composite",
- className: "AutomaticResolutionProperties"
+ className: "OperationStatusError"
}
},
- isOptional: {
- serializedName: "isOptional",
+ properties: {
+ serializedName: "properties",
+ readOnly: true,
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "any" } }
}
}
}
}
};
-export const MoveResourceDependencyOverride: msRest.CompositeMapper = {
- serializedName: "MoveResourceDependencyOverride",
+export const OperationStatusError: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveResourceDependencyOverride",
+ className: "OperationStatusError",
modelProperties: {
- id: {
- serializedName: "id",
+ code: {
+ serializedName: "code",
+ readOnly: true,
type: {
name: "String"
}
},
- targetId: {
- serializedName: "targetId",
+ message: {
+ serializedName: "message",
+ readOnly: true,
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const ResourceSettings: msRest.CompositeMapper = {
- serializedName: "ResourceSettings",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "resourceType",
- clientName: "resourceType"
- },
- uberParent: "ResourceSettings",
- className: "ResourceSettings",
- modelProperties: {
- targetResourceName: {
- required: true,
- serializedName: "targetResourceName",
+ },
+ details: {
+ serializedName: "details",
+ readOnly: true,
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "OperationStatusError"
+ }
+ }
}
},
- resourceType: {
- required: true,
- serializedName: "resourceType",
+ additionalInfo: {
+ serializedName: "additionalInfo",
+ readOnly: true,
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "OperationErrorAdditionalInfo"
+ }
+ }
}
}
}
}
};
-export const MoveResourcePropertiesMoveStatus: msRest.CompositeMapper = {
- serializedName: "MoveResourceProperties_moveStatus",
+export const OperationErrorAdditionalInfo: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveResourcePropertiesMoveStatus",
+ className: "OperationErrorAdditionalInfo",
modelProperties: {
- ...MoveResourceStatus.type.modelProperties
+ type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ info: {
+ serializedName: "info",
+ type: {
+ name: "Composite",
+ className: "MoveErrorInfo"
+ }
+ }
}
}
};
-export const MoveResourcePropertiesErrors: msRest.CompositeMapper = {
- serializedName: "MoveResourceProperties_errors",
+export const MoveErrorInfo: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveResourcePropertiesErrors",
+ className: "MoveErrorInfo",
modelProperties: {
- ...MoveResourceError.type.modelProperties
+ moveResources: {
+ serializedName: "moveResources",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "AffectedMoveResource"
+ }
+ }
+ }
+ }
}
}
};
-export const MoveResourceProperties: msRest.CompositeMapper = {
- serializedName: "MoveResourceProperties",
+export const AffectedMoveResource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveResourceProperties",
+ className: "AffectedMoveResource",
modelProperties: {
- provisioningState: {
- serializedName: "provisioningState",
+ id: {
+ serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
sourceId: {
- required: true,
serializedName: "sourceId",
- type: {
- name: "String"
- }
- },
- targetId: {
readOnly: true,
- serializedName: "targetId",
- type: {
- name: "String"
- }
- },
- existingTargetId: {
- serializedName: "existingTargetId",
type: {
name: "String"
}
},
- resourceSettings: {
- serializedName: "resourceSettings",
- type: {
- name: "Composite",
- className: "ResourceSettings"
- }
- },
- sourceResourceSettings: {
- readOnly: true,
- serializedName: "sourceResourceSettings",
- type: {
- name: "Composite",
- className: "ResourceSettings"
- }
- },
- moveStatus: {
- readOnly: true,
- serializedName: "moveStatus",
- type: {
- name: "Composite",
- className: "MoveResourcePropertiesMoveStatus"
- }
- },
- dependsOn: {
+ moveResources: {
+ serializedName: "moveResources",
readOnly: true,
- serializedName: "dependsOn",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "MoveResourceDependency"
+ className: "AffectedMoveResource"
}
}
}
+ }
+ }
+ }
+};
+
+export const PrepareRequest: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PrepareRequest",
+ modelProperties: {
+ validateOnly: {
+ serializedName: "validateOnly",
+ type: {
+ name: "Boolean"
+ }
},
- dependsOnOverrides: {
- serializedName: "dependsOnOverrides",
+ moveResources: {
+ serializedName: "moveResources",
+ required: true,
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "MoveResourceDependencyOverride"
+ name: "String"
}
}
}
},
- isResolveRequired: {
- readOnly: true,
- serializedName: "isResolveRequired",
- type: {
- name: "Boolean"
- }
- },
- errors: {
- readOnly: true,
- serializedName: "errors",
+ moveResourceInputType: {
+ serializedName: "moveResourceInputType",
type: {
- name: "Composite",
- className: "MoveResourcePropertiesErrors"
+ name: "String"
}
}
}
}
};
-export const MoveResource: msRest.CompositeMapper = {
- serializedName: "MoveResource",
+export const ResourceMoveRequest: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveResource",
+ className: "ResourceMoveRequest",
modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
+ validateOnly: {
+ serializedName: "validateOnly",
type: {
- name: "String"
+ name: "Boolean"
}
},
- name: {
- readOnly: true,
- serializedName: "name",
+ moveResources: {
+ serializedName: "moveResources",
+ required: true,
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
},
- type: {
- readOnly: true,
- serializedName: "type",
+ moveResourceInputType: {
+ serializedName: "moveResourceInputType",
type: {
name: "String"
}
- },
- properties: {
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "MoveResourceProperties"
- }
}
}
}
};
-export const Summary: msRest.CompositeMapper = {
- serializedName: "Summary",
+export const CommitRequest: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Summary",
+ className: "CommitRequest",
modelProperties: {
- count: {
- serializedName: "count",
+ validateOnly: {
+ serializedName: "validateOnly",
type: {
- name: "Number"
+ name: "Boolean"
}
},
- item: {
- serializedName: "item",
+ moveResources: {
+ serializedName: "moveResources",
+ required: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ moveResourceInputType: {
+ serializedName: "moveResourceInputType",
type: {
name: "String"
}
@@ -472,240 +613,240 @@ export const Summary: msRest.CompositeMapper = {
}
};
-export const SummaryCollection: msRest.CompositeMapper = {
- serializedName: "SummaryCollection",
+export const DiscardRequest: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SummaryCollection",
+ className: "DiscardRequest",
modelProperties: {
- fieldName: {
- serializedName: "fieldName",
+ validateOnly: {
+ serializedName: "validateOnly",
type: {
- name: "String"
+ name: "Boolean"
}
},
- summary: {
- serializedName: "summary",
+ moveResources: {
+ serializedName: "moveResources",
+ required: true,
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "Summary"
+ name: "String"
}
}
}
+ },
+ moveResourceInputType: {
+ serializedName: "moveResourceInputType",
+ type: {
+ name: "String"
+ }
}
}
}
};
-export const MoveCollectionPropertiesErrors: msRest.CompositeMapper = {
- serializedName: "MoveCollectionProperties_errors",
- type: {
- name: "Composite",
- className: "MoveCollectionPropertiesErrors",
- modelProperties: {
- ...MoveResourceError.type.modelProperties
- }
- }
-};
-
-export const MoveCollectionProperties: msRest.CompositeMapper = {
- serializedName: "MoveCollectionProperties",
+export const MoveResourceCollection: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveCollectionProperties",
+ className: "MoveResourceCollection",
modelProperties: {
- sourceRegion: {
- required: true,
- serializedName: "sourceRegion",
+ value: {
+ serializedName: "value",
type: {
- name: "String"
- }
- },
- targetRegion: {
- required: true,
- serializedName: "targetRegion",
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "MoveResource"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
type: {
name: "String"
}
},
- provisioningState: {
- serializedName: "provisioningState",
+ summaryCollection: {
+ serializedName: "summaryCollection",
type: {
- name: "String"
+ name: "Composite",
+ className: "SummaryCollection"
}
},
- errors: {
+ totalCount: {
+ serializedName: "totalCount",
readOnly: true,
- serializedName: "errors",
type: {
- name: "Composite",
- className: "MoveCollectionPropertiesErrors"
+ name: "Number"
}
}
}
}
};
-export const MoveCollection: msRest.CompositeMapper = {
- serializedName: "MoveCollection",
+export const MoveResource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveCollection",
+ className: "MoveResource",
modelProperties: {
id: {
- readOnly: true,
serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
name: {
- readOnly: true,
serializedName: "name",
+ readOnly: true,
type: {
name: "String"
}
},
type: {
- readOnly: true,
serializedName: "type",
+ readOnly: true,
type: {
name: "String"
}
},
- etag: {
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "MoveResourceProperties"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ }
+ }
+ }
+};
+
+export const MoveResourceProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MoveResourceProperties",
+ modelProperties: {
+ provisioningState: {
+ serializedName: "provisioningState",
readOnly: true,
- serializedName: "etag",
type: {
name: "String"
}
},
- tags: {
- serializedName: "tags",
+ sourceId: {
+ serializedName: "sourceId",
+ required: true,
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
},
- location: {
- serializedName: "location",
+ targetId: {
+ serializedName: "targetId",
+ readOnly: true,
type: {
name: "String"
}
},
- identity: {
- serializedName: "identity",
+ existingTargetId: {
+ serializedName: "existingTargetId",
type: {
- name: "Composite",
- className: "Identity"
+ name: "String"
}
},
- properties: {
- serializedName: "properties",
+ resourceSettings: {
+ serializedName: "resourceSettings",
type: {
name: "Composite",
- className: "MoveCollectionProperties"
+ className: "ResourceSettings"
}
- }
- }
- }
-};
-
-export const UpdateMoveCollectionRequest: msRest.CompositeMapper = {
- serializedName: "UpdateMoveCollectionRequest",
- type: {
- name: "Composite",
- className: "UpdateMoveCollectionRequest",
- modelProperties: {
- tags: {
- serializedName: "tags",
+ },
+ sourceResourceSettings: {
+ serializedName: "sourceResourceSettings",
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ name: "Composite",
+ className: "ResourceSettings"
}
},
- identity: {
- serializedName: "identity",
+ moveStatus: {
+ serializedName: "moveStatus",
type: {
name: "Composite",
- className: "Identity"
+ className: "MoveResourcePropertiesMoveStatus"
}
- }
- }
- }
-};
-
-export const PrepareRequest: msRest.CompositeMapper = {
- serializedName: "PrepareRequest",
- type: {
- name: "Composite",
- className: "PrepareRequest",
- modelProperties: {
- validateOnly: {
- serializedName: "validateOnly",
+ },
+ dependsOn: {
+ serializedName: "dependsOn",
+ readOnly: true,
type: {
- name: "Boolean"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "MoveResourceDependency"
+ }
+ }
}
},
- moveResources: {
- required: true,
- serializedName: "moveResources",
+ dependsOnOverrides: {
+ serializedName: "dependsOnOverrides",
type: {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "MoveResourceDependencyOverride"
}
}
}
},
- moveResourceInputType: {
- serializedName: "moveResourceInputType",
+ isResolveRequired: {
+ serializedName: "isResolveRequired",
+ readOnly: true,
type: {
- name: "String"
+ name: "Boolean"
+ }
+ },
+ errors: {
+ serializedName: "errors",
+ type: {
+ name: "Composite",
+ className: "MoveResourcePropertiesErrors"
}
}
}
}
};
-export const ResourceMoveRequest: msRest.CompositeMapper = {
- serializedName: "ResourceMoveRequest",
+export const ResourceSettings: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ResourceMoveRequest",
+ className: "ResourceSettings",
+ uberParent: "ResourceSettings",
+ polymorphicDiscriminator: {
+ serializedName: "resourceType",
+ clientName: "resourceType"
+ },
modelProperties: {
- validateOnly: {
- serializedName: "validateOnly",
- type: {
- name: "Boolean"
- }
- },
- moveResources: {
+ resourceType: {
+ serializedName: "resourceType",
required: true,
- serializedName: "moveResources",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
},
- moveResourceInputType: {
- serializedName: "moveResourceInputType",
+ targetResourceName: {
+ serializedName: "targetResourceName",
+ required: true,
type: {
name: "String"
}
@@ -714,66 +855,51 @@ export const ResourceMoveRequest: msRest.CompositeMapper = {
}
};
-export const CommitRequest: msRest.CompositeMapper = {
- serializedName: "CommitRequest",
+export const MoveResourceStatus: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "CommitRequest",
+ className: "MoveResourceStatus",
modelProperties: {
- validateOnly: {
- serializedName: "validateOnly",
+ moveState: {
+ serializedName: "moveState",
+ readOnly: true,
type: {
- name: "Boolean"
+ name: "String"
}
},
- moveResources: {
- required: true,
- serializedName: "moveResources",
+ jobStatus: {
+ serializedName: "jobStatus",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "Composite",
+ className: "JobStatus"
}
},
- moveResourceInputType: {
- serializedName: "moveResourceInputType",
+ errors: {
+ serializedName: "errors",
type: {
- name: "String"
+ name: "Composite",
+ className: "MoveResourceError"
}
}
}
}
};
-export const DiscardRequest: msRest.CompositeMapper = {
- serializedName: "DiscardRequest",
+export const JobStatus: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "DiscardRequest",
+ className: "JobStatus",
modelProperties: {
- validateOnly: {
- serializedName: "validateOnly",
- type: {
- name: "Boolean"
- }
- },
- moveResources: {
- required: true,
- serializedName: "moveResources",
+ jobName: {
+ serializedName: "jobName",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
},
- moveResourceInputType: {
- serializedName: "moveResourceInputType",
+ jobProgress: {
+ serializedName: "jobProgress",
+ readOnly: true,
type: {
name: "String"
}
@@ -782,31 +908,51 @@ export const DiscardRequest: msRest.CompositeMapper = {
}
};
-export const BulkRemoveRequest: msRest.CompositeMapper = {
- serializedName: "BulkRemoveRequest",
+export const MoveResourceDependency: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "BulkRemoveRequest",
+ className: "MoveResourceDependency",
modelProperties: {
- validateOnly: {
- serializedName: "validateOnly",
+ id: {
+ serializedName: "id",
type: {
- name: "Boolean"
+ name: "String"
}
},
- moveResources: {
- serializedName: "moveResources",
+ resolutionStatus: {
+ serializedName: "resolutionStatus",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
},
- moveResourceInputType: {
- serializedName: "moveResourceInputType",
+ resolutionType: {
+ serializedName: "resolutionType",
+ type: {
+ name: "String"
+ }
+ },
+ dependencyType: {
+ serializedName: "dependencyType",
+ type: {
+ name: "String"
+ }
+ },
+ manualResolution: {
+ serializedName: "manualResolution",
+ type: {
+ name: "Composite",
+ className: "ManualResolutionProperties"
+ }
+ },
+ automaticResolution: {
+ serializedName: "automaticResolution",
+ type: {
+ name: "Composite",
+ className: "AutomaticResolutionProperties"
+ }
+ },
+ isOptional: {
+ serializedName: "isOptional",
type: {
name: "String"
}
@@ -815,14 +961,13 @@ export const BulkRemoveRequest: msRest.CompositeMapper = {
}
};
-export const MoveResourceFilterProperties: msRest.CompositeMapper = {
- serializedName: "MoveResourceFilterProperties",
+export const ManualResolutionProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveResourceFilterProperties",
+ className: "ManualResolutionProperties",
modelProperties: {
- provisioningState: {
- serializedName: "provisioningState",
+ targetId: {
+ serializedName: "targetId",
type: {
name: "String"
}
@@ -831,61 +976,73 @@ export const MoveResourceFilterProperties: msRest.CompositeMapper = {
}
};
-export const MoveResourceFilter: msRest.CompositeMapper = {
- serializedName: "MoveResourceFilter",
+export const AutomaticResolutionProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MoveResourceFilter",
+ className: "AutomaticResolutionProperties",
modelProperties: {
- properties: {
- serializedName: "properties",
+ moveResourceId: {
+ serializedName: "moveResourceId",
type: {
- name: "Composite",
- className: "MoveResourceFilterProperties"
+ name: "String"
}
}
}
}
};
-export const UnresolvedDependenciesFilterProperties: msRest.CompositeMapper = {
- serializedName: "UnresolvedDependenciesFilterProperties",
+export const MoveResourceDependencyOverride: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "UnresolvedDependenciesFilterProperties",
+ className: "MoveResourceDependencyOverride",
modelProperties: {
- count: {
- serializedName: "count",
+ id: {
+ serializedName: "id",
type: {
- name: "Number"
+ name: "String"
+ }
+ },
+ targetId: {
+ serializedName: "targetId",
+ type: {
+ name: "String"
}
}
}
}
};
-export const UnresolvedDependenciesFilter: msRest.CompositeMapper = {
- serializedName: "UnresolvedDependenciesFilter",
+export const SummaryCollection: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "UnresolvedDependenciesFilter",
+ className: "SummaryCollection",
modelProperties: {
- properties: {
- serializedName: "properties",
+ fieldName: {
+ serializedName: "fieldName",
type: {
- name: "Composite",
- className: "UnresolvedDependenciesFilterProperties"
+ name: "String"
+ }
+ },
+ summary: {
+ serializedName: "summary",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Summary"
+ }
+ }
}
}
}
}
};
-export const UnresolvedDependency: msRest.CompositeMapper = {
- serializedName: "UnresolvedDependency",
+export const Summary: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "UnresolvedDependency",
+ className: "Summary",
modelProperties: {
count: {
serializedName: "count",
@@ -893,8 +1050,8 @@ export const UnresolvedDependency: msRest.CompositeMapper = {
name: "Number"
}
},
- id: {
- serializedName: "id",
+ item: {
+ serializedName: "item",
type: {
name: "String"
}
@@ -903,53 +1060,119 @@ export const UnresolvedDependency: msRest.CompositeMapper = {
}
};
-export const RequiredForResourcesCollection: msRest.CompositeMapper = {
- serializedName: "RequiredForResourcesCollection",
+export const UnresolvedDependencyCollection: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "RequiredForResourcesCollection",
+ className: "UnresolvedDependencyCollection",
modelProperties: {
- sourceIds: {
- serializedName: "sourceIds",
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "UnresolvedDependency"
}
}
}
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ },
+ summaryCollection: {
+ serializedName: "summaryCollection",
+ type: {
+ name: "Composite",
+ className: "SummaryCollection"
+ }
+ },
+ totalCount: {
+ serializedName: "totalCount",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
}
}
}
};
-export const Display: msRest.CompositeMapper = {
- serializedName: "Display",
+export const UnresolvedDependency: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Display",
+ className: "UnresolvedDependency",
modelProperties: {
- provider: {
- serializedName: "provider",
+ count: {
+ serializedName: "count",
type: {
- name: "String"
+ name: "Number"
}
},
- resource: {
- serializedName: "resource",
+ id: {
+ serializedName: "id",
type: {
name: "String"
}
+ }
+ }
+ }
+};
+
+export const BulkRemoveRequest: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "BulkRemoveRequest",
+ modelProperties: {
+ validateOnly: {
+ serializedName: "validateOnly",
+ type: {
+ name: "Boolean"
+ }
},
- operation: {
- serializedName: "operation",
+ moveResources: {
+ serializedName: "moveResources",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ moveResourceInputType: {
+ serializedName: "moveResourceInputType",
type: {
name: "String"
}
+ }
+ }
+ }
+};
+
+export const OperationsDiscoveryCollection: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationsDiscoveryCollection",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "OperationsDiscovery"
+ }
+ }
+ }
},
- description: {
- serializedName: "description",
+ nextLink: {
+ serializedName: "nextLink",
type: {
name: "String"
}
@@ -958,8 +1181,7 @@ export const Display: msRest.CompositeMapper = {
}
};
-export const OperationsDiscovery: msRest.CompositeMapper = {
- serializedName: "OperationsDiscovery",
+export const OperationsDiscovery: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "OperationsDiscovery",
@@ -992,18 +1214,51 @@ export const OperationsDiscovery: msRest.CompositeMapper = {
properties: {
serializedName: "properties",
type: {
- name: "Object"
+ name: "Dictionary",
+ value: { type: { name: "any" } }
}
}
}
}
};
-export const OperationsDiscoveryCollection: msRest.CompositeMapper = {
- serializedName: "OperationsDiscoveryCollection",
+export const Display: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationsDiscoveryCollection",
+ 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 MoveCollectionResultList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MoveCollectionResultList",
modelProperties: {
value: {
serializedName: "value",
@@ -1012,7 +1267,7 @@ export const OperationsDiscoveryCollection: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- className: "OperationsDiscovery"
+ className: "MoveCollection"
}
}
}
@@ -1027,101 +1282,89 @@ export const OperationsDiscoveryCollection: msRest.CompositeMapper = {
}
};
-export const VirtualMachineResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Compute/virtualMachines",
+export const RequiredForResourcesCollection: coreClient.CompositeMapper = {
type: {
name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
- uberParent: "ResourceSettings",
- className: "VirtualMachineResourceSettings",
+ className: "RequiredForResourcesCollection",
modelProperties: {
- ...ResourceSettings.type.modelProperties,
- targetAvailabilityZone: {
- serializedName: "targetAvailabilityZone",
- type: {
- name: "String"
- }
- },
- targetVmSize: {
- serializedName: "targetVmSize",
- type: {
- name: "String"
- }
- },
- targetAvailabilitySetId: {
- serializedName: "targetAvailabilitySetId",
+ sourceIds: {
+ serializedName: "sourceIds",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
}
}
}
};
-export const AvailabilitySetResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Compute/availabilitySets",
+export const MoveResourceFilter: coreClient.CompositeMapper = {
type: {
name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
- uberParent: "ResourceSettings",
- className: "AvailabilitySetResourceSettings",
+ className: "MoveResourceFilter",
modelProperties: {
- ...ResourceSettings.type.modelProperties,
- faultDomain: {
- nullable: true,
- serializedName: "faultDomain",
- constraints: {
- InclusiveMinimum: 1
- },
+ properties: {
+ serializedName: "properties",
type: {
- name: "Number"
+ name: "Composite",
+ className: "MoveResourceFilterProperties"
}
- },
- updateDomain: {
- nullable: true,
- serializedName: "updateDomain",
- constraints: {
- InclusiveMaximum: 20,
- InclusiveMinimum: 1
- },
+ }
+ }
+ }
+};
+
+export const MoveResourceFilterProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MoveResourceFilterProperties",
+ modelProperties: {
+ provisioningState: {
+ serializedName: "provisioningState",
type: {
- name: "Number"
+ name: "String"
}
}
}
}
};
-export const AzureResourceReference: msRest.CompositeMapper = {
- serializedName: "AzureResourceReference",
+export const UnresolvedDependenciesFilter: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AzureResourceReference",
+ className: "UnresolvedDependenciesFilter",
modelProperties: {
- sourceArmResourceId: {
- required: true,
- serializedName: "sourceArmResourceId",
+ properties: {
+ serializedName: "properties",
type: {
- name: "String"
+ name: "Composite",
+ className: "UnresolvedDependenciesFilterProperties"
}
}
}
}
};
-export const NsgReference: msRest.CompositeMapper = {
- serializedName: "NsgReference",
+export const UnresolvedDependenciesFilterProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "NsgReference",
+ className: "UnresolvedDependenciesFilterProperties",
modelProperties: {
- ...AzureResourceReference.type.modelProperties
+ count: {
+ serializedName: "count",
+ type: {
+ name: "Number"
+ }
+ }
}
}
};
-export const SubnetResourceSettings: msRest.CompositeMapper = {
- serializedName: "SubnetResourceSettings",
+export const SubnetResourceSettings: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "SubnetResourceSettings",
@@ -1149,69 +1392,14 @@ export const SubnetResourceSettings: msRest.CompositeMapper = {
}
};
-export const VirtualNetworkResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Network/virtualNetworks",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
- uberParent: "ResourceSettings",
- className: "VirtualNetworkResourceSettings",
- modelProperties: {
- ...ResourceSettings.type.modelProperties,
- enableDdosProtection: {
- nullable: true,
- serializedName: "enableDdosProtection",
- type: {
- name: "Boolean"
- }
- },
- addressSpace: {
- serializedName: "addressSpace",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- dnsServers: {
- serializedName: "dnsServers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- subnets: {
- serializedName: "subnets",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SubnetResourceSettings"
- }
- }
- }
- }
- }
- }
-};
-
-export const ProxyResourceReference: msRest.CompositeMapper = {
- serializedName: "ProxyResourceReference",
+export const AzureResourceReference: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ProxyResourceReference",
+ className: "AzureResourceReference",
modelProperties: {
- ...AzureResourceReference.type.modelProperties,
- name: {
- serializedName: "name",
+ sourceArmResourceId: {
+ serializedName: "sourceArmResourceId",
+ required: true,
type: {
name: "String"
}
@@ -1220,52 +1408,7 @@ export const ProxyResourceReference: msRest.CompositeMapper = {
}
};
-export const SubnetReference: msRest.CompositeMapper = {
- serializedName: "SubnetReference",
- type: {
- name: "Composite",
- className: "SubnetReference",
- modelProperties: {
- ...ProxyResourceReference.type.modelProperties
- }
- }
-};
-
-export const LoadBalancerBackendAddressPoolReference: msRest.CompositeMapper = {
- serializedName: "LoadBalancerBackendAddressPoolReference",
- type: {
- name: "Composite",
- className: "LoadBalancerBackendAddressPoolReference",
- modelProperties: {
- ...ProxyResourceReference.type.modelProperties
- }
- }
-};
-
-export const LoadBalancerNatRuleReference: msRest.CompositeMapper = {
- serializedName: "LoadBalancerNatRuleReference",
- type: {
- name: "Composite",
- className: "LoadBalancerNatRuleReference",
- modelProperties: {
- ...ProxyResourceReference.type.modelProperties
- }
- }
-};
-
-export const PublicIpReference: msRest.CompositeMapper = {
- serializedName: "PublicIpReference",
- type: {
- name: "Composite",
- className: "PublicIpReference",
- modelProperties: {
- ...AzureResourceReference.type.modelProperties
- }
- }
-};
-
-export const NicIpConfigurationResourceSettings: msRest.CompositeMapper = {
- serializedName: "NicIpConfigurationResourceSettings",
+export const NicIpConfigurationResourceSettings: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "NicIpConfigurationResourceSettings",
@@ -1336,40 +1479,7 @@ export const NicIpConfigurationResourceSettings: msRest.CompositeMapper = {
}
};
-export const NetworkInterfaceResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Network/networkInterfaces",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
- uberParent: "ResourceSettings",
- className: "NetworkInterfaceResourceSettings",
- modelProperties: {
- ...ResourceSettings.type.modelProperties,
- ipConfigurations: {
- serializedName: "ipConfigurations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "NicIpConfigurationResourceSettings"
- }
- }
- }
- },
- enableAcceleratedNetworking: {
- nullable: true,
- serializedName: "enableAcceleratedNetworking",
- type: {
- name: "Boolean"
- }
- }
- }
- }
-};
-
-export const NsgSecurityRule: msRest.CompositeMapper = {
- serializedName: "NsgSecurityRule",
+export const NsgSecurityRule: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "NsgSecurityRule",
@@ -1438,33 +1548,7 @@ export const NsgSecurityRule: msRest.CompositeMapper = {
}
};
-export const NetworkSecurityGroupResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Network/networkSecurityGroups",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
- uberParent: "ResourceSettings",
- className: "NetworkSecurityGroupResourceSettings",
- modelProperties: {
- ...ResourceSettings.type.modelProperties,
- securityRules: {
- serializedName: "securityRules",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "NsgSecurityRule"
- }
- }
- }
- }
- }
- }
-};
-
-export const LBFrontendIPConfigurationResourceSettings: msRest.CompositeMapper = {
- serializedName: "LBFrontendIPConfigurationResourceSettings",
+export const LBFrontendIPConfigurationResourceSettings: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "LBFrontendIPConfigurationResourceSettings",
@@ -1504,8 +1588,7 @@ export const LBFrontendIPConfigurationResourceSettings: msRest.CompositeMapper =
}
};
-export const LBBackendAddressPoolResourceSettings: msRest.CompositeMapper = {
- serializedName: "LBBackendAddressPoolResourceSettings",
+export const LBBackendAddressPoolResourceSettings: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "LBBackendAddressPoolResourceSettings",
@@ -1520,79 +1603,67 @@ export const LBBackendAddressPoolResourceSettings: msRest.CompositeMapper = {
}
};
-export const LoadBalancerResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Network/loadBalancers",
+export const MoveCollectionPropertiesErrors: coreClient.CompositeMapper = {
type: {
name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
+ className: "MoveCollectionPropertiesErrors",
+ modelProperties: {
+ ...MoveResourceError.type.modelProperties
+ }
+ }
+};
+
+export const MoveResourcePropertiesErrors: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MoveResourcePropertiesErrors",
+ modelProperties: {
+ ...MoveResourceError.type.modelProperties
+ }
+ }
+};
+
+export const VirtualMachineResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Compute/virtualMachines",
+ type: {
+ name: "Composite",
+ className: "VirtualMachineResourceSettings",
uberParent: "ResourceSettings",
- className: "LoadBalancerResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
modelProperties: {
...ResourceSettings.type.modelProperties,
- sku: {
- serializedName: "sku",
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- frontendIPConfigurations: {
- serializedName: "frontendIPConfigurations",
+ userManagedIdentities: {
+ serializedName: "userManagedIdentities",
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "LBFrontendIPConfigurationResourceSettings"
+ name: "String"
}
}
}
},
- backendAddressPools: {
- serializedName: "backendAddressPools",
+ targetAvailabilityZone: {
+ serializedName: "targetAvailabilityZone",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "LBBackendAddressPoolResourceSettings"
- }
- }
+ name: "String"
}
},
- zones: {
- serializedName: "zones",
+ targetVmSize: {
+ serializedName: "targetVmSize",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const SqlServerResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Sql/servers",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
- uberParent: "ResourceSettings",
- className: "SqlServerResourceSettings",
- modelProperties: {
- ...ResourceSettings.type.modelProperties
- }
- }
-};
-
-export const SqlElasticPoolResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Sql/servers/elasticPools",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
- uberParent: "ResourceSettings",
- className: "SqlElasticPoolResourceSettings",
- modelProperties: {
- ...ResourceSettings.type.modelProperties,
- zoneRedundant: {
- serializedName: "zoneRedundant",
+ },
+ targetAvailabilitySetId: {
+ serializedName: "targetAvailabilitySetId",
type: {
name: "String"
}
@@ -1601,159 +1672,171 @@ export const SqlElasticPoolResourceSettings: msRest.CompositeMapper = {
}
};
-export const SqlDatabaseResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Sql/servers/databases",
+export const AvailabilitySetResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Compute/availabilitySets",
type: {
name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
+ className: "AvailabilitySetResourceSettings",
uberParent: "ResourceSettings",
- className: "SqlDatabaseResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
modelProperties: {
...ResourceSettings.type.modelProperties,
- zoneRedundant: {
- serializedName: "zoneRedundant",
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ faultDomain: {
+ constraints: {
+ InclusiveMinimum: 1
+ },
+ serializedName: "faultDomain",
+ nullable: true,
+ type: {
+ name: "Number"
+ }
+ },
+ updateDomain: {
+ constraints: {
+ InclusiveMaximum: 20,
+ InclusiveMinimum: 1
+ },
+ serializedName: "updateDomain",
+ nullable: true,
+ type: {
+ name: "Number"
}
}
}
}
};
-export const ResourceGroupResourceSettings: msRest.CompositeMapper = {
- serializedName: "resourceGroups",
+export const VirtualNetworkResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Network/virtualNetworks",
type: {
name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
+ className: "VirtualNetworkResourceSettings",
uberParent: "ResourceSettings",
- className: "ResourceGroupResourceSettings",
- modelProperties: {
- ...ResourceSettings.type.modelProperties
- }
- }
-};
-
-export const PublicIPAddressResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Network/publicIPAddresses",
- type: {
- name: "Composite",
polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
- uberParent: "ResourceSettings",
- className: "PublicIPAddressResourceSettings",
modelProperties: {
...ResourceSettings.type.modelProperties,
- domainNameLabel: {
- serializedName: "domainNameLabel",
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- fqdn: {
- serializedName: "fqdn",
+ enableDdosProtection: {
+ serializedName: "enableDdosProtection",
+ nullable: true,
type: {
- name: "String"
+ name: "Boolean"
}
},
- publicIpAllocationMethod: {
- serializedName: "publicIpAllocationMethod",
+ addressSpace: {
+ serializedName: "addressSpace",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
},
- sku: {
- serializedName: "sku",
+ dnsServers: {
+ serializedName: "dnsServers",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
},
- zones: {
- serializedName: "zones",
+ subnets: {
+ serializedName: "subnets",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SubnetResourceSettings"
+ }
+ }
}
}
}
}
};
-export const KeyVaultResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.KeyVault/vaults",
+export const NetworkInterfaceResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Network/networkInterfaces",
type: {
name: "Composite",
- polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
+ className: "NetworkInterfaceResourceSettings",
uberParent: "ResourceSettings",
- className: "KeyVaultResourceSettings",
- modelProperties: {
- ...ResourceSettings.type.modelProperties
- }
- }
-};
-
-export const DiskEncryptionSetResourceSettings: msRest.CompositeMapper = {
- serializedName: "Microsoft.Compute/diskEncryptionSets",
- type: {
- name: "Composite",
polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
- uberParent: "ResourceSettings",
- className: "DiskEncryptionSetResourceSettings",
- modelProperties: {
- ...ResourceSettings.type.modelProperties
- }
- }
-};
-
-export const AffectedMoveResource: msRest.CompositeMapper = {
- serializedName: "AffectedMoveResource",
- type: {
- name: "Composite",
- className: "AffectedMoveResource",
modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- sourceId: {
- readOnly: true,
- serializedName: "sourceId",
+ ...ResourceSettings.type.modelProperties,
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- moveResources: {
- readOnly: true,
- serializedName: "moveResources",
+ ipConfigurations: {
+ serializedName: "ipConfigurations",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "AffectedMoveResource"
+ className: "NicIpConfigurationResourceSettings"
}
}
}
+ },
+ enableAcceleratedNetworking: {
+ serializedName: "enableAcceleratedNetworking",
+ nullable: true,
+ type: {
+ name: "Boolean"
+ }
}
}
}
};
-export const MoveErrorInfo: msRest.CompositeMapper = {
- serializedName: "MoveErrorInfo",
+export const NetworkSecurityGroupResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Network/networkSecurityGroups",
type: {
name: "Composite",
- className: "MoveErrorInfo",
+ className: "NetworkSecurityGroupResourceSettings",
+ uberParent: "ResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
modelProperties: {
- moveResources: {
- readOnly: true,
- serializedName: "moveResources",
+ ...ResourceSettings.type.modelProperties,
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ securityRules: {
+ serializedName: "securityRules",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "AffectedMoveResource"
+ className: "NsgSecurityRule"
}
}
}
@@ -1762,161 +1845,119 @@ export const MoveErrorInfo: msRest.CompositeMapper = {
}
};
-export const OperationErrorAdditionalInfo: msRest.CompositeMapper = {
- serializedName: "OperationErrorAdditionalInfo",
- type: {
- name: "Composite",
- className: "OperationErrorAdditionalInfo",
- modelProperties: {
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- info: {
- readOnly: true,
- serializedName: "info",
- type: {
- name: "Composite",
- className: "MoveErrorInfo"
- }
- }
- }
- }
-};
-
-export const OperationStatusError: msRest.CompositeMapper = {
- serializedName: "OperationStatusError",
+export const LoadBalancerResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Network/loadBalancers",
type: {
name: "Composite",
- className: "OperationStatusError",
+ className: "LoadBalancerResourceSettings",
+ uberParent: "ResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
modelProperties: {
- code: {
- readOnly: true,
- serializedName: "code",
+ ...ResourceSettings.type.modelProperties,
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- message: {
- readOnly: true,
- serializedName: "message",
+ sku: {
+ serializedName: "sku",
type: {
name: "String"
}
},
- details: {
- readOnly: true,
- serializedName: "details",
+ frontendIPConfigurations: {
+ serializedName: "frontendIPConfigurations",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "OperationStatusError"
+ className: "LBFrontendIPConfigurationResourceSettings"
}
}
}
},
- additionalInfo: {
- readOnly: true,
- serializedName: "additionalInfo",
+ backendAddressPools: {
+ serializedName: "backendAddressPools",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "OperationErrorAdditionalInfo"
+ className: "LBBackendAddressPoolResourceSettings"
}
}
}
- }
- }
+ },
+ zones: {
+ serializedName: "zones",
+ type: {
+ name: "String"
+ }
+ }
+ }
}
};
-export const OperationStatus: msRest.CompositeMapper = {
- serializedName: "OperationStatus",
+export const SqlServerResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Sql/servers",
type: {
name: "Composite",
- className: "OperationStatus",
+ className: "SqlServerResourceSettings",
+ uberParent: "ResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- status: {
- readOnly: true,
- serializedName: "status",
- type: {
- name: "String"
- }
- },
- startTime: {
- readOnly: true,
- serializedName: "startTime",
+ ...ResourceSettings.type.modelProperties
+ }
+ }
+};
+
+export const SqlElasticPoolResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Sql/servers/elasticPools",
+ type: {
+ name: "Composite",
+ className: "SqlElasticPoolResourceSettings",
+ uberParent: "ResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
+ modelProperties: {
+ ...ResourceSettings.type.modelProperties,
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- endTime: {
- readOnly: true,
- serializedName: "endTime",
+ zoneRedundant: {
+ serializedName: "zoneRedundant",
type: {
name: "String"
}
- },
- error: {
- readOnly: true,
- serializedName: "error",
- type: {
- name: "Composite",
- className: "OperationStatusError"
- }
- },
- properties: {
- readOnly: true,
- serializedName: "properties",
- type: {
- name: "Object"
- }
}
}
}
};
-export const MoveCollectionResultList: msRest.CompositeMapper = {
- serializedName: "MoveCollectionResultList",
+export const SqlDatabaseResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Sql/servers/databases",
type: {
name: "Composite",
- className: "MoveCollectionResultList",
+ className: "SqlDatabaseResourceSettings",
+ uberParent: "ResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
modelProperties: {
- value: {
- serializedName: "",
+ ...ResourceSettings.type.modelProperties,
+ tags: {
+ serializedName: "tags",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "MoveCollection"
- }
- }
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- nextLink: {
- serializedName: "nextLink",
+ zoneRedundant: {
+ serializedName: "zoneRedundant",
type: {
name: "String"
}
@@ -1925,105 +1966,184 @@ export const MoveCollectionResultList: msRest.CompositeMapper = {
}
};
-export const MoveResourceCollection: msRest.CompositeMapper = {
- serializedName: "MoveResourceCollection",
+export const ResourceGroupResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "resourceGroups",
type: {
name: "Composite",
- className: "MoveResourceCollection",
+ className: "ResourceGroupResourceSettings",
+ uberParent: "ResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
modelProperties: {
- value: {
- serializedName: "",
+ ...ResourceSettings.type.modelProperties
+ }
+ }
+};
+
+export const PublicIPAddressResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Network/publicIPAddresses",
+ type: {
+ name: "Composite",
+ className: "PublicIPAddressResourceSettings",
+ uberParent: "ResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
+ modelProperties: {
+ ...ResourceSettings.type.modelProperties,
+ tags: {
+ serializedName: "tags",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "MoveResource"
- }
- }
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- nextLink: {
- serializedName: "nextLink",
+ domainNameLabel: {
+ serializedName: "domainNameLabel",
type: {
name: "String"
}
},
- summaryCollection: {
- serializedName: "summaryCollection",
+ fqdn: {
+ serializedName: "fqdn",
type: {
- name: "Composite",
- className: "SummaryCollection"
+ name: "String"
}
},
- totalCount: {
- readOnly: true,
- serializedName: "totalCount",
+ publicIpAllocationMethod: {
+ serializedName: "publicIpAllocationMethod",
type: {
- name: "Number"
+ name: "String"
+ }
+ },
+ sku: {
+ serializedName: "sku",
+ type: {
+ name: "String"
+ }
+ },
+ zones: {
+ serializedName: "zones",
+ type: {
+ name: "String"
}
}
}
}
};
-export const UnresolvedDependencyCollection: msRest.CompositeMapper = {
- serializedName: "UnresolvedDependencyCollection",
+export const KeyVaultResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.KeyVault/vaults",
type: {
name: "Composite",
- className: "UnresolvedDependencyCollection",
+ className: "KeyVaultResourceSettings",
+ uberParent: "ResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "UnresolvedDependency"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
+ ...ResourceSettings.type.modelProperties
+ }
+ }
+};
+
+export const DiskEncryptionSetResourceSettings: coreClient.CompositeMapper = {
+ serializedName: "Microsoft.Compute/diskEncryptionSets",
+ type: {
+ name: "Composite",
+ className: "DiskEncryptionSetResourceSettings",
+ uberParent: "ResourceSettings",
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
+ modelProperties: {
+ ...ResourceSettings.type.modelProperties
+ }
+ }
+};
+
+export const MoveResourcePropertiesMoveStatus: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MoveResourcePropertiesMoveStatus",
+ modelProperties: {
+ ...MoveResourceStatus.type.modelProperties
+ }
+ }
+};
+
+export const NsgReference: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "NsgReference",
+ modelProperties: {
+ ...AzureResourceReference.type.modelProperties
+ }
+ }
+};
+
+export const ProxyResourceReference: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ProxyResourceReference",
+ modelProperties: {
+ ...AzureResourceReference.type.modelProperties,
+ name: {
+ serializedName: "name",
type: {
name: "String"
}
- },
- summaryCollection: {
- readOnly: true,
- serializedName: "summaryCollection",
- type: {
- name: "Composite",
- className: "SummaryCollection"
- }
- },
- totalCount: {
- readOnly: true,
- serializedName: "totalCount",
- type: {
- name: "Number"
- }
}
}
}
};
-export const discriminators = {
- 'ResourceSettings' : ResourceSettings,
- 'ResourceSettings.Microsoft.Compute/virtualMachines' : VirtualMachineResourceSettings,
- 'ResourceSettings.Microsoft.Compute/availabilitySets' : AvailabilitySetResourceSettings,
- 'ResourceSettings.Microsoft.Network/virtualNetworks' : VirtualNetworkResourceSettings,
- 'ResourceSettings.Microsoft.Network/networkInterfaces' : NetworkInterfaceResourceSettings,
- 'ResourceSettings.Microsoft.Network/networkSecurityGroups' : NetworkSecurityGroupResourceSettings,
- 'ResourceSettings.Microsoft.Network/loadBalancers' : LoadBalancerResourceSettings,
- 'ResourceSettings.Microsoft.Sql/servers' : SqlServerResourceSettings,
- 'ResourceSettings.Microsoft.Sql/servers/elasticPools' : SqlElasticPoolResourceSettings,
- 'ResourceSettings.Microsoft.Sql/servers/databases' : SqlDatabaseResourceSettings,
- 'ResourceSettings.resourceGroups' : ResourceGroupResourceSettings,
- 'ResourceSettings.Microsoft.Network/publicIPAddresses' : PublicIPAddressResourceSettings,
- 'ResourceSettings.Microsoft.KeyVault/vaults' : KeyVaultResourceSettings,
- 'ResourceSettings.Microsoft.Compute/diskEncryptionSets' : DiskEncryptionSetResourceSettings
+export const PublicIpReference: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PublicIpReference",
+ modelProperties: {
+ ...AzureResourceReference.type.modelProperties
+ }
+ }
+};
+
+export const SubnetReference: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SubnetReference",
+ modelProperties: {
+ ...ProxyResourceReference.type.modelProperties
+ }
+ }
+};
+
+export const LoadBalancerBackendAddressPoolReference: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "LoadBalancerBackendAddressPoolReference",
+ modelProperties: {
+ ...ProxyResourceReference.type.modelProperties
+ }
+ }
+};
+
+export const LoadBalancerNatRuleReference: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "LoadBalancerNatRuleReference",
+ modelProperties: {
+ ...ProxyResourceReference.type.modelProperties
+ }
+ }
+};
+export let discriminators = {
+ ResourceSettings: ResourceSettings,
+ "ResourceSettings.Microsoft.Compute/virtualMachines": VirtualMachineResourceSettings,
+ "ResourceSettings.Microsoft.Compute/availabilitySets": AvailabilitySetResourceSettings,
+ "ResourceSettings.Microsoft.Network/virtualNetworks": VirtualNetworkResourceSettings,
+ "ResourceSettings.Microsoft.Network/networkInterfaces": NetworkInterfaceResourceSettings,
+ "ResourceSettings.Microsoft.Network/networkSecurityGroups": NetworkSecurityGroupResourceSettings,
+ "ResourceSettings.Microsoft.Network/loadBalancers": LoadBalancerResourceSettings,
+ "ResourceSettings.Microsoft.Sql/servers": SqlServerResourceSettings,
+ "ResourceSettings.Microsoft.Sql/servers/elasticPools": SqlElasticPoolResourceSettings,
+ "ResourceSettings.Microsoft.Sql/servers/databases": SqlDatabaseResourceSettings,
+ "ResourceSettings.resourceGroups": ResourceGroupResourceSettings,
+ "ResourceSettings.Microsoft.Network/publicIPAddresses": PublicIPAddressResourceSettings,
+ "ResourceSettings.Microsoft.KeyVault/vaults": KeyVaultResourceSettings,
+ "ResourceSettings.Microsoft.Compute/diskEncryptionSets": DiskEncryptionSetResourceSettings
};
diff --git a/sdk/resourcemover/arm-resourcemover/src/models/moveCollectionsMappers.ts b/sdk/resourcemover/arm-resourcemover/src/models/moveCollectionsMappers.ts
deleted file mode 100644
index 0c4a5c329ffc..000000000000
--- a/sdk/resourcemover/arm-resourcemover/src/models/moveCollectionsMappers.ts
+++ /dev/null
@@ -1,68 +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 {
- discriminators,
- AffectedMoveResource,
- AutomaticResolutionProperties,
- AvailabilitySetResourceSettings,
- AzureResourceReference,
- BaseResource,
- BulkRemoveRequest,
- CloudError,
- CommitRequest,
- DiscardRequest,
- DiskEncryptionSetResourceSettings,
- Identity,
- JobStatus,
- KeyVaultResourceSettings,
- LBBackendAddressPoolResourceSettings,
- LBFrontendIPConfigurationResourceSettings,
- LoadBalancerBackendAddressPoolReference,
- LoadBalancerNatRuleReference,
- LoadBalancerResourceSettings,
- ManualResolutionProperties,
- MoveCollection,
- MoveCollectionProperties,
- MoveCollectionPropertiesErrors,
- MoveCollectionResultList,
- MoveErrorInfo,
- MoveResource,
- MoveResourceDependency,
- MoveResourceDependencyOverride,
- MoveResourceError,
- MoveResourceErrorBody,
- MoveResourceProperties,
- MoveResourcePropertiesErrors,
- MoveResourcePropertiesMoveStatus,
- MoveResourceStatus,
- NetworkInterfaceResourceSettings,
- NetworkSecurityGroupResourceSettings,
- NicIpConfigurationResourceSettings,
- NsgReference,
- NsgSecurityRule,
- OperationErrorAdditionalInfo,
- OperationStatus,
- OperationStatusError,
- PrepareRequest,
- ProxyResourceReference,
- PublicIPAddressResourceSettings,
- PublicIpReference,
- RequiredForResourcesCollection,
- ResourceGroupResourceSettings,
- ResourceMoveRequest,
- ResourceSettings,
- SqlDatabaseResourceSettings,
- SqlElasticPoolResourceSettings,
- SqlServerResourceSettings,
- SubnetReference,
- SubnetResourceSettings,
- UpdateMoveCollectionRequest,
- VirtualMachineResourceSettings,
- VirtualNetworkResourceSettings
-} from "../models/mappers";
diff --git a/sdk/resourcemover/arm-resourcemover/src/models/moveResourcesMappers.ts b/sdk/resourcemover/arm-resourcemover/src/models/moveResourcesMappers.ts
deleted file mode 100644
index ab9252fc77cf..000000000000
--- a/sdk/resourcemover/arm-resourcemover/src/models/moveResourcesMappers.ts
+++ /dev/null
@@ -1,63 +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 {
- discriminators,
- AffectedMoveResource,
- AutomaticResolutionProperties,
- AvailabilitySetResourceSettings,
- AzureResourceReference,
- BaseResource,
- CloudError,
- DiskEncryptionSetResourceSettings,
- Identity,
- JobStatus,
- KeyVaultResourceSettings,
- LBBackendAddressPoolResourceSettings,
- LBFrontendIPConfigurationResourceSettings,
- LoadBalancerBackendAddressPoolReference,
- LoadBalancerNatRuleReference,
- LoadBalancerResourceSettings,
- ManualResolutionProperties,
- MoveCollection,
- MoveCollectionProperties,
- MoveCollectionPropertiesErrors,
- MoveErrorInfo,
- MoveResource,
- MoveResourceCollection,
- MoveResourceDependency,
- MoveResourceDependencyOverride,
- MoveResourceError,
- MoveResourceErrorBody,
- MoveResourceProperties,
- MoveResourcePropertiesErrors,
- MoveResourcePropertiesMoveStatus,
- MoveResourceStatus,
- NetworkInterfaceResourceSettings,
- NetworkSecurityGroupResourceSettings,
- NicIpConfigurationResourceSettings,
- NsgReference,
- NsgSecurityRule,
- OperationErrorAdditionalInfo,
- OperationStatus,
- OperationStatusError,
- ProxyResourceReference,
- PublicIPAddressResourceSettings,
- PublicIpReference,
- ResourceGroupResourceSettings,
- ResourceSettings,
- SqlDatabaseResourceSettings,
- SqlElasticPoolResourceSettings,
- SqlServerResourceSettings,
- SubnetReference,
- SubnetResourceSettings,
- Summary,
- SummaryCollection,
- VirtualMachineResourceSettings,
- VirtualNetworkResourceSettings
-} from "../models/mappers";
diff --git a/sdk/resourcemover/arm-resourcemover/src/models/parameters.ts b/sdk/resourcemover/arm-resourcemover/src/models/parameters.ts
index 0c7361ca1efb..817b7a0fc2e1 100644
--- a/sdk/resourcemover/arm-resourcemover/src/models/parameters.ts
+++ b/sdk/resourcemover/arm-resourcemover/src/models/parameters.ts
@@ -3,124 +3,204 @@
* Licensed under 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 * as msRest from "@azure/ms-rest-js";
+import {
+ OperationParameter,
+ OperationURLParameter,
+ OperationQueryParameter
+} from "@azure/core-client";
+import {
+ MoveCollection as MoveCollectionMapper,
+ UpdateMoveCollectionRequest as UpdateMoveCollectionRequestMapper,
+ PrepareRequest as PrepareRequestMapper,
+ ResourceMoveRequest as ResourceMoveRequestMapper,
+ CommitRequest as CommitRequestMapper,
+ DiscardRequest as DiscardRequestMapper,
+ BulkRemoveRequest as BulkRemoveRequestMapper,
+ MoveResource as MoveResourceMapper
+} from "../models/mappers";
-export const acceptLanguage: msRest.OperationParameter = {
- parameterPath: "acceptLanguage",
+export const contentType: OperationParameter = {
+ parameterPath: ["options", "contentType"],
mapper: {
- serializedName: "accept-language",
- defaultValue: 'en-US',
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Content-Type",
type: {
name: "String"
}
}
};
-export const apiVersion: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
+
+export const body: OperationParameter = {
+ parameterPath: ["options", "body"],
+ mapper: MoveCollectionMapper
+};
+
+export const accept: OperationParameter = {
+ parameterPath: "accept",
mapper: {
- required: true,
- serializedName: "api-version",
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Accept",
type: {
name: "String"
}
}
};
-export const dependencyLevel: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "dependencyLevel"
- ],
+
+export const $host: OperationURLParameter = {
+ parameterPath: "$host",
mapper: {
- serializedName: "dependencyLevel",
+ serializedName: "$host",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+
+export const subscriptionId: OperationURLParameter = {
+ parameterPath: "subscriptionId",
+ mapper: {
+ serializedName: "subscriptionId",
+ required: true,
type: {
name: "String"
}
}
};
-export const filter: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "filter"
- ],
+
+export const resourceGroupName: OperationURLParameter = {
+ parameterPath: "resourceGroupName",
mapper: {
- serializedName: "$filter",
+ serializedName: "resourceGroupName",
+ required: true,
type: {
name: "String"
}
}
};
-export const moveCollectionName: msRest.OperationURLParameter = {
+
+export const moveCollectionName: OperationURLParameter = {
parameterPath: "moveCollectionName",
mapper: {
- required: true,
serializedName: "moveCollectionName",
+ required: true,
type: {
name: "String"
}
}
};
-export const moveResourceName: msRest.OperationURLParameter = {
- parameterPath: "moveResourceName",
+
+export const apiVersion: OperationQueryParameter = {
+ parameterPath: "apiVersion",
mapper: {
- required: true,
- serializedName: "moveResourceName",
+ defaultValue: "2021-08-01",
+ isConstant: true,
+ serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const nextPageLink: msRest.OperationURLParameter = {
- parameterPath: "nextPageLink",
+
+export const body1: OperationParameter = {
+ parameterPath: ["options", "body"],
+ mapper: UpdateMoveCollectionRequestMapper
+};
+
+export const body2: OperationParameter = {
+ parameterPath: ["options", "body"],
+ mapper: PrepareRequestMapper
+};
+
+export const body3: OperationParameter = {
+ parameterPath: ["options", "body"],
+ mapper: ResourceMoveRequestMapper
+};
+
+export const body4: OperationParameter = {
+ parameterPath: ["options", "body"],
+ mapper: CommitRequestMapper
+};
+
+export const body5: OperationParameter = {
+ parameterPath: ["options", "body"],
+ mapper: DiscardRequestMapper
+};
+
+export const body6: OperationParameter = {
+ parameterPath: ["options", "body"],
+ mapper: BulkRemoveRequestMapper
+};
+
+export const sourceId: OperationQueryParameter = {
+ parameterPath: "sourceId",
mapper: {
+ serializedName: "sourceId",
required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const nextLink: OperationURLParameter = {
+ parameterPath: "nextLink",
+ mapper: {
serializedName: "nextLink",
+ required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
-export const orderby: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "orderby"
- ],
+
+export const filter: OperationQueryParameter = {
+ parameterPath: ["options", "filter"],
mapper: {
- serializedName: "$orderby",
+ serializedName: "$filter",
type: {
name: "String"
}
}
};
-export const resourceGroupName: msRest.OperationURLParameter = {
- parameterPath: "resourceGroupName",
+
+export const body7: OperationParameter = {
+ parameterPath: ["options", "body"],
+ mapper: MoveResourceMapper
+};
+
+export const moveResourceName: OperationURLParameter = {
+ parameterPath: "moveResourceName",
mapper: {
+ serializedName: "moveResourceName",
required: true,
- serializedName: "resourceGroupName",
type: {
name: "String"
}
}
};
-export const sourceId: msRest.OperationQueryParameter = {
- parameterPath: "sourceId",
+
+export const dependencyLevel: OperationQueryParameter = {
+ parameterPath: ["options", "dependencyLevel"],
mapper: {
- required: true,
- serializedName: "sourceId",
+ serializedName: "dependencyLevel",
type: {
name: "String"
}
}
};
-export const subscriptionId: msRest.OperationURLParameter = {
- parameterPath: "subscriptionId",
+
+export const orderby: OperationQueryParameter = {
+ parameterPath: ["options", "orderby"],
mapper: {
- required: true,
- serializedName: "subscriptionId",
+ serializedName: "$orderby",
type: {
name: "String"
}
diff --git a/sdk/resourcemover/arm-resourcemover/src/operations/index.ts b/sdk/resourcemover/arm-resourcemover/src/operations/index.ts
index 4577ae3ec10c..ef4256fdd918 100644
--- a/sdk/resourcemover/arm-resourcemover/src/operations/index.ts
+++ b/sdk/resourcemover/arm-resourcemover/src/operations/index.ts
@@ -3,8 +3,7 @@
* Licensed under 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 * from "./moveCollections";
diff --git a/sdk/resourcemover/arm-resourcemover/src/operations/moveCollections.ts b/sdk/resourcemover/arm-resourcemover/src/operations/moveCollections.ts
index 936708ced176..cfa36898ad80 100644
--- a/sdk/resourcemover/arm-resourcemover/src/operations/moveCollections.ts
+++ b/sdk/resourcemover/arm-resourcemover/src/operations/moveCollections.ts
@@ -3,537 +3,942 @@
* Licensed under 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 * 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/moveCollectionsMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { MoveCollections } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { ResourceMoverServiceAPIContext } from "../resourceMoverServiceAPIContext";
+import { ResourceMoverServiceAPI } from "../resourceMoverServiceAPI";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ MoveCollection,
+ MoveCollectionsListMoveCollectionsBySubscriptionNextOptionalParams,
+ MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams,
+ MoveCollectionsListMoveCollectionsByResourceGroupNextOptionalParams,
+ MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams,
+ MoveCollectionsCreateOptionalParams,
+ MoveCollectionsCreateResponse,
+ MoveCollectionsUpdateOptionalParams,
+ MoveCollectionsUpdateResponse,
+ MoveCollectionsDeleteOptionalParams,
+ MoveCollectionsDeleteResponse,
+ MoveCollectionsGetOptionalParams,
+ MoveCollectionsGetResponse,
+ MoveCollectionsPrepareOptionalParams,
+ MoveCollectionsPrepareResponse,
+ MoveCollectionsInitiateMoveOptionalParams,
+ MoveCollectionsInitiateMoveResponse,
+ MoveCollectionsCommitOptionalParams,
+ MoveCollectionsCommitResponse,
+ MoveCollectionsDiscardOptionalParams,
+ MoveCollectionsDiscardResponse,
+ MoveCollectionsResolveDependenciesOptionalParams,
+ MoveCollectionsResolveDependenciesResponse,
+ MoveCollectionsBulkRemoveOptionalParams,
+ MoveCollectionsBulkRemoveResponse,
+ MoveCollectionsListMoveCollectionsBySubscriptionResponse,
+ MoveCollectionsListMoveCollectionsByResourceGroupResponse,
+ MoveCollectionsListRequiredForOptionalParams,
+ MoveCollectionsListRequiredForResponse,
+ MoveCollectionsListMoveCollectionsBySubscriptionNextResponse,
+ MoveCollectionsListMoveCollectionsByResourceGroupNextResponse
+} from "../models";
-/** Class representing a MoveCollections. */
-export class MoveCollections {
- private readonly client: ResourceMoverServiceAPIContext;
+///
+/** Class containing MoveCollections operations. */
+export class MoveCollectionsImpl implements MoveCollections {
+ private readonly client: ResourceMoverServiceAPI;
/**
- * Create a MoveCollections.
- * @param {ResourceMoverServiceAPIContext} client Reference to the service client.
+ * Initialize a new instance of the class MoveCollections class.
+ * @param client Reference to the service client
*/
- constructor(client: ResourceMoverServiceAPIContext) {
+ constructor(client: ResourceMoverServiceAPI) {
this.client = client;
}
/**
- * Creates or updates a move collection.
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- create(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsCreateOptionalParams): Promise;
- /**
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param callback The callback
- */
- create(resourceGroupName: string, moveCollectionName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param options The optional parameters
- * @param callback The callback
+ * Get all the Move Collections in the subscription.
+ * @param options The options parameters.
*/
- create(resourceGroupName: string, moveCollectionName: string, options: Models.MoveCollectionsCreateOptionalParams, callback: msRest.ServiceCallback): void;
- create(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- moveCollectionName,
- options
+ public listMoveCollectionsBySubscription(
+ options?: MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listMoveCollectionsBySubscriptionPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
},
- createOperationSpec,
- callback) as Promise;
+ byPage: () => {
+ return this.listMoveCollectionsBySubscriptionPagingPage(options);
+ }
+ };
+ }
+
+ private async *listMoveCollectionsBySubscriptionPagingPage(
+ options?: MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listMoveCollectionsBySubscription(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listMoveCollectionsBySubscriptionNext(
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listMoveCollectionsBySubscriptionPagingAll(
+ options?: MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listMoveCollectionsBySubscriptionPagingPage(
+ options
+ )) {
+ yield* page;
+ }
}
/**
- * Updates a move collection.
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- update(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsUpdateOptionalParams): Promise;
- /**
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param callback The callback
- */
- update(resourceGroupName: string, moveCollectionName: string, callback: msRest.ServiceCallback): void;
- /**
+ * Get all the Move Collections in the resource group.
* @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- update(resourceGroupName: string, moveCollectionName: string, options: Models.MoveCollectionsUpdateOptionalParams, callback: msRest.ServiceCallback): void;
- update(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listMoveCollectionsByResourceGroup(
+ resourceGroupName: string,
+ options?: MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listMoveCollectionsByResourceGroupPagingAll(
+ resourceGroupName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listMoveCollectionsByResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listMoveCollectionsByResourceGroupPagingPage(
+ resourceGroupName: string,
+ options?: MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listMoveCollectionsByResourceGroup(
+ resourceGroupName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listMoveCollectionsByResourceGroupNext(
resourceGroupName,
- moveCollectionName,
+ continuationToken,
options
- },
- updateOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
}
- /**
- * Deletes a move collection.
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- deleteMethod(resourceGroupName: string, moveCollectionName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.beginDeleteMethod(resourceGroupName,moveCollectionName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ private async *listMoveCollectionsByResourceGroupPagingAll(
+ resourceGroupName: string,
+ options?: MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listMoveCollectionsByResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
- * Gets the move collection.
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, moveCollectionName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
+ * Creates or updates a move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, moveCollectionName: string, callback: msRest.ServiceCallback): void;
+ create(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsCreateOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, moveCollectionName, options },
+ createOperationSpec
+ );
+ }
+
/**
+ * Updates a move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, moveCollectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, moveCollectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ update(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- moveCollectionName,
- options
- },
- getOperationSpec,
- callback) as Promise;
+ { resourceGroupName, moveCollectionName, options },
+ updateOperationSpec
+ );
}
/**
- * Initiates prepare for the set of resources included in the request body. The prepare operation
- * is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a
- * successful completion the moveResource moveState do a transition to MovePending. To aid the user
- * to prerequisite the operation the client can call operation with validateOnly property set to
- * true.
+ * Deletes a move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- prepare(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsPrepareOptionalParams): Promise {
- return this.beginPrepare(resourceGroupName,moveCollectionName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginDelete(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsDeleteOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ MoveCollectionsDeleteResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, moveCollectionName, options },
+ deleteOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
}
/**
- * Moves the set of resources included in the request body. The move operation is triggered after
- * the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion
- * the moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
- * operation the client can call operation with validateOnly property set to true.
+ * Deletes a move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- initiateMove(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsInitiateMoveOptionalParams): Promise {
- return this.beginInitiateMove(resourceGroupName,moveCollectionName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginDeleteAndWait(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsDeleteOptionalParams
+ ): Promise {
+ const poller = await this.beginDelete(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
- * Commits the set of resources included in the request body. The commit operation is triggered on
- * the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion
- * the moveResource moveState do a transition to Committed. To aid the user to prerequisite the
- * operation the client can call operation with validateOnly property set to true.
+ * Gets the move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- commit(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsCommitOptionalParams): Promise {
- return this.beginCommit(resourceGroupName,moveCollectionName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ get(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsGetOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, moveCollectionName, options },
+ getOperationSpec
+ );
}
/**
- * Discards the set of resources included in the request body. The discard operation is triggered
- * on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful
+ * Initiates prepare for the set of resources included in the request body. The prepare operation is on
+ * the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful
* completion the moveResource moveState do a transition to MovePending. To aid the user to
* prerequisite the operation the client can call operation with validateOnly property set to true.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- discard(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsDiscardOptionalParams): Promise {
- return this.beginDiscard(resourceGroupName,moveCollectionName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginPrepare(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsPrepareOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ MoveCollectionsPrepareResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, moveCollectionName, options },
+ prepareOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
}
/**
- * Computes, resolves and validate the dependencies of the moveResources in the move collection.
+ * Initiates prepare for the set of resources included in the request body. The prepare operation is on
+ * the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful
+ * completion the moveResource moveState do a transition to MovePending. To aid the user to
+ * prerequisite the operation the client can call operation with validateOnly property set to true.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- resolveDependencies(resourceGroupName: string, moveCollectionName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.beginResolveDependencies(resourceGroupName,moveCollectionName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
- }
-
- /**
- * Removes the set of move resources included in the request body from move collection. The
- * orchestration is done by service. To aid the user to prerequisite the operation the client can
- * call operation with validateOnly property set to true.
- * @param resourceGroupName
- * @param moveCollectionName
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- bulkRemove(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsBulkRemoveOptionalParams): Promise {
- return this.beginBulkRemove(resourceGroupName,moveCollectionName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginPrepareAndWait(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsPrepareOptionalParams
+ ): Promise {
+ const poller = await this.beginPrepare(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
- * Get all the Move Collections in the subscription.
- * @summary Get all Move Collections.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listMoveCollectionsBySubscription(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
- */
- listMoveCollectionsBySubscription(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
- */
- listMoveCollectionsBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listMoveCollectionsBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- options
- },
- listMoveCollectionsBySubscriptionOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Get all the Move Collections in the resource group.
- * @summary Get all Move Collections.
- * @param resourceGroupName The Resource Group Name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listMoveCollectionsByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The Resource Group Name.
- * @param callback The callback
- */
- listMoveCollectionsByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
- /**
+ * Moves the set of resources included in the request body. The move operation is triggered after the
+ * moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the
+ * moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
+ * operation the client can call operation with validateOnly property set to true.
* @param resourceGroupName The Resource Group Name.
- * @param options The optional parameters
- * @param callback The callback
+ * @param moveCollectionName The Move Collection Name.
+ * @param options The options parameters.
*/
- listMoveCollectionsByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listMoveCollectionsByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- options
- },
- listMoveCollectionsByResourceGroupOperationSpec,
- callback) as Promise;
+ async beginInitiateMove(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsInitiateMoveOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ MoveCollectionsInitiateMoveResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, moveCollectionName, options },
+ initiateMoveOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
}
/**
- * List of the move resources for which an arm resource is required for.
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param sourceId The sourceId for which the api is invoked.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listRequiredFor(resourceGroupName: string, moveCollectionName: string, sourceId: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param sourceId The sourceId for which the api is invoked.
- * @param callback The callback
- */
- listRequiredFor(resourceGroupName: string, moveCollectionName: string, sourceId: string, callback: msRest.ServiceCallback): void;
- /**
+ * Moves the set of resources included in the request body. The move operation is triggered after the
+ * moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the
+ * moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
+ * operation the client can call operation with validateOnly property set to true.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param sourceId The sourceId for which the api is invoked.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- listRequiredFor(resourceGroupName: string, moveCollectionName: string, sourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listRequiredFor(resourceGroupName: string, moveCollectionName: string, sourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- moveCollectionName,
- sourceId,
- options
- },
- listRequiredForOperationSpec,
- callback) as Promise;
+ async beginInitiateMoveAndWait(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsInitiateMoveOptionalParams
+ ): Promise {
+ const poller = await this.beginInitiateMove(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
- * Deletes a move collection.
+ * Commits the set of resources included in the request body. The commit operation is triggered on the
+ * moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the
+ * moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation
+ * the client can call operation with validateOnly property set to true.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginDeleteMethod(resourceGroupName: string, moveCollectionName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- moveCollectionName,
- options
- },
- beginDeleteMethodOperationSpec,
- options);
+ async beginCommit(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsCommitOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ MoveCollectionsCommitResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, moveCollectionName, options },
+ commitOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
}
/**
- * Initiates prepare for the set of resources included in the request body. The prepare operation
- * is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a
- * successful completion the moveResource moveState do a transition to MovePending. To aid the user
- * to prerequisite the operation the client can call operation with validateOnly property set to
- * true.
+ * Commits the set of resources included in the request body. The commit operation is triggered on the
+ * moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the
+ * moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation
+ * the client can call operation with validateOnly property set to true.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginPrepare(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsBeginPrepareOptionalParams): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- moveCollectionName,
- options
- },
- beginPrepareOperationSpec,
- options);
+ async beginCommitAndWait(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsCommitOptionalParams
+ ): Promise {
+ const poller = await this.beginCommit(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
- * Moves the set of resources included in the request body. The move operation is triggered after
- * the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion
- * the moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
+ * Discards the set of resources included in the request body. The discard operation is triggered on
+ * the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion
+ * the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the
* operation the client can call operation with validateOnly property set to true.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginInitiateMove(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsBeginInitiateMoveOptionalParams): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- moveCollectionName,
- options
- },
- beginInitiateMoveOperationSpec,
- options);
+ async beginDiscard(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsDiscardOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ MoveCollectionsDiscardResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, moveCollectionName, options },
+ discardOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
}
/**
- * Commits the set of resources included in the request body. The commit operation is triggered on
- * the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion
- * the moveResource moveState do a transition to Committed. To aid the user to prerequisite the
+ * Discards the set of resources included in the request body. The discard operation is triggered on
+ * the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion
+ * the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the
* operation the client can call operation with validateOnly property set to true.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginCommit(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsBeginCommitOptionalParams): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- moveCollectionName,
- options
- },
- beginCommitOperationSpec,
- options);
+ async beginDiscardAndWait(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsDiscardOptionalParams
+ ): Promise {
+ const poller = await this.beginDiscard(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
- * Discards the set of resources included in the request body. The discard operation is triggered
- * on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful
- * completion the moveResource moveState do a transition to MovePending. To aid the user to
- * prerequisite the operation the client can call operation with validateOnly property set to true.
+ * Computes, resolves and validate the dependencies of the moveResources in the move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginDiscard(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsBeginDiscardOptionalParams): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- moveCollectionName,
- options
- },
- beginDiscardOperationSpec,
- options);
+ async beginResolveDependencies(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsResolveDependenciesOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ MoveCollectionsResolveDependenciesResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, moveCollectionName, options },
+ resolveDependenciesOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
}
/**
* Computes, resolves and validate the dependencies of the moveResources in the move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginResolveDependencies(resourceGroupName: string, moveCollectionName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- moveCollectionName,
- options
- },
- beginResolveDependenciesOperationSpec,
- options);
+ async beginResolveDependenciesAndWait(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsResolveDependenciesOptionalParams
+ ): Promise {
+ const poller = await this.beginResolveDependencies(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
* Removes the set of move resources included in the request body from move collection. The
- * orchestration is done by service. To aid the user to prerequisite the operation the client can
- * call operation with validateOnly property set to true.
+ * orchestration is done by service. To aid the user to prerequisite the operation the client can call
+ * operation with validateOnly property set to true.
* @param resourceGroupName
* @param moveCollectionName
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginBulkRemove(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveCollectionsBeginBulkRemoveOptionalParams): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- moveCollectionName,
- options
- },
- beginBulkRemoveOperationSpec,
- options);
+ async beginBulkRemove(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsBulkRemoveOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ MoveCollectionsBulkRemoveResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, moveCollectionName, options },
+ bulkRemoveOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
}
/**
- * Get all the Move Collections in the subscription.
- * @summary Get all Move Collections.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * Removes the set of move resources included in the request body from move collection. The
+ * orchestration is done by service. To aid the user to prerequisite the operation the client can call
+ * operation with validateOnly property set to true.
+ * @param resourceGroupName
+ * @param moveCollectionName
+ * @param options The options parameters.
*/
- listMoveCollectionsBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ async beginBulkRemoveAndWait(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveCollectionsBulkRemoveOptionalParams
+ ): Promise {
+ const poller = await this.beginBulkRemove(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
+ * Get all the Move Collections in the subscription.
+ * @param options The options parameters.
*/
- listMoveCollectionsBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ private _listMoveCollectionsBySubscription(
+ options?: MoveCollectionsListMoveCollectionsBySubscriptionOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { options },
+ listMoveCollectionsBySubscriptionOperationSpec
+ );
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * Get all the Move Collections in the resource group.
+ * @param resourceGroupName The Resource Group Name.
+ * @param options The options parameters.
*/
- listMoveCollectionsBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listMoveCollectionsBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listMoveCollectionsByResourceGroup(
+ resourceGroupName: string,
+ options?: MoveCollectionsListMoveCollectionsByResourceGroupOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listMoveCollectionsBySubscriptionNextOperationSpec,
- callback) as Promise;
+ { resourceGroupName, options },
+ listMoveCollectionsByResourceGroupOperationSpec
+ );
}
/**
- * Get all the Move Collections in the resource group.
- * @summary Get all Move Collections.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * List of the move resources for which an arm resource is required for.
+ * @param resourceGroupName The Resource Group Name.
+ * @param moveCollectionName The Move Collection Name.
+ * @param sourceId The sourceId for which the api is invoked.
+ * @param options The options parameters.
*/
- listMoveCollectionsByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ listRequiredFor(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ sourceId: string,
+ options?: MoveCollectionsListRequiredForOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, moveCollectionName, sourceId, options },
+ listRequiredForOperationSpec
+ );
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
+ * ListMoveCollectionsBySubscriptionNext
+ * @param nextLink The nextLink from the previous successful call to the
+ * ListMoveCollectionsBySubscription method.
+ * @param options The options parameters.
*/
- listMoveCollectionsByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ private _listMoveCollectionsBySubscriptionNext(
+ nextLink: string,
+ options?: MoveCollectionsListMoveCollectionsBySubscriptionNextOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { nextLink, options },
+ listMoveCollectionsBySubscriptionNextOperationSpec
+ );
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * ListMoveCollectionsByResourceGroupNext
+ * @param resourceGroupName The Resource Group Name.
+ * @param nextLink The nextLink from the previous successful call to the
+ * ListMoveCollectionsByResourceGroup method.
+ * @param options The options parameters.
*/
- listMoveCollectionsByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listMoveCollectionsByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listMoveCollectionsByResourceGroupNext(
+ resourceGroupName: string,
+ nextLink: string,
+ options?: MoveCollectionsListMoveCollectionsByResourceGroupNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listMoveCollectionsByResourceGroupNextOperationSpec,
- callback) as Promise;
+ { resourceGroupName, nextLink, options },
+ listMoveCollectionsByResourceGroupNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const createOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const createOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.moveCollectionName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: [
- "options",
- "body"
- ],
- mapper: Mappers.MoveCollection
- },
responses: {
200: {
bodyMapper: Mappers.MoveCollection
@@ -545,30 +950,22 @@ const createOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const updateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
+ requestBody: Parameters.body,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.moveCollectionName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: [
- "options",
- "body"
- ],
- mapper: Mappers.UpdateMoveCollectionRequest
- },
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const updateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
+ httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.MoveCollection
@@ -577,338 +974,330 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
+ requestBody: Parameters.body1,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.moveCollectionName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
+ httpMethod: "DELETE",
responses: {
200: {
- bodyMapper: Mappers.MoveCollection
+ bodyMapper: Mappers.OperationStatus
+ },
+ 201: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 202: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 204: {
+ bodyMapper: Mappers.OperationStatus
},
default: {
bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.moveCollectionName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listMoveCollectionsBySubscriptionOperationSpec: msRest.OperationSpec = {
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Migrate/moveCollections",
- urlParameters: [
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
- bodyMapper: Mappers.MoveCollectionResultList
+ bodyMapper: Mappers.MoveCollection
},
default: {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const listMoveCollectionsByResourceGroupOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
- Parameters.resourceGroupName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.resourceGroupName,
+ Parameters.moveCollectionName
],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const prepareOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/prepare",
+ httpMethod: "POST",
responses: {
200: {
- bodyMapper: Mappers.MoveCollectionResultList
+ bodyMapper: Mappers.OperationStatus
+ },
+ 201: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 202: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 204: {
+ bodyMapper: Mappers.OperationStatus
},
default: {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const listRequiredForOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/requiredFor",
+ requestBody: Parameters.body2,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.moveCollectionName
],
- queryParameters: [
- Parameters.sourceId,
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const initiateMoveOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/initiateMove",
+ httpMethod: "POST",
responses: {
200: {
- bodyMapper: Mappers.RequiredForResourcesCollection
+ bodyMapper: Mappers.OperationStatus
+ },
+ 201: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 202: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 204: {
+ bodyMapper: Mappers.OperationStatus
},
default: {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
+ requestBody: Parameters.body3,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.moveCollectionName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const commitOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit",
+ httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.OperationStatus
},
- 202: {},
- 204: {},
+ 201: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 202: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 204: {
+ bodyMapper: Mappers.OperationStatus
+ },
default: {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const beginPrepareOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/prepare",
+ requestBody: Parameters.body4,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.moveCollectionName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: [
- "options",
- "body"
- ],
- mapper: Mappers.PrepareRequest
- },
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const discardOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/discard",
+ httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.OperationStatus
},
- 202: {},
+ 201: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 202: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 204: {
+ bodyMapper: Mappers.OperationStatus
+ },
default: {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const beginInitiateMoveOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/initiateMove",
+ requestBody: Parameters.body5,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.moveCollectionName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: [
- "options",
- "body"
- ],
- mapper: Mappers.ResourceMoveRequest
- },
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const resolveDependenciesOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/resolveDependencies",
+ httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.OperationStatus
},
- 202: {},
+ 201: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 202: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 204: {
+ bodyMapper: Mappers.OperationStatus
+ },
default: {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const beginCommitOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.moveCollectionName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: [
- "options",
- "body"
- ],
- mapper: Mappers.CommitRequest
- },
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const bulkRemoveOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/bulkRemove",
+ httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.OperationStatus
},
- 202: {},
+ 201: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 202: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 204: {
+ bodyMapper: Mappers.OperationStatus
+ },
default: {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const beginDiscardOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/discard",
+ requestBody: Parameters.body6,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.moveCollectionName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: [
- "options",
- "body"
- ],
- mapper: Mappers.DiscardRequest
- },
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const listMoveCollectionsBySubscriptionOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Migrate/moveCollections",
+ httpMethod: "GET",
responses: {
200: {
- bodyMapper: Mappers.OperationStatus
+ bodyMapper: Mappers.MoveCollectionResultList
},
- 202: {},
default: {
bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const beginResolveDependenciesOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/resolveDependencies",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.moveCollectionName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+const listMoveCollectionsByResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections",
+ httpMethod: "GET",
responses: {
200: {
- bodyMapper: Mappers.OperationStatus
+ bodyMapper: Mappers.MoveCollectionResultList
},
- 202: {},
default: {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const beginBulkRemoveOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/bulkRemove",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.moveCollectionName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.resourceGroupName
],
- requestBody: {
- parameterPath: [
- "options",
- "body"
- ],
- mapper: Mappers.BulkRemoveRequest
- },
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listRequiredForOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/requiredFor",
+ httpMethod: "GET",
responses: {
200: {
- bodyMapper: Mappers.OperationStatus
+ bodyMapper: Mappers.RequiredForResourcesCollection
},
- 202: {},
default: {
bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion, Parameters.sourceId],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.moveCollectionName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listMoveCollectionsBySubscriptionNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listMoveCollectionsBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.MoveCollectionResultList
@@ -917,22 +1306,18 @@ const listMoveCollectionsBySubscriptionNextOperationSpec: msRest.OperationSpec =
bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listMoveCollectionsByResourceGroupNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listMoveCollectionsByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.MoveCollectionResultList
@@ -941,5 +1326,13 @@ const listMoveCollectionsByResourceGroupNextOperationSpec: msRest.OperationSpec
bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/resourcemover/arm-resourcemover/src/operations/moveResources.ts b/sdk/resourcemover/arm-resourcemover/src/operations/moveResources.ts
index 27eb9af03151..10cbd06ef199 100644
--- a/sdk/resourcemover/arm-resourcemover/src/operations/moveResources.ts
+++ b/sdk/resourcemover/arm-resourcemover/src/operations/moveResources.ts
@@ -3,26 +3,41 @@
* Licensed under 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 * 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/moveResourcesMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { MoveResources } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { ResourceMoverServiceAPIContext } from "../resourceMoverServiceAPIContext";
+import { ResourceMoverServiceAPI } from "../resourceMoverServiceAPI";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ MoveResource,
+ MoveResourcesListNextOptionalParams,
+ MoveResourcesListOptionalParams,
+ MoveResourcesListResponse,
+ MoveResourcesCreateOptionalParams,
+ MoveResourcesCreateResponse,
+ MoveResourcesDeleteOptionalParams,
+ MoveResourcesDeleteResponse,
+ MoveResourcesGetOptionalParams,
+ MoveResourcesGetResponse,
+ MoveResourcesListNextResponse
+} from "../models";
-/** Class representing a MoveResources. */
-export class MoveResources {
- private readonly client: ResourceMoverServiceAPIContext;
+///
+/** Class containing MoveResources operations. */
+export class MoveResourcesImpl implements MoveResources {
+ private readonly client: ResourceMoverServiceAPI;
/**
- * Create a MoveResources.
- * @param {ResourceMoverServiceAPIContext} client Reference to the service client.
+ * Initialize a new instance of the class MoveResources class.
+ * @param client Reference to the service client
*/
- constructor(client: ResourceMoverServiceAPIContext) {
+ constructor(client: ResourceMoverServiceAPI) {
this.client = client;
}
@@ -30,182 +45,317 @@ export class MoveResources {
* Lists the Move Resources in the move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- list(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveResourcesListOptionalParams): Promise;
- /**
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param callback The callback
- */
- list(resourceGroupName: string, moveCollectionName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param options The optional parameters
- * @param callback The callback
- */
- list(resourceGroupName: string, moveCollectionName: string, options: Models.MoveResourcesListOptionalParams, callback: msRest.ServiceCallback): void;
- list(resourceGroupName: string, moveCollectionName: string, options?: Models.MoveResourcesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public list(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveResourcesListOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listPagingAll(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listPagingPage(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listPagingPage(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveResourcesListOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._list(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listNext(
resourceGroupName,
moveCollectionName,
+ continuationToken,
options
- },
- listOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
}
- /**
- * Creates or updates a Move Resource in the move collection.
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param moveResourceName The Move Resource Name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- create(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: Models.MoveResourcesCreateOptionalParams): Promise {
- return this.beginCreate(resourceGroupName,moveCollectionName,moveResourceName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ private async *listPagingAll(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveResourcesListOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listPagingPage(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
- * Deletes a Move Resource from the move collection.
+ * Lists the Move Resources in the move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param moveResourceName The Move Resource Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- deleteMethod(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.beginDeleteMethod(resourceGroupName,moveCollectionName,moveResourceName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ private _list(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: MoveResourcesListOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, moveCollectionName, options },
+ listOperationSpec
+ );
}
/**
- * Gets the Move Resource.
+ * Creates or updates a Move Resource in the move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
* @param moveResourceName The Move Resource Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: msRest.RequestOptionsBase): Promise;
+ async beginCreate(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ moveResourceName: string,
+ options?: MoveResourcesCreateOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ MoveResourcesCreateResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, moveCollectionName, moveResourceName, options },
+ createOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
+ }
+
/**
+ * Creates or updates a Move Resource in the move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
* @param moveResourceName The Move Resource Name.
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, callback: msRest.ServiceCallback): void;
+ async beginCreateAndWait(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ moveResourceName: string,
+ options?: MoveResourcesCreateOptionalParams
+ ): Promise {
+ const poller = await this.beginCreate(
+ resourceGroupName,
+ moveCollectionName,
+ moveResourceName,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
/**
+ * Deletes a Move Resource from the move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
* @param moveResourceName The Move Resource Name.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- moveCollectionName,
- moveResourceName,
- options
- },
- getOperationSpec,
- callback) as Promise;
+ async beginDelete(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ moveResourceName: string,
+ options?: MoveResourcesDeleteOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ MoveResourcesDeleteResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, moveCollectionName, moveResourceName, options },
+ deleteOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
}
/**
- * Creates or updates a Move Resource in the move collection.
+ * Deletes a Move Resource from the move collection.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
* @param moveResourceName The Move Resource Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginCreate(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: Models.MoveResourcesBeginCreateOptionalParams): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- moveCollectionName,
- moveResourceName,
- options
- },
- beginCreateOperationSpec,
- options);
+ async beginDeleteAndWait(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ moveResourceName: string,
+ options?: MoveResourcesDeleteOptionalParams
+ ): Promise {
+ const poller = await this.beginDelete(
+ resourceGroupName,
+ moveCollectionName,
+ moveResourceName,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
- * Deletes a Move Resource from the move collection.
+ * Gets the Move Resource.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
* @param moveResourceName The Move Resource Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginDeleteMethod(resourceGroupName: string, moveCollectionName: string, moveResourceName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- moveCollectionName,
- moveResourceName,
- options
- },
- beginDeleteMethodOperationSpec,
- options);
+ get(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ moveResourceName: string,
+ options?: MoveResourcesGetOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, moveCollectionName, moveResourceName, options },
+ getOperationSpec
+ );
}
/**
- * Lists the Move Resources in the move collection.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listNext(nextPageLink: string, options?: Models.MoveResourcesListNextOptionalParams): 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
+ * @param resourceGroupName The Resource Group Name.
+ * @param moveCollectionName The Move Collection Name.
+ * @param nextLink The nextLink from the previous successful call to the List method.
+ * @param options The options parameters.
*/
- listNext(nextPageLink: string, options: Models.MoveResourcesListNextOptionalParams, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: Models.MoveResourcesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listNext(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ nextLink: string,
+ options?: MoveResourcesListNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listNextOperationSpec,
- callback) as Promise;
+ { resourceGroupName, moveCollectionName, nextLink, options },
+ listNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.moveCollectionName
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.filter
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.MoveResourceCollection
@@ -214,113 +364,108 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
- Parameters.moveCollectionName,
- Parameters.moveResourceName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.moveCollectionName
],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const createOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
+ httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.MoveResource
},
+ 201: {
+ bodyMapper: Mappers.MoveResource
+ },
+ 202: {
+ bodyMapper: Mappers.MoveResource
+ },
+ 204: {
+ bodyMapper: Mappers.MoveResource
+ },
default: {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const beginCreateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
+ requestBody: Parameters.body7,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.moveCollectionName,
Parameters.moveResourceName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: {
- properties: [
- "options",
- "properties"
- ]
- },
- mapper: Mappers.MoveResource
- },
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
+ httpMethod: "DELETE",
responses: {
200: {
- bodyMapper: Mappers.MoveResource
+ bodyMapper: Mappers.OperationStatus
+ },
+ 201: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 202: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 204: {
+ bodyMapper: Mappers.OperationStatus
},
- 202: {},
default: {
bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.moveCollectionName,
Parameters.moveResourceName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
+ httpMethod: "GET",
responses: {
200: {
- bodyMapper: Mappers.OperationStatus
+ bodyMapper: Mappers.MoveResource
},
- 202: {},
- 204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.moveCollectionName,
+ Parameters.moveResourceName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.filter
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.MoveResourceCollection
@@ -329,5 +474,14 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.moveCollectionName,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/resourcemover/arm-resourcemover/src/operations/operationsDiscoveryOperations.ts b/sdk/resourcemover/arm-resourcemover/src/operations/operationsDiscoveryOperations.ts
index 716c13a90b39..43c1e8b74530 100644
--- a/sdk/resourcemover/arm-resourcemover/src/operations/operationsDiscoveryOperations.ts
+++ b/sdk/resourcemover/arm-resourcemover/src/operations/operationsDiscoveryOperations.ts
@@ -3,63 +3,45 @@
* Licensed under 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 * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/operationsDiscoveryOperationsMappers";
+import { OperationsDiscoveryOperations } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { ResourceMoverServiceAPIContext } from "../resourceMoverServiceAPIContext";
+import { ResourceMoverServiceAPI } from "../resourceMoverServiceAPI";
+import {
+ OperationsDiscoveryGetOptionalParams,
+ OperationsDiscoveryGetResponse
+} from "../models";
-/** Class representing a OperationsDiscoveryOperations. */
-export class OperationsDiscoveryOperations {
- private readonly client: ResourceMoverServiceAPIContext;
+/** Class containing OperationsDiscoveryOperations operations. */
+export class OperationsDiscoveryOperationsImpl
+ implements OperationsDiscoveryOperations {
+ private readonly client: ResourceMoverServiceAPI;
/**
- * Create a OperationsDiscoveryOperations.
- * @param {ResourceMoverServiceAPIContext} client Reference to the service client.
+ * Initialize a new instance of the class OperationsDiscoveryOperations class.
+ * @param client Reference to the service client
*/
- constructor(client: ResourceMoverServiceAPIContext) {
+ constructor(client: ResourceMoverServiceAPI) {
this.client = client;
}
- /**
- * @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;
+ /** @param options The options parameters. */
+ get(
+ options?: OperationsDiscoveryGetOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest({ options }, getOperationSpec);
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const getOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const getOperationSpec: coreClient.OperationSpec = {
+ path: "/providers/Microsoft.Migrate/operations",
httpMethod: "GET",
- path: "providers/Microsoft.Migrate/operations",
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.OperationsDiscoveryCollection
@@ -68,5 +50,8 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/resourcemover/arm-resourcemover/src/operations/unresolvedDependencies.ts b/sdk/resourcemover/arm-resourcemover/src/operations/unresolvedDependencies.ts
index 6742ef5e16b7..594abe55e6e9 100644
--- a/sdk/resourcemover/arm-resourcemover/src/operations/unresolvedDependencies.ts
+++ b/sdk/resourcemover/arm-resourcemover/src/operations/unresolvedDependencies.ts
@@ -3,25 +3,33 @@
* Licensed under 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 * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/unresolvedDependenciesMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { UnresolvedDependencies } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { ResourceMoverServiceAPIContext } from "../resourceMoverServiceAPIContext";
+import { ResourceMoverServiceAPI } from "../resourceMoverServiceAPI";
+import {
+ UnresolvedDependency,
+ UnresolvedDependenciesGetNextOptionalParams,
+ UnresolvedDependenciesGetOptionalParams,
+ UnresolvedDependenciesGetResponse,
+ UnresolvedDependenciesGetNextResponse
+} from "../models";
-/** Class representing a UnresolvedDependencies. */
-export class UnresolvedDependencies {
- private readonly client: ResourceMoverServiceAPIContext;
+///
+/** Class containing UnresolvedDependencies operations. */
+export class UnresolvedDependenciesImpl implements UnresolvedDependencies {
+ private readonly client: ResourceMoverServiceAPI;
/**
- * Create a UnresolvedDependencies.
- * @param {ResourceMoverServiceAPIContext} client Reference to the service client.
+ * Initialize a new instance of the class UnresolvedDependencies class.
+ * @param client Reference to the service client
*/
- constructor(client: ResourceMoverServiceAPIContext) {
+ constructor(client: ResourceMoverServiceAPI) {
this.client = client;
}
@@ -29,82 +37,116 @@ export class UnresolvedDependencies {
* Gets a list of unresolved dependencies.
* @param resourceGroupName The Resource Group Name.
* @param moveCollectionName The Move Collection Name.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, moveCollectionName: string, options?: Models.UnresolvedDependenciesGetOptionalParams): Promise;
- /**
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param callback The callback
- */
- get(resourceGroupName: string, moveCollectionName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The Resource Group Name.
- * @param moveCollectionName The Move Collection Name.
- * @param options The optional parameters
- * @param callback The callback
- */
- get(resourceGroupName: string, moveCollectionName: string, options: Models.UnresolvedDependenciesGetOptionalParams, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, moveCollectionName: string, options?: Models.UnresolvedDependenciesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public list(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: UnresolvedDependenciesGetOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.getPagingAll(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.getPagingPage(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *getPagingPage(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: UnresolvedDependenciesGetOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._get(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._getNext(
resourceGroupName,
moveCollectionName,
+ continuationToken,
options
- },
- getOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *getPagingAll(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: UnresolvedDependenciesGetOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.getPagingPage(
+ resourceGroupName,
+ moveCollectionName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
* Gets a list of unresolved dependencies.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- getNext(nextPageLink: string, options?: Models.UnresolvedDependenciesGetNextOptionalParams): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
+ * @param resourceGroupName The Resource Group Name.
+ * @param moveCollectionName The Move Collection Name.
+ * @param options The options parameters.
*/
- getNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ private _get(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ options?: UnresolvedDependenciesGetOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, moveCollectionName, options },
+ getOperationSpec
+ );
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * GetNext
+ * @param resourceGroupName The Resource Group Name.
+ * @param moveCollectionName The Move Collection Name.
+ * @param nextLink The nextLink from the previous successful call to the Get method.
+ * @param options The options parameters.
*/
- getNext(nextPageLink: string, options: Models.UnresolvedDependenciesGetNextOptionalParams, callback: msRest.ServiceCallback): void;
- getNext(nextPageLink: string, options?: Models.UnresolvedDependenciesGetNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _getNext(
+ resourceGroupName: string,
+ moveCollectionName: string,
+ nextLink: string,
+ options?: UnresolvedDependenciesGetNextOptionalParams
+ ): Promise