azuresqlshared

package
v0.0.0-...-632b81d Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBackupLongTermRetentionPoliciesClient

func GetBackupLongTermRetentionPoliciesClient(creds config.Credentials) (sql3.BackupLongTermRetentionPoliciesClient, error)

GetBackupLongTermRetentionPoliciesClient retrieves a BackupLongTermRetentionPoliciesClient

func GetBackupShortTermRetentionPoliciesClient

func GetBackupShortTermRetentionPoliciesClient(creds config.Credentials) (sql3.BackupShortTermRetentionPoliciesClient, error)

GetBackupShortTermRetentionPoliciesClient retrieves a BackupShortTermRetentionPoliciesClient

func GetGoDbClient

func GetGoDbClient(creds config.Credentials) (sql.DatabasesClient, error)

GetGoDbClient retrieves a DatabasesClient

func GetGoFailoverGroupsClient

func GetGoFailoverGroupsClient(creds config.Credentials) (sql.FailoverGroupsClient, error)

GetGoFailoverGroupsClient retrieves a FailoverGroupsClient

func GetGoFirewallClient

func GetGoFirewallClient(creds config.Credentials) (sql.FirewallRulesClient, error)

GetGoFirewallClient retrieves a FirewallRulesClient

func GetGoNetworkSubnetClient

func GetGoNetworkSubnetClient(creds config.Credentials) (network.SubnetsClient, error)

GetNetworkSubnetClient retrieves a Subnetclient

func GetGoServersClient

func GetGoServersClient(creds config.Credentials) (sql.ServersClient, error)

GetGoServersClient retrieves a ServersClient

func GetGoVNetRulesClient

func GetGoVNetRulesClient(creds config.Credentials) (sql.VirtualNetworkRulesClient, error)

GetGoVNetRulesClient retrieves a VirtualNetworkRulesClient

func GetSubscriptionCredentials

func GetSubscriptionCredentials(creds config.Credentials, subscriptionID string) config.Credentials

func SQLDatabasePropertiesToDatabase

func SQLDatabasePropertiesToDatabase(properties SQLDatabaseProperties) (result sql.DatabaseProperties)

SQLDatabasePropertiesToDatabase translates SQLDatabaseProperties to DatabaseProperties

func SQLDatabasePropertiesToSku

func SQLDatabasePropertiesToSku(properties SQLDatabaseProperties) (result *sql.Sku)

SQLDatabasePropertiesToDatabase translates SQLDatabaseProperties to DatabaseProperties

func SQLServerPropertiesToServer

func SQLServerPropertiesToServer(properties SQLServerProperties) (result sql.ServerProperties)

SQLServerPropertiesToServer translates SQLServerProperties to ServerProperties

func TranslateFailoverPolicy

TranslateFailoverPolicy translates the enum

Types

type SQLDatabaseBackupLongTermRetentionPolicy

type SQLDatabaseBackupLongTermRetentionPolicy struct {
	WeeklyRetention  string
	MonthlyRetention string
	YearlyRetention  string
	WeekOfYear       int32
}

type SQLDatabaseProperties

type SQLDatabaseProperties struct {

	// DatabaseName is the name of the database
	DatabaseName string

	// MaxSize - The max size of the database
	MaxSize *resource.Quantity

	// ElasticPoolID - The resource identifier of the elastic pool containing this database.
	ElasticPoolID string

	// Sku - The database SKU.
	//
	// The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
	//
	// “`azurecli
	// az sql db list-editions -l <location> -o table
	// ““
	//
	// “`powershell
	// Get-AzSqlServerServiceObjective -Location <location>
	// ““
	Sku *Sku
}

SQLDatabaseProperties contains values needed for adding / updating SQL servers, wraps: https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql#Database also wraps: https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql#DatabaseProperties

type SQLServerProperties

type SQLServerProperties struct {

	// AdministratorLogin - Administrator username for the server. Once created it cannot be changed.
	AdministratorLogin *string

	// AdministratorLoginPassword - The administrator login password (required for server creation).
	AdministratorLoginPassword *string
}

SQLServerProperties contains values needed for adding / updating SQL servers, wraps: https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql#Server also wraps: https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql#ServerProperties

type Sku

type Sku struct {
	// Name - The name of the SKU, typically, a letter + Number code, e.g. P3.
	Name string
	// Tier - The tier or edition of the particular SKU, e.g. Basic, Premium.
	Tier string
	// Size - Size of the particular SKU
	Size string
	// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family string
	// Capacity - Capacity of the particular SKU.
	Capacity *int32
}

wraps: https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql#Sku

func MergeDBEditionAndSku

func MergeDBEditionAndSku(in v1beta1.DBEdition, sku *v1beta1.SqlDatabaseSku) (*Sku, error)

Jump to

Keyboard shortcuts

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