Documentation ¶
Index ¶
- func GetBackupLongTermRetentionPoliciesClient(creds config.Credentials) (sql3.BackupLongTermRetentionPoliciesClient, error)
- func GetBackupShortTermRetentionPoliciesClient(creds config.Credentials) (sql3.BackupShortTermRetentionPoliciesClient, error)
- func GetGoDbClient(creds config.Credentials) (sql.DatabasesClient, error)
- func GetGoFailoverGroupsClient(creds config.Credentials) (sql.FailoverGroupsClient, error)
- func GetGoFirewallClient(creds config.Credentials) (sql.FirewallRulesClient, error)
- func GetGoNetworkSubnetClient(creds config.Credentials) (network.SubnetsClient, error)
- func GetGoServersClient(creds config.Credentials) (sql.ServersClient, error)
- func GetGoVNetRulesClient(creds config.Credentials) (sql.VirtualNetworkRulesClient, error)
- func GetSubscriptionCredentials(creds config.Credentials, subscriptionID string) config.Credentials
- func SQLDatabasePropertiesToDatabase(properties SQLDatabaseProperties) (result sql.DatabaseProperties)
- func SQLDatabasePropertiesToSku(properties SQLDatabaseProperties) (result *sql.Sku)
- func SQLServerPropertiesToServer(properties SQLServerProperties) (result sql.ServerProperties)
- func TranslateFailoverPolicy(in v1beta1.ReadWriteEndpointFailoverPolicy) (sql.ReadWriteEndpointFailoverPolicy, error)
- type SQLDatabaseBackupLongTermRetentionPolicy
- type SQLDatabaseProperties
- type SQLServerProperties
- type Sku
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 ¶
func TranslateFailoverPolicy(in v1beta1.ReadWriteEndpointFailoverPolicy) (sql.ReadWriteEndpointFailoverPolicy, error)
TranslateFailoverPolicy translates the enum
Types ¶
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