terraform/vendor/github.com/jen20/riviera/sql/get_firewall_rule.go

29 lines
795 B
Go

package sql
import "github.com/jen20/riviera/azure"
type GetFirewallRuleResponse struct {
ID *string `mapstructure:"id"`
Name *string `mapstructure:"name"`
Location *string `mapstructure:"location"`
StartIPAddress *string `json:"startIpAddress,omitempty"`
EndIPAddress *string `json:"endIpAddress,omitempty"`
}
type GetFirewallRule struct {
Name string `json:"-"`
ResourceGroupName string `json:"-"`
ServerName string `json:"-"`
}
func (s GetFirewallRule) APIInfo() azure.APIInfo {
return azure.APIInfo{
APIVersion: apiVersion,
Method: "GET",
URLPathFunc: sqlServerFirewallDefaultURLPath(s.ResourceGroupName, s.ServerName, s.Name),
ResponseTypeFunc: func() interface{} {
return &GetFirewallRuleResponse{}
},
}
}