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

Adapter for firewall operations
Afficher le fichier Open project: Azure/azure-powershell

Private Properties

Свойство Type Description
CreateFirewallRuleModelFromResponse Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetFirewallRule() public méthode

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
Résultat Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel

ListFirewallRules() public méthode

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
Résultat List

RemoveFirewallRule() public méthode

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
Résultat void

UpsertFirewallRule() public méthode

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
Résultat Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel