private Azure(RestClient restClient, string subscriptionId, string tenantId, IAuthenticated authenticated) { resourceManager = ResourceManager.Fluent.ResourceManager.Authenticate(restClient).WithSubscription(subscriptionId); storageManager = StorageManager.Authenticate(restClient, subscriptionId); computeManager = ComputeManager.Authenticate(restClient, subscriptionId); networkManager = NetworkManager.Authenticate(restClient, subscriptionId); batchManager = BatchManager.Authenticate(restClient, subscriptionId); keyVaultManager = KeyVaultManager.Authenticate(restClient, subscriptionId, tenantId); trafficManager = TrafficManager.Fluent.TrafficManager.Authenticate(restClient, subscriptionId); dnsZoneManager = DnsZoneManager.Authenticate(restClient, subscriptionId); sqlManager = SqlManager.Authenticate(restClient, subscriptionId); redisManager = RedisManager.Authenticate(restClient, subscriptionId); cdnManager = CdnManager.Authenticate(restClient, subscriptionId); appServiceManager = AppServiceManager.Authenticate(restClient, subscriptionId, tenantId); searchManager = SearchManager.Authenticate(restClient, subscriptionId); serviceBusManager = ServiceBusManager.Authenticate(restClient, subscriptionId); containerInstanceManager = ContainerInstanceManager.Authenticate(restClient, subscriptionId); registryManager = RegistryManager.Authenticate(restClient, subscriptionId); containerServiceManager = ContainerServiceManager.Authenticate(restClient, subscriptionId); cosmosDBManager = CosmosDBManager.Authenticate(restClient, subscriptionId); authorizationManager = AuthorizationManager.Authenticate(restClient, subscriptionId); msiManager = MsiManager.Authenticate(restClient, subscriptionId); batchAIManager = BatchAIManager.Authenticate(restClient, subscriptionId); monitorManager = MonitorManager.Authenticate(restClient, subscriptionId); eventHubManager = EventHubManager.Authenticate(restClient, subscriptionId); SubscriptionId = subscriptionId; this.authenticated = authenticated; }
///GENMHASH:5DEC8568283F2E20241D12E11ECD4AC2:2195512CD9515F346E018CD0415C3ECF public ReplicationLinkImpl(string resourceGroupName, string sqlServerName, ReplicationLinkInner innerObject, ISqlManager sqlServerManager) : base(innerObject) { this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.sqlServerManager = sqlServerManager; this.resourceId = ResourceId.FromString(this.Inner.Id); }
///GENMHASH:AAECD20916C2D9BB8C8EC283BBA60768:1F024F79B04A8465908D0C62DB75970D public SqlRestorableDroppedDatabaseImpl(string resourceGroupName, string sqlServerName, RestorableDroppedDatabaseInner innerObject, ISqlManager sqlServerManager) : base(innerObject) { this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.sqlServerManager = sqlServerManager; }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="resourceGroupName">The resource group name.</param> /// <param name="sqlServerName">The parent SQL server name.</param> /// <param name="name">The name of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses firewall rule operations.</param> ///GENMHASH:98175C6855AA8B2080D04920E0A82153:38F5303BD24DCCFCF927664812C8523C internal SqlFirewallRuleImpl(string resourceGroupName, string sqlServerName, string name, FirewallRuleInner innerObject, ISqlManager sqlServerManager) : base(innerObject, null) { this.name = name; this.sqlServerManager = sqlServerManager ?? throw new ArgumentNullException("sqlServerManager"); this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; }
///GENMHASH:7297E392E9CB8A4F141D1D06AF6C4036:2195512CD9515F346E018CD0415C3ECF public TransparentDataEncryptionImpl(string resourceGroupName, string sqlServerName, TransparentDataEncryptionInner innerObject, ISqlManager sqlServerManager) : base(innerObject) { this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.sqlServerManager = sqlServerManager; this.resourceId = ResourceId.FromString(this.Inner.Id); }
public TableViewer(IController controller) { InitializeComponent(); KeyPreview = true; _controller = controller; _sqlManager = _controller.sqlManager; }
///GENMHASH:670A73E4D654BF4BE6FB621CD7937552:54BF8FD63F8AB586307D57ACE1B3D26B internal SqlServerAutomaticTuningImpl(string resourceGroupName, string sqlServerName, ServerAutomaticTuningInner innerObject, ISqlManager sqlServerManager) : base(innerObject) { this.sqlServerManager = sqlServerManager; this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.key = Guid.NewGuid().ToString(); }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="resourceGroupName">The resource group name.</param> /// <param name="sqlServerName">The parent SQL server name.</param> /// <param name="name">The name of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses virtual network rule operations.</param> ///GENMHASH:15D09AA40D1E49BAFFA483194CA7F8F9:38F5303BD24DCCFCF927664812C8523C internal SqlVirtualNetworkRuleImpl(string resourceGroupName, string sqlServerName, string name, VirtualNetworkRuleInner innerObject, ISqlManager sqlServerManager) : base(innerObject, null) { this.name = name; this.sqlServerManager = sqlServerManager; this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="name">The name of this external child resource.</param> /// <param name="parent">Reference to the parent of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses virtual network rule operations.</param> ///GENMHASH:CA7A55F651B9410EBED64BE12665922C:FC8025F8B79091C30C130C9AAECEC55E internal SqlVirtualNetworkRuleImpl(string name, SqlServerImpl parent, VirtualNetworkRuleInner innerObject, ISqlManager sqlServerManager) : base(innerObject, parent) { this.name = name; this.sqlServerManager = sqlServerManager; this.resourceGroupName = parent.ResourceGroupName; this.sqlServerName = parent.Name; }
///GENMHASH:BE1AB1D88A6A19EC0BF0334CC3B6BCC1:63EB623539C702D5D92F22479190251D internal SqlServerAutomaticTuningImpl(SqlServerImpl server, ServerAutomaticTuningInner innerObject) : base(innerObject) { this.sqlServerManager = server.Manager; this.resourceGroupName = server.ResourceGroupName; this.sqlServerName = server.Name; this.key = Guid.NewGuid().ToString(); }
///GENMHASH:3FC4629A94EA4CFEC41549C1F3C77668:8133340974DB918052A51C4316313E0B internal SqlSyncGroupOperationsImpl(SqlDatabaseImpl parent, ISqlManager sqlServerManager) { this.sqlDatabase = parent; this.sqlServerManager = sqlServerManager; this.resourceGroupName = parent.ResourceGroupName(); this.sqlServerName = parent.SqlServerName(); this.sqlDatabaseName = parent.Name(); }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="resourceGroupName">The resource group name.</param> /// <param name="sqlServerName">The parent SQL server name.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses firewall rule operations.</param> ///GENMHASH:B9BEF73056A0E29FFD8BF2E062D7BC15:43162FE085CFEAFDA76E5D4BC4A00355 internal SqlEncryptionProtectorImpl(string resourceGroupName, string sqlServerName, EncryptionProtectorInner innerObject, ISqlManager sqlServerManager) : base(innerObject, null) { this.sqlServerManager = sqlServerManager; this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.serverKeyName = innerObject?.Name; }
///GENMHASH:AE5E279A623EC95DE2C1FF13EE964ABF:2195512CD9515F346E018CD0415C3ECF public ServiceTierAdvisorImpl(string resourceGroupName, string sqlServerName, ServiceTierAdvisorInner innerObject, ISqlManager sqlServerManager) : base(innerObject) { this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.sqlServerManager = sqlServerManager; this.resourceId = ResourceId.FromString(this.Inner.Id); }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="parent">Reference to the parent of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses firewall rule operations.</param> ///GENMHASH:037B6E72FFBB7224CDF82D509814DF07:925E12E2AB778ADEA6FAE0AE9F9184C7 internal SqlEncryptionProtectorImpl(SqlServerImpl parent, EncryptionProtectorInner innerObject, ISqlManager sqlServerManager) : base(innerObject, parent) { this.sqlServerManager = sqlServerManager; this.resourceGroupName = parent.ResourceGroupName; this.sqlServerName = parent.Name; this.serverKeyName = innerObject?.Name; }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="resourceGroupName">The resource group name.</param> /// <param name="sqlServerName">The parent SQL server name.</param> /// <param name="name">The name of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses DNS alias operations.</param> ///GENMHASH:F6E88B09AC6260EB63A570307518001D:38F5303BD24DCCFCF927664812C8523C internal SqlServerDnsAliasImpl(string resourceGroupName, string sqlServerName, string name, ServerDnsAliasInner innerObject, ISqlManager sqlServerManager) : base(innerObject, null) { this.name = name; this.sqlServerManager = sqlServerManager; this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="name">The name of this external child resource.</param> /// <param name="parent">Reference to the parent of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses DNS alias operations.</param> ///GENMHASH:6EB3A0B36FAECA791EFBB40C3F76F7E2:FC8025F8B79091C30C130C9AAECEC55E internal SqlServerDnsAliasImpl(string name, SqlServerImpl parent, ServerDnsAliasInner innerObject, ISqlManager sqlServerManager) : base(innerObject, parent) { this.name = name; this.sqlServerManager = sqlServerManager; this.resourceGroupName = parent.ResourceGroupName; this.sqlServerName = parent.Name; }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="name">The name of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses firewall rule operations.</param> ///GENMHASH:F958650D21263F491EB84C4B1B980363:F9DB363750091A34604F0E5CF4D066EE internal SqlDatabaseImpl(string name, DatabaseInner innerObject, ISqlManager sqlServerManager) : base(innerObject, null) { this.name = name; this.sqlServerManager = sqlServerManager ?? throw new ArgumentNullException("sqlServerManager"); this.isPatchUpdate = false; this.importRequestInner = null; }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="resourceGroupName">The resource group name.</param> /// <param name="sqlServerName">The parent SQL server name.</param> /// <param name="sqlDatabaseName">The parent SQL Database name.</param> /// <param name="sqlSyncGroupName">The parent SQL Sync Group name.</param> /// <param name="name">The name of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses DNS alias operations.</param> ///GENMHASH:8F51618C600342C2ED2950C13B0FBCBA:94FDB59ED889413CE8D45C337B683C50 internal SqlSyncMemberImpl(string resourceGroupName, string sqlServerName, string sqlDatabaseName, string sqlSyncGroupName, string name, SyncMemberInner innerObject, ISqlManager sqlServerManager) : base(innerObject, null) { this.sqlServerManager = sqlServerManager; this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.sqlDatabaseName = sqlDatabaseName; this.sqlSyncGroupName = sqlSyncGroupName; }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="resourceGroupName">The resource group name.</param> /// <param name="sqlServerName">The parent SQL server name.</param> /// <param name="sqlServerLocation">The parent SQL server location.</param> /// <param name="name">The name of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses firewall rule operations.</param> ///GENMHASH:57B1BE3864897C5290648EFC4CB9F4CF:1F19069E738766C2410CE5F937A12B8B internal SqlElasticPoolImpl(string resourceGroupName, string sqlServerName, string sqlServerLocation, string name, ElasticPoolInner innerObject, ISqlManager sqlServerManager) : base(innerObject, null) { this.name = name; this.sqlServerManager = sqlServerManager ?? throw new ArgumentNullException("sqlServerManager"); this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.sqlServerLocation = sqlServerLocation; }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="name">The name of this external child resource.</param> /// <param name="parent">Reference to the parent of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses DNS alias operations.</param> ///GENMHASH:CCE195E09193EDC4383029CD5CB1C628:2B6C79416FE1C7672196779693AE2D14 internal SqlSyncMemberImpl(string name, SqlSyncGroupImpl parent, SyncMemberInner innerObject, ISqlManager sqlServerManager) : base(innerObject, parent) { this.sqlServerManager = sqlServerManager; this.resourceGroupName = parent.ResourceGroupName(); this.sqlServerName = parent.SqlServerName(); this.sqlDatabaseName = parent.SqlDatabaseName(); this.sqlSyncGroupName = parent.Name(); }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="resourceGroupName">The resource group name.</param> /// <param name="sqlServerName">The parent SQL server name.</param> /// <param name="name">The name of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses failover group operations.</param> ///GENMHASH:2FFBF1911C3D11A4A0D6DB160D9678D8:A6FEE4EFEDACA027A0C59D9323BFCAC7 internal SqlFailoverGroupImpl(string resourceGroupName, string sqlServerName, string sqlServerLocation, string name, FailoverGroupInner innerObject, ISqlManager sqlServerManager) : base(innerObject, null) { this.name = name; this.sqlServerManager = sqlServerManager; this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.sqlServerLocation = sqlServerLocation; }
///GENMHASH:8C0F9272C19DF7D7DC0E56025F2253DB:0FC663881AA56E17333FD4B5C3288CB4 public SqlDatabaseThreatDetectionPolicyImpl(string name, SqlDatabaseImpl parent, DatabaseSecurityAlertPolicyInner innerObject, ISqlManager sqlServerManager) : base(innerObject, parent) { this.name = name; this.sqlServerManager = sqlServerManager ?? throw new ArgumentNullException("sqlServerManager"); this.resourceGroupName = parent.ResourceGroupName(); this.sqlServerName = parent.SqlServerName(); this.Inner.Location = parent.RegionName(); }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="name">The name of this external child resource.</param> /// <param name="parent">Reference to the parent of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses failover group operations.</param> ///GENMHASH:10321C7CB3A1E7C461BBEBEAA7FCEB2A:D04715006C36394109746FEBD7928CCE internal SqlFailoverGroupImpl(string name, SqlServerImpl parent, FailoverGroupInner innerObject, ISqlManager sqlServerManager) : base(innerObject, parent) { this.name = name; this.sqlServerManager = sqlServerManager; this.resourceGroupName = parent.ResourceGroupName; this.sqlServerName = parent.Name; this.sqlServerLocation = parent.RegionName; }
private static ISqlServer CreateSqlServer(ISqlManager sqlServerManager, string sqlServerName) { return(sqlServerManager.SqlServers .Define(sqlServerName) .WithRegion(Region.USCentral) .WithNewResourceGroup(GroupName) .WithAdministratorLogin("userName") .WithAdministratorPassword("loepopfuejk~13@@") .Create()); }
///GENMHASH:7DFD4E2C4BFE1C1A223F1E9652CEA12E:095451E62832B6CE321960A429995E7F internal SqlDatabaseAutomaticTuningImpl(string resourceGroupName, string sqlServerName, string sqlDatabaseName, DatabaseAutomaticTuningInner innerObject, ISqlManager sqlServerManager) : base(innerObject) { this.sqlServerManager = sqlServerManager; this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.sqlDatabaseName = sqlDatabaseName; this.key = Guid.NewGuid().ToString(); this.automaticTuningOptionsMap = new Dictionary <string, AutomaticTuningOptions>(); }
///GENMHASH:0B123513DA66B23285D7B0CA6EE63B8D:7ADD22B33B14B9D9F2AB7F5856755122 internal SqlDatabaseAutomaticTuningImpl(SqlDatabaseImpl database, DatabaseAutomaticTuningInner innerObject) : base(innerObject) { this.sqlServerManager = database.sqlServerManager; this.resourceGroupName = database.resourceGroupName; this.sqlServerName = database.sqlServerName; this.sqlDatabaseName = database.Name(); this.key = Guid.NewGuid().ToString(); this.automaticTuningOptionsMap = new Dictionary <string, AutomaticTuningOptions>(); }
///GENMHASH:C991D14C4C20226EA0EEFFB24D7747A7:245AF9C01FA00285C2B11293A70D2F1B internal DatabasesImpl( ISqlManager manager, string resourceGroupName, string sqlServerName, Region region) { this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.region = region; databases = new SqlDatabasesImpl(manager); }
///GENMHASH:C9332154641E1021A796A0AA87A41D7C:CB5497929793111AF874DCDF5A64A775 internal ElasticPoolsImpl( ISqlManager manager, DatabasesImpl databasesImpl, string resourceGroupName, string sqlServerName, Region region) { this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; this.region = region; elasticPools = new SqlElasticPoolsImpl(manager, databasesImpl); }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses firewall rule operations.</param> ///GENMHASH:4DD6445361F09E0B185DE0E8D24170D3:81D0EDB620000F6B86DC1403C1548E6A internal SqlEncryptionProtectorImpl(EncryptionProtectorInner innerObject, ISqlManager sqlServerManager) : base(innerObject, null) { this.sqlServerManager = sqlServerManager; if (innerObject?.Id != null) { ResourceId resourceId = ResourceId.FromString(innerObject.Id); this.resourceGroupName = resourceId.ResourceGroupName; this.sqlServerName = resourceId.Parent.Name; } this.serverKeyName = innerObject?.Name; }
/// <summary> /// Creates an instance of external child resource in-memory. /// </summary> /// <param name="resourceGroupName">The resource group name.</param> /// <param name="sqlServerName">The parent SQL server name.</param> /// <param name="serverKeyName">The name of this external child resource.</param> /// <param name="innerObject">Reference to the inner object representing this external child resource.</param> /// <param name="sqlServerManager">Reference to the SQL server manager that accesses firewall rule operations.</param> ///GENMHASH:6B050084A46B8D60E8F4584F8E20045C:B9627F8810194331D0435FC3AC3F61E2 internal SqlServerKeyImpl(string resourceGroupName, string sqlServerName, string serverKeyName, ServerKeyInner innerObject, ISqlManager sqlServerManager) : base(innerObject, null) { this.serverKeyName = serverKeyName; this.sqlServerManager = sqlServerManager; this.resourceGroupName = resourceGroupName; this.sqlServerName = sqlServerName; if (innerObject != null && innerObject.Name != null) { this.serverKeyName = innerObject.Name; } }