/*** Generated by streamline 0.10.17 (callbacks) - DO NOT EDIT ***/ "use strict"; var __rt=require('streamline/lib/callbacks/runtime').runtime(__filename, false),__func=__rt.__func,__cb=__rt.__cb; var profile = require("../../../util/profile");








































var utils = require("../../../util/utils");

var $ = utils.getLocaleString;exports.init = function(cli) {





  var storageAccountAbortMigration = cli.category("storage").description("Commands to invoke service management operations.").category("account").description($("Commands to manage your storage account.  "));

  storageAccountAbortMigration.command("abort-migration [name]").description($("Abort storage account migration api validates and aborts the given storage account for IaaS Classic to ARM migration.")).usage("[options] <name>").option("-n, --name <name>", $("name")).option("-s, --subscription <subscription>", $("The subscription identifier")).execute(function __1(name, options, _) { var subscription, storageManagementClient, result; var __frame = { name: "__1", line: 57 }; return __func(_, this, arguments, __1, 2, __frame, function __$__1() { return (function __$__1(__then) {





        if (!name) {
          return cli.interaction.promptIfNotGiven($("name : "), name, __cb(_, __frame, 2, 29, function ___(__0, __1) { name = __1; __then(); }, true)); } else { __then(); } ; })(function __$__1() {


        cli.output.verbose(("name = " + name));
        subscription = profile.current.getSubscription(options.subscription);
        storageManagementClient = utils.createStorageClient(subscription);
        return storageManagementClient.storageAccounts.abortMigration(name, __cb(_, __frame, 8, 57, function ___(__0, __2) { result = __2;
          if (result) {
            cli.output.json(result); } ; _(); }, true)); }); }); });






  var storageAccountCommitMigration = cli.category("storage").description("Commands to invoke service management operations.").category("account").description($("Commands to manage your storage account.  "));

  storageAccountCommitMigration.command("commit-migration [name]").description($("Commit storage account migration api validates and commits the given storage account for IaaS Classic to ARM migration.")).usage("[options] <name>").option("-n, --name <name>", $("name")).option("-s, --subscription <subscription>", $("The subscription identifier")).execute(function __2(name, options, _) { var subscription, storageManagementClient, result; var __frame = { name: "__2", line: 81 }; return __func(_, this, arguments, __2, 2, __frame, function __$__2() { return (function __$__2(__then) {





        if (!name) {
          return cli.interaction.promptIfNotGiven($("name : "), name, __cb(_, __frame, 2, 29, function ___(__0, __1) { name = __1; __then(); }, true)); } else { __then(); } ; })(function __$__2() {


        cli.output.verbose(("name = " + name));
        subscription = profile.current.getSubscription(options.subscription);
        storageManagementClient = utils.createStorageClient(subscription);
        return storageManagementClient.storageAccounts.commitMigration(name, __cb(_, __frame, 8, 57, function ___(__0, __2) { result = __2;
          if (result) {
            cli.output.json(result); } ; _(); }, true)); }); }); });






  var storageAccountPrepareMigration = cli.category("storage").description("Commands to invoke service management operations.").category("account").description($("Commands to manage your storage account.  "));

  storageAccountPrepareMigration.command("prepare-migration [name]").description($("Prepare storage account migration api validates and prepares the given storage account for IaaS Classic to ARM migration.")).usage("[options] <name>").option("-n, --name <name>", $("name")).option("-s, --subscription <subscription>", $("The subscription identifier")).execute(function __3(name, options, _) { var subscription, storageManagementClient, result; var __frame = { name: "__3", line: 105 }; return __func(_, this, arguments, __3, 2, __frame, function __$__3() { return (function __$__3(__then) {





        if (!name) {
          return cli.interaction.promptIfNotGiven($("name : "), name, __cb(_, __frame, 2, 29, function ___(__0, __1) { name = __1; __then(); }, true)); } else { __then(); } ; })(function __$__3() {


        cli.output.verbose(("name = " + name));
        subscription = profile.current.getSubscription(options.subscription);
        storageManagementClient = utils.createStorageClient(subscription);
        return storageManagementClient.storageAccounts.prepareMigration(name, __cb(_, __frame, 8, 57, function ___(__0, __2) { result = __2;
          if (result) {
            cli.output.json(result); } ; _(); }, true)); }); }); });






  var storageAccountValidateMigration = cli.category("storage").description("Commands to invoke service management operations.").category("account").description($("Commands to manage your storage account.  "));

  storageAccountValidateMigration.command("validate-migration [name]").description($("Validate storage account migration api validates the given storage account for IaaS Classic to ARM migration.")).usage("[options] <name>").option("-n, --name <name>", $("name")).option("-s, --subscription <subscription>", $("The subscription identifier")).execute(function __4(name, options, _) { var subscription, storageManagementClient, result; var __frame = { name: "__4", line: 129 }; return __func(_, this, arguments, __4, 2, __frame, function __$__4() { return (function __$__4(__then) {





        if (!name) {
          return cli.interaction.promptIfNotGiven($("name : "), name, __cb(_, __frame, 2, 29, function ___(__0, __1) { name = __1; __then(); }, true)); } else { __then(); } ; })(function __$__4() {


        cli.output.verbose(("name = " + name));
        subscription = profile.current.getSubscription(options.subscription);
        storageManagementClient = utils.createStorageClient(subscription);
        return storageManagementClient.storageAccounts.validateMigration(name, __cb(_, __frame, 8, 57, function ___(__0, __2) { result = __2;
          if (result) {
            cli.output.json(result); } ; _(); }, true)); }); }); });};
