|
43 | 43 | "x-ms-examples": {
|
44 | 44 | "Migrations_Create": {
|
45 | 45 | "$ref": "./examples/Migrations_Create.json"
|
| 46 | + }, |
| 47 | + "Migrations Create by passing user names": { |
| 48 | + "$ref": "./examples/Migrations_Create_With_Other_Users.json" |
46 | 49 | }
|
47 | 50 | },
|
48 | 51 | "description": "Creates a new migration.",
|
|
144 | 147 | "x-ms-examples": {
|
145 | 148 | "Migrations_Update": {
|
146 | 149 | "$ref": "./examples/Migrations_Update.json"
|
| 150 | + }, |
| 151 | + "Cancel migration": { |
| 152 | + "$ref": "./examples/Migrations_Cancel.json" |
147 | 153 | }
|
148 | 154 | },
|
149 | 155 | "description": "Updates an existing migration. The request body can contain one to many of the mutable properties present in the migration definition. Certain property updates initiate migration state transitions.",
|
|
410 | 416 | "setupLogicalReplicationOnSourceDbIfNeeded": {
|
411 | 417 | "type": "string",
|
412 | 418 | "enum": [
|
413 |
| - "Enabled", |
414 |
| - "Disabled" |
| 419 | + "True", |
| 420 | + "False" |
415 | 421 | ],
|
416 | 422 | "x-ms-enum": {
|
417 | 423 | "name": "LogicalReplicationOnSourceDbEnum",
|
|
422 | 428 | "overwriteDbsInTarget": {
|
423 | 429 | "type": "string",
|
424 | 430 | "enum": [
|
425 |
| - "Enabled", |
426 |
| - "Disabled" |
| 431 | + "True", |
| 432 | + "False" |
427 | 433 | ],
|
428 | 434 | "x-ms-enum": {
|
429 | 435 | "name": "OverwriteDbsInTargetEnum",
|
430 | 436 | "modelAsString": true
|
431 | 437 | },
|
432 |
| - "description": "Indicates whether the databases on the target server can be overwritten, if already present. If set to Disabled, the migration workflow will wait for a confirmation, if it detects that the database already exists." |
| 438 | + "description": "Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists." |
433 | 439 | },
|
434 | 440 | "migrationWindowStartTimeInUtc": {
|
435 | 441 | "format": "date-time",
|
|
444 | 450 | "startDataMigration": {
|
445 | 451 | "type": "string",
|
446 | 452 | "enum": [
|
447 |
| - "Enabled", |
448 |
| - "Disabled" |
| 453 | + "True", |
| 454 | + "False" |
449 | 455 | ],
|
450 | 456 | "x-ms-enum": {
|
451 | 457 | "name": "StartDataMigrationEnum",
|
|
456 | 462 | "triggerCutover": {
|
457 | 463 | "type": "string",
|
458 | 464 | "enum": [
|
459 |
| - "Enabled", |
460 |
| - "Disabled" |
| 465 | + "True", |
| 466 | + "False" |
461 | 467 | ],
|
462 | 468 | "x-ms-enum": {
|
463 | 469 | "name": "TriggerCutoverEnum",
|
464 | 470 | "modelAsString": true
|
465 | 471 | },
|
466 |
| - "description": "To trigger cutover for entire migration we need to send this flag as Enabled" |
| 472 | + "description": "To trigger cutover for entire migration we need to send this flag as True" |
467 | 473 | },
|
468 | 474 | "dbsToTriggerCutoverOn": {
|
469 | 475 | "type": "array",
|
470 | 476 | "items": {
|
471 | 477 | "type": "string"
|
472 | 478 | },
|
473 |
| - "description": "When you want to trigger cutover for specific databases send triggerCutover flag as Enabled and database names in this array" |
| 479 | + "description": "When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array" |
474 | 480 | },
|
475 | 481 | "cancel": {
|
476 | 482 | "type": "string",
|
477 | 483 | "enum": [
|
478 |
| - "Enabled", |
479 |
| - "Disabled" |
| 484 | + "True", |
| 485 | + "False" |
480 | 486 | ],
|
481 | 487 | "x-ms-enum": {
|
482 | 488 | "name": "CancelEnum",
|
483 | 489 | "modelAsString": true
|
484 | 490 | },
|
485 |
| - "description": "To trigger cancel for entire migration we need to send this flag as Enabled" |
| 491 | + "description": "To trigger cancel for entire migration we need to send this flag as True" |
486 | 492 | },
|
487 | 493 | "dbsToCancelMigrationOn": {
|
488 | 494 | "type": "array",
|
489 | 495 | "items": {
|
490 | 496 | "type": "string"
|
491 | 497 | },
|
492 |
| - "description": "When you want to trigger cancel for specific databases send cancel flag as Enabled and database names in this array" |
| 498 | + "description": "When you want to trigger cancel for specific databases send cancel flag as True and database names in this array" |
493 | 499 | }
|
494 | 500 | },
|
495 | 501 | "description": "Migration resource properties."
|
|
561 | 567 | "setupLogicalReplicationOnSourceDbIfNeeded": {
|
562 | 568 | "type": "string",
|
563 | 569 | "enum": [
|
564 |
| - "Enabled", |
565 |
| - "Disabled" |
| 570 | + "True", |
| 571 | + "False" |
566 | 572 | ],
|
567 | 573 | "x-ms-enum": {
|
568 | 574 | "name": "LogicalReplicationOnSourceDbEnum",
|
|
573 | 579 | "overwriteDbsInTarget": {
|
574 | 580 | "type": "string",
|
575 | 581 | "enum": [
|
576 |
| - "Enabled", |
577 |
| - "Disabled" |
| 582 | + "True", |
| 583 | + "False" |
578 | 584 | ],
|
579 | 585 | "x-ms-enum": {
|
580 | 586 | "name": "OverwriteDbsInTargetEnum",
|
581 | 587 | "modelAsString": true
|
582 | 588 | },
|
583 |
| - "description": "Indicates whether the databases on the target server can be overwritten, if already present. If set to Disabled, the migration workflow will wait for a confirmation, if it detects that the database already exists." |
| 589 | + "description": "Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists." |
584 | 590 | },
|
585 | 591 | "migrationWindowStartTimeInUtc": {
|
586 | 592 | "format": "date-time",
|
|
590 | 596 | "startDataMigration": {
|
591 | 597 | "type": "string",
|
592 | 598 | "enum": [
|
593 |
| - "Enabled", |
594 |
| - "Disabled" |
| 599 | + "True", |
| 600 | + "False" |
595 | 601 | ],
|
596 | 602 | "x-ms-enum": {
|
597 | 603 | "name": "StartDataMigrationEnum",
|
|
602 | 608 | "triggerCutover": {
|
603 | 609 | "type": "string",
|
604 | 610 | "enum": [
|
605 |
| - "Enabled", |
606 |
| - "Disabled" |
| 611 | + "True", |
| 612 | + "False" |
607 | 613 | ],
|
608 | 614 | "x-ms-enum": {
|
609 | 615 | "name": "TriggerCutoverEnum",
|
610 | 616 | "modelAsString": true
|
611 | 617 | },
|
612 |
| - "description": "To trigger cutover for entire migration we need to send this flag as Enabled" |
| 618 | + "description": "To trigger cutover for entire migration we need to send this flag as True" |
613 | 619 | },
|
614 | 620 | "dbsToTriggerCutoverOn": {
|
615 | 621 | "type": "array",
|
616 | 622 | "items": {
|
617 | 623 | "type": "string"
|
618 | 624 | },
|
619 |
| - "description": "When you want to trigger cutover for specific databases send triggerCutover flag as Enabled and database names in this array" |
| 625 | + "description": "When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array" |
620 | 626 | },
|
621 | 627 | "cancel": {
|
622 | 628 | "type": "string",
|
623 | 629 | "enum": [
|
624 |
| - "Enabled", |
625 |
| - "Disabled" |
| 630 | + "True", |
| 631 | + "False" |
626 | 632 | ],
|
627 | 633 | "x-ms-enum": {
|
628 | 634 | "name": "CancelEnum",
|
629 | 635 | "modelAsString": true
|
630 | 636 | },
|
631 |
| - "description": "To trigger cancel for entire migration we need to send this flag as Enabled" |
| 637 | + "description": "To trigger cancel for entire migration we need to send this flag as True" |
632 | 638 | },
|
633 | 639 | "dbsToCancelMigrationOn": {
|
634 | 640 | "type": "array",
|
635 | 641 | "items": {
|
636 | 642 | "type": "string"
|
637 | 643 | },
|
638 |
| - "description": "When you want to trigger cancel for specific databases send cancel flag as Enabled and database names in this array" |
| 644 | + "description": "When you want to trigger cancel for specific databases send cancel flag as True and database names in this array" |
639 | 645 | },
|
640 | 646 | "migrationMode": {
|
641 | 647 | "$ref": "#/definitions/MigrationMode",
|
|
655 | 661 | "x-ms-external": true,
|
656 | 662 | "$ref": "#/definitions/AdminCredentials",
|
657 | 663 | "description": "Admin credentials for source and target servers"
|
| 664 | + }, |
| 665 | + "sourceServerUsername": { |
| 666 | + "type": "string", |
| 667 | + "x-ms-mutability": [ |
| 668 | + "create", |
| 669 | + "update" |
| 670 | + ], |
| 671 | + "description": "Gets or sets the username for the source server. This user need not be an admin." |
| 672 | + }, |
| 673 | + "targetServerUsername": { |
| 674 | + "type": "string", |
| 675 | + "x-ms-mutability": [ |
| 676 | + "create", |
| 677 | + "update" |
| 678 | + ], |
| 679 | + "description": "Gets or sets the username for the target server. This user need not be an admin." |
658 | 680 | }
|
659 | 681 | },
|
660 | 682 | "description": "Migration secret parameters."
|
|
0 commit comments