azuresqlvnetrule

package
v0.0.0-...-d214ba0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureSqlVNetRuleManager

type AzureSqlVNetRuleManager struct {
	// contains filtered or unexported fields
}

func NewAzureSqlVNetRuleManager

func NewAzureSqlVNetRuleManager(creds config.Credentials) *AzureSqlVNetRuleManager

func (*AzureSqlVNetRuleManager) CreateOrUpdateSQLVNetRule

func (m *AzureSqlVNetRuleManager) CreateOrUpdateSQLVNetRule(
	ctx context.Context,
	resourceGroupName string,
	serverName string,
	ruleName string,
	VNetRG string,
	VNetName string,
	SubnetName string,
	subscription string,
	IgnoreServiceEndpoint bool,
) (vnr sql.VirtualNetworkRule, err error)

CreateOrUpdateSQLVNetRule creates or updates a VNet rule based on code from: https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql#VirtualNetworkRulesClient.CreateOrUpdate

func (*AzureSqlVNetRuleManager) Delete

Delete drops a sqlvnetrule

func (*AzureSqlVNetRuleManager) DeleteSQLVNetRule

func (m *AzureSqlVNetRuleManager) DeleteSQLVNetRule(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, ruleName string) (err error)

DeleteSQLVNetRule deletes a VNet rule

func (*AzureSqlVNetRuleManager) Ensure

Ensure creates a sqlvnetrule

func (*AzureSqlVNetRuleManager) GetParents

GetParents returns the parents of sqlvnetrule

func (*AzureSqlVNetRuleManager) GetSQLVNetRule

func (m *AzureSqlVNetRuleManager) GetSQLVNetRule(
	ctx context.Context,
	subscriptionID string,
	resourceGroupName string,
	serverName string,
	ruleName string,
) (result sql.VirtualNetworkRule, err error)

GetSQLVNetRule returns a VNet rule

func (*AzureSqlVNetRuleManager) GetStatus

type SqlVNetRuleManager

type SqlVNetRuleManager interface {
	CreateOrUpdateSQLVNetRule(ctx context.Context, resourceGroupName string, serverName string, ruleName string, VNetRG string, VNetName string, SubnetName string, IgnoreServiceEndpoint bool) (result sql.VirtualNetworkRule, err error)
	DeleteSQLVNetRule(ctx context.Context, resourceGroupName string, serverName string, ruleName string) (err error)
	GetSQLVNetRule(ctx context.Context, resourceGroupName string, serverName string, ruleName string) (result sql.VirtualNetworkRule, err error)
	resourcemanager.ARMClient
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL