C# Class Microsoft.Azure.Commands.Sql.FirewallRule.Adapter.AzureSqlServerFirewallRuleAdapter

Adapter for firewall operations
显示文件 Open project: Azure/azure-powershell

Private Properties

Property Type Description
CreateFirewallRuleModelFromResponse Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel

Public Methods

Method Description
AzureSqlServerFirewallRuleAdapter ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models

Constructs a firewall rule adapter

GetFirewallRule ( string resourceGroupName, string serverName, string firewallRuleName ) : Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel

Gets a firewall rule in a server

ListFirewallRules ( string resourceGroupName, string serverName ) : List

Gets a list of all the firewall rules in a server

RemoveFirewallRule ( string resourceGroupName, string serverName, string firewallRuleName ) : void

Deletes a Firewall Rule

UpsertFirewallRule ( Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel model ) : Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel

Upserts a Firewall Rule

Private Methods

Method Description
CreateFirewallRuleModelFromResponse ( string resourceGroup, string serverName, Management resp ) : Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel

Convert a Management.Sql.Models.FirewallRule to AzureSqlServerFirewallRuleModel

Method Details

AzureSqlServerFirewallRuleAdapter() public method

Constructs a firewall rule adapter
public AzureSqlServerFirewallRuleAdapter ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
return Microsoft.Azure.Commands.Common.Authentication.Models

GetFirewallRule() public method

Gets a firewall rule in a server
public GetFirewallRule ( string resourceGroupName, string serverName, string firewallRuleName ) : Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel
resourceGroupName string The name of the resource group
serverName string The name of the server
firewallRuleName string The firewall rule name
return Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel

ListFirewallRules() public method

Gets a list of all the firewall rules in a server
public ListFirewallRules ( string resourceGroupName, string serverName ) : List
resourceGroupName string The name of the resource group
serverName string The name of the server
return List

RemoveFirewallRule() public method

Deletes a Firewall Rule
public RemoveFirewallRule ( string resourceGroupName, string serverName, string firewallRuleName ) : void
resourceGroupName string The resource group the server is in
serverName string The name of the server from which the firewall rule should be removed
firewallRuleName string The name of the firewall rule to remove
return void

UpsertFirewallRule() public method

Upserts a Firewall Rule
public UpsertFirewallRule ( Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel model ) : Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel
model Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel The firewall rule to create
return Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel