mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 17:23:29 -05:00
sql db deployments into main (WIP) (#12767)
* added my resource-deployment * changed notebook message * Add more advanced properties for spark job submission dialog (#12732) * Add more advanced properties for spark job submission dialog * Add queue * Revert "Add more advanced properties for spark job submission dialog (#12732)" This reverts commit e6a7e86ddbe70b39660098a8ebd9ded2a1c5530c. * Changes made for simplification * changed error messages * tags added * tags removed due to redundancy * Update package.json * Update resourceTypePickerDialog.ts * changes based on feedback * activaterealtimevalidation removed Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { EOL } from 'os';
|
||||
import * as azdata from 'azdata';
|
||||
import { Model } from '../model';
|
||||
|
||||
export class DeployAzureSQLDBWizardModel extends Model {
|
||||
public azureAccount!: azdata.Account;
|
||||
public securityToken!: any;
|
||||
public azureSubscription!: string;
|
||||
public azureSubscriptionDisplayName!: string;
|
||||
public azureResouceGroup!: string;
|
||||
public azureServerName!: string;
|
||||
public azureRegion!: string;
|
||||
|
||||
// public databaseEdition!: string; //@todo alma1 10/7/2020 used for upcoming database hardware creation feature
|
||||
// public databaseFamily!: string;
|
||||
// public vCoreNumber!: number;
|
||||
// public storageInGB!: string;
|
||||
|
||||
public databaseName!: string;
|
||||
//public newServer!: 'True' | 'False'; //@todo alma1 9/8/2020 used for upcoming server creation feature.
|
||||
public startIpAddress!: string;
|
||||
public endIpAddress!: string;
|
||||
public firewallRuleName!: string;
|
||||
public databaseCollation!: string;
|
||||
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
public getCodeCellContentForNotebook(): string[] {
|
||||
const statements: string[] = [];
|
||||
|
||||
statements.push(`azure_sqldb_subscription = '${this.azureSubscription}'`);
|
||||
statements.push(`azure_sqldb_resource_group_name = '${this.azureResouceGroup}'`);
|
||||
statements.push(`azure_sqldb_server_name = '${this.azureServerName}'`);
|
||||
//statements.push(`azure_sqldb_database_edition = '${this.databaseEdition}'`); //@todo alma1 10/7/2020 used for upcoming datbase hardware creation feature.
|
||||
statements.push(`azure_sqldb_database_name = '${this.databaseName}'`);
|
||||
//statements.push(`azure_sqldb_location = '${this.azureRegion}'`); //@todo alma1 9/10/2020 used for upcoming server creation feature.
|
||||
statements.push(`azure_sqldb_ip_start = '${this.startIpAddress}'`);
|
||||
statements.push(`azure_sqldb_ip_end = '${this.endIpAddress}'`);
|
||||
statements.push(`azure_sqldb_firewall_name = '${this.firewallRuleName}'`);
|
||||
statements.push(`azure_sqldb_collation = '${this.databaseCollation}'`);
|
||||
// statements.push(`azure_sqldb_family = '${this.databaseFamily}'`); //@todo alma1 10/7/2020 used for upcoming datbase hardware creation feature.
|
||||
// statements.push(`azure_sqldb_vcore = '${this.vCoreNumber}'`);
|
||||
// statements.push(`azure_sqldb_maxmemory = '${this.storageInGB}'`);
|
||||
//statements.push(`azure_sqldb_new_server = '${this.newServer}'`); //@todo alma1 9/8/2020 used for upcoming server creation feature.
|
||||
|
||||
return statements.map(line => line.concat(EOL));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user